:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-strong: #1d4ed8;
  --danger: #dc2626;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8fbff 0%, rgba(244, 247, 251, 0) 320px),
    var(--bg);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.adminHubWrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 16px;
}

.adminHubHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e7ebf2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.adminHubHeaderInner,
.adminHubNav,
.adminHubHero,
.adminHubSectionHead,
.adminHubCardMeta {
  display: flex;
  align-items: center;
}

.adminHubHeaderInner,
.adminHubHero,
.adminHubSectionHead {
  justify-content: space-between;
  gap: 16px;
}

.adminHubBrand {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.adminHubNav {
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.adminHubUser,
.adminHubStatus {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.adminHubButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.adminHubButton.secondary {
  border: 1px solid #dbe2ea;
  background: #ffffff;
  color: var(--text);
}

.adminHubButton.primary {
  border: 0;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.adminHubButton:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.adminHubMain {
  padding-bottom: 56px;
}

.adminHubHero {
  margin: 8px 0 18px;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #eaf3ff 100%);
  box-shadow: var(--shadow);
  padding: 22px;
}

.adminHubEyebrow {
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
}

.adminHubHero h1 {
  margin-top: 6px;
  font-size: 32px;
  line-height: 1.08;
}

.adminHubHero p,
.adminHubCard p,
.adminHubDenied p {
  color: var(--muted);
  line-height: 1.5;
}

.adminHubContent,
.adminHubSection {
  display: grid;
  gap: 16px;
}

.adminHubSection {
  border-top: 1px solid #e7ebf2;
  padding-top: 16px;
}

.adminHubSection:first-child {
  border-top: 0;
  padding-top: 0;
}

.adminHubGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.adminHubPanel,
.adminHubCard {
  border: 1px solid #e7ebf2;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 16px;
}

.adminHubCard {
  display: grid;
  gap: 18px;
  min-height: 160px;
}

.adminHubCard.action {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.05s ease, box-shadow 0.18s ease;
}

.adminHubCard.action:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.075);
  transform: translateY(-1px);
}

.adminHubCard.placeholder {
  min-height: auto;
  background: #fbfdff;
  border-style: dashed;
}

.adminHubCardMeta {
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e7ebf2;
  padding-top: 12px;
}

.adminHubCount {
  color: var(--blue-strong);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.adminHubCardMeta span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.adminHubDenied {
  border-color: #fecaca;
}

.adminHubDenied h2 {
  color: var(--danger);
}

@media (max-width: 760px) {
  .adminHubHero,
  .adminHubSectionHead,
  .adminHubHeaderInner {
    align-items: flex-start;
    flex-direction: column;
  }

  .adminHubNav {
    justify-content: flex-start;
  }

  .adminHubGrid {
    grid-template-columns: 1fr;
  }
}
