:root {
  --red: #B23A3A;
  --red-deep: #8E2C2C;
  --olive: #1E1E1E;
  --white: #FAFAFA;
  --muted: #666;
  --border: #e7e2df;
  --portal-shadow: 0 20px 45px -28px rgba(0,0,0,.2);
}

.portal-shell-header {
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.5);
}

.portal-shell-nav,
.portal-shell-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.portal-shell-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.portal-shell-brand,
.portal-shell-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
}

.portal-shell-brand img,
.portal-shell-footer-brand img {
  width: 24px;
  height: auto;
}

.portal-shell-brand span span,
.portal-shell-footer-brand span span {
  color: var(--red);
}

.portal-shell-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.portal-shell-links a {
  color: rgba(250,250,250,.76);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.portal-shell-links a:hover,
.portal-shell-links a[aria-current="page"] { color: var(--white); }

.portal-shell-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-shell-profile {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 11px 4px 5px;
  border: 1px solid rgba(250,250,250,.2);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
}

.portal-shell-profile:hover { border-color: rgba(250,250,250,.55); }
.portal-shell-profile .avatar { width: 34px; height: 34px; }
.portal-shell-profile .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #f29b9b);
  color: var(--white);
  font-weight: 800;
}
.portal-shell-profile .account-copy { line-height: 1.2; }
.portal-shell-profile .account-copy small { display: block; margin-top: 3px; color: rgba(250,250,250,.66); font-size: 11px; }
.membership-star { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-left: 2px; color: #f0bd48; font-size: 17px; line-height: 1; }
.membership-star.standard { color: #76a9db; }
.membership-star::after { content: ""; }

.portal-shell-logout {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(250,250,250,.28);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.portal-shell-logout:hover { border-color: var(--white); background: rgba(250,250,250,.1); }

.portal-shell-footer {
  margin-top: 40px;
  padding: 52px 0 26px;
  background: var(--olive);
  color: rgba(250,250,250,.72);
}

.portal-shell-footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.portal-shell-footer-brand { margin-bottom: 10px; }
.portal-shell-footer-copy { max-width: 300px; margin: 0; font-size: 13px; line-height: 1.7; }
.portal-shell-footer-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.portal-shell-footer-meta a { color: var(--white); font-weight: 800; text-decoration: none; }

@media (max-width: 900px) {
  .portal-shell-nav { flex-wrap: wrap; padding: 14px 0; gap: 14px 18px; }
  .portal-shell-links { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px; }
  .portal-shell-links a { white-space: nowrap; }
}

@media (max-width: 560px) {
  .portal-shell-nav,
  .portal-shell-footer-inner { width: min(100% - 28px, 1180px); }
  .portal-shell-account { margin-left: auto; }
  .portal-shell-profile .account-copy { display: none; }
  .portal-shell-logout { padding-inline: 11px; }
  .portal-shell-footer { padding-top: 38px; }
}
