:root {
  --pb-bg-root: #020914;
  --pb-bg-sidebar: #04101c;
  --pb-bg-header: #030c17;
  --pb-bg-card: #061522;
  --pb-bg-card-soft: #081b2b;
  --pb-bg-card-hover: #0a2235;
  --pb-border: #14354a;
  --pb-border-soft: rgba(70, 155, 205, 0.18);
  --pb-divider: rgba(120, 185, 220, 0.1);
  --pb-text-main: #eef7ff;
  --pb-text-muted: #a5b6c3;
  --pb-text-soft: #8ca1b3;
  --pb-cyan: #00c9ff;
  --pb-blue: #1687ff;
  --pb-green: #35e56f;
  --pb-purple: #b34cff;
  --pb-gold: #ffbd38;
  --pb-red: #ff4d59;
  --pb-orange: #ffb547;
  --pb-ink: var(--pb-text-main);
  --pb-muted: var(--pb-text-muted);
  --pb-bg: var(--pb-bg-root);
  --pb-panel: var(--pb-bg-card);
  --pb-line: var(--pb-border);
  --pb-line-soft: var(--pb-divider);
  --pb-radius: 7px;
  --pb-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  --pb-sidebar: 156px;
  --pb-max: 1600px;
  --pb-font-display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --pb-font-condensed: Oswald, "Exo 2", "Arial Narrow", sans-serif;
  --pb-font-body: Rubik, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { margin: 0; color: var(--pb-text-main); background: var(--pb-bg-root); font-family: var(--pb-font-body); font-size: 14px; line-height: 1.45; }
body::before { position: fixed; z-index: -1; inset: 0; content: ""; background: radial-gradient(circle at 74% -10%, rgba(22, 135, 255, 0.12), transparent 34%), linear-gradient(135deg, transparent 70%, rgba(0, 201, 255, 0.025)); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pb-cyan); text-underline-offset: 0.2em; }
a:hover { color: #86eaff; }
button,
input,
select,
textarea { font: inherit; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 5px; left: 5px; width: auto; height: auto; padding: 12px; clip: auto; color: #001017; background: #fff; }
.pb-skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 0.65rem 1rem; color: #001017; background: var(--pb-cyan); font-weight: 800; transform: translateY(-150%); }
.pb-skip-link:focus { transform: translateY(0); }

.pb-app-shell { display: grid; grid-template-columns: var(--pb-sidebar) minmax(0, 1fr); min-height: 100vh; }
.pb-app-main { min-width: 0; }
.pb-sidebar { position: sticky; z-index: 30; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 13px 9px; overflow-y: auto; border-right: 1px solid var(--pb-border); background: linear-gradient(180deg, rgba(4, 16, 28, 0.98), #020a13 78%); box-shadow: 10px 0 35px rgba(0, 0, 0, 0.26); }
.pb-brand { padding: 8px 8px 14px; text-align: center; border-bottom: 1px solid var(--pb-divider); }
.pb-brand .custom-logo { width: auto; max-height: 58px; margin-inline: auto; }
.pb-brand__wordmark { display: inline-grid; grid-template-columns: auto auto; color: #fff; font: italic 900 26px/0.9 var(--pb-font-display); letter-spacing: 0.02em; text-decoration: none; text-shadow: 0 0 15px rgba(0, 201, 255, 0.18); }
.pb-brand__wordmark span { color: #fff; }
.pb-brand__wordmark b { grid-column: 1 / -1; color: var(--pb-cyan); font-size: 15px; letter-spacing: 0.32em; }
.pb-brand small { display: block; margin-top: 5px; color: var(--pb-text-muted); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pb-primary-nav { padding-top: 10px; }
.pb-nav-list,
.pb-utility-links,
.pb-footer-links { display: flex; margin: 0; padding: 0; list-style: none; }
.pb-nav-list { flex-direction: column; gap: 3px; }
.pb-nav-list a { position: relative; display: flex; gap: 8px; align-items: center; min-height: 46px; padding: 6px 7px; border: 1px solid transparent; border-radius: 5px; color: #a9bdc9; text-decoration: none; }
.pb-nav-list a::before { position: absolute; top: 7px; bottom: 7px; left: -1px; width: 2px; content: ""; background: transparent; }
.pb-nav-icon { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; color: #c0d0da; font: 700 14px/1 var(--pb-font-body); }
.pb-nav-list a > span:last-child { display: grid; min-width: 0; }
.pb-nav-list strong { color: inherit; font: 800 14px/1.1 var(--pb-font-display); letter-spacing: 0.03em; text-transform: uppercase; }
.pb-nav-list small { margin-top: 3px; overflow: hidden; color: var(--pb-text-soft); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.pb-nav-list .current-menu-item > a,
.pb-nav-list a:hover { border-color: rgba(0, 201, 255, 0.42); color: #fff; background: linear-gradient(90deg, rgba(0, 201, 255, 0.18), rgba(0, 94, 151, 0.08)); box-shadow: inset 0 0 18px rgba(0, 201, 255, 0.06); }
.pb-nav-list .current-menu-item > a::before,
.pb-nav-list a:hover::before { background: var(--pb-cyan); box-shadow: 0 0 9px var(--pb-cyan); }
.pb-nav-list .current-menu-item .pb-nav-icon,
.pb-nav-list a:hover .pb-nav-icon { color: var(--pb-cyan); }
.pb-sidebar-status,
.pb-season-promo { margin-top: 12px; padding: 10px; border: 1px solid var(--pb-border); border-radius: 6px; background: rgba(3, 14, 24, 0.78); }
.pb-sidebar-status h2,
.pb-season-promo h2 { margin: 0 0 8px; font: 800 14px/1.1 var(--pb-font-display); letter-spacing: 0.05em; text-transform: uppercase; }
.pb-sidebar-status p { display: flex; gap: 6px; align-items: center; margin: 0; }
.pb-sidebar-status strong { color: var(--pb-text-main); font-size: 14px; text-transform: uppercase; }
.pb-sidebar-status small { display: block; margin-top: 8px; color: var(--pb-text-soft); font-size: 14px; }
.pb-sidebar-status a { display: grid; place-items: center; min-height: 40px; margin-top: 8px; padding: 6px; border: 1px solid var(--pb-border); color: #bde9f7; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; text-transform: uppercase; }
.pb-season-promo { position: relative; margin-top: auto; padding-top: 48px; overflow: hidden; background: linear-gradient(180deg, rgba(2, 9, 20, 0.18), #061522 62%), var(--pb-promo-image, radial-gradient(circle at 50% 20%, rgba(179, 76, 255, 0.32), transparent 40%)); background-position: center; background-size: cover; }
.pb-season-promo small { color: var(--pb-gold); font-size: 14px; text-transform: uppercase; }
.pb-season-promo h2 { margin-top: 4px; color: #fff; font-size: 16px; }
.pb-season-promo p { color: var(--pb-text-muted); font-size: 14px; }
.pb-sidebar-footer { display: grid; gap: 3px; margin-top: 12px; padding: 9px 8px 0; border-top: 1px solid var(--pb-divider); color: var(--pb-text-soft); font-size: 14px; }
.pb-sidebar-footer strong { color: var(--pb-text-muted); font: 700 14px/1.3 var(--pb-font-display); text-transform: uppercase; }
.pb-status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--pb-cyan); box-shadow: 0 0 10px rgba(0, 201, 255, 0.65); }
.pb-status-dot--online { background: var(--pb-green); box-shadow: 0 0 10px rgba(53, 229, 111, 0.7); }
.pb-status-dot--stale,
.pb-status-dot--degraded,
.pb-status-dot--partial { background: var(--pb-gold); box-shadow: 0 0 10px rgba(255, 189, 56, 0.65); }
.pb-status-dot--offline,
.pb-status-dot--error,
.pb-status-dot--schema-mismatch { background: var(--pb-red); box-shadow: 0 0 10px rgba(255, 77, 89, 0.65); }

.pb-utility-header { position: sticky; z-index: 20; top: 0; display: flex; gap: 14px; align-items: center; min-height: 56px; padding: 8px 18px; border-bottom: 1px solid var(--pb-border-soft); background: rgba(3, 12, 23, 0.94); backdrop-filter: blur(14px); }
.pb-utility-header--static { position: relative; }
.pb-menu-toggle { display: none; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--pb-border); border-radius: 5px; color: #fff; background: var(--pb-bg-card); }
.pb-menu-close { display: none; width: 44px; min-height: 44px; margin: 0 0 8px auto; border: 1px solid var(--pb-border); border-radius: 5px; color: #fff; background: var(--pb-bg-card); font-size: 24px; }
.pb-drawer-overlay[hidden] { display: none; }
.pb-global-search { display: flex; gap: 8px; align-items: center; width: min(420px, 42vw); min-height: 44px; padding: 0 9px; border: 1px solid var(--pb-border); border-radius: 6px; color: var(--pb-text-soft); background: rgba(6, 21, 34, 0.82); }
.pb-global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--pb-text-main); background: transparent; font-size: 14px; }
.pb-global-search kbd { padding: 2px 5px; border: 1px solid #436276; border-radius: 3px; color: #c1d0d9; background: #0a1b29; font: 700 14px/1.3 var(--pb-font-body); text-transform: uppercase; }
.pb-account { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.pb-account-avatar { position: relative; display: block; width: 34px; height: 34px; overflow: hidden; border: 1px solid var(--pb-cyan); border-radius: 50%; }
.pb-account-avatar .pb-avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--pb-cyan); background: #061b29; font: 900 14px/1 var(--pb-font-display); }
.pb-account__avatar { position: absolute; inset: 0; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pb-account > span { display: grid; }
.pb-account strong { font: 800 14px/1.1 var(--pb-font-display); text-transform: uppercase; }
.pb-account small { color: var(--pb-text-muted); font-size: 14px; }
.pb-account > a:not(.pb-button) { display: grid; place-items: center; min-height: 40px; padding: 7px; color: var(--pb-text-muted); font-size: 14px; text-decoration: none; text-transform: uppercase; }

.pb-content { width: min(100%, var(--pb-max)); margin-inline: auto; padding: 14px 16px 18px; }
.pb-content--standard { min-height: 70vh; }
.pb-card { border: 1px solid var(--pb-border); border-radius: var(--pb-radius); background: linear-gradient(145deg, rgba(8, 27, 43, 0.97), rgba(4, 15, 25, 0.98)); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); }
.pb-entry { margin-bottom: 12px; padding: clamp(16px, 3vw, 30px); }
.pb-entry h1 { margin-top: 0; font-family: var(--pb-font-display); }
.pb-entry h1 a { color: inherit; text-decoration: none; }
.pb-card-link { position: absolute; inset: 0; border-radius: inherit; }

.pb-state { display: flex; gap: 10px; align-items: center; min-height: 86px; padding: 14px; border: 1px dashed #28485a; border-radius: var(--pb-radius); color: var(--pb-text-muted); background: rgba(0, 0, 0, 0.12); }
.pb-state strong { color: var(--pb-text-main); }
.pb-state p { margin: 2px 0 0; }
.pb-state__signal { width: 16px; height: 16px; border: 2px solid var(--pb-text-muted); border-radius: 50%; }
.pb-state--loading .pb-state__signal { border-right-color: transparent; animation: pb-spin 0.7s linear infinite; }
.pb-state--error .pb-state__signal,
.pb-state--offline .pb-state__signal,
.pb-state--schema-mismatch .pb-state__signal { border-color: var(--pb-red); }
.pb-state--stale .pb-state__signal,
.pb-state--partial .pb-state__signal,
.pb-state--maintenance .pb-state__signal { border-color: var(--pb-gold); }
@keyframes pb-spin { to { transform: rotate(360deg); } }

.pb-dashboard-footer { display: grid; grid-template-columns: 1.25fr 1.1fr 0.9fr 0.85fr; margin: 0 4px 4px; border: 1px solid var(--pb-border); border-radius: 8px; color: var(--pb-text-muted); background: linear-gradient(145deg, #071725, #03101b); }
.pb-dashboard-footer > section { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--pb-divider); }
.pb-dashboard-footer > section:last-child { border-right: 0; }
.pb-dashboard-footer h2 { margin: 0 0 12px; color: var(--pb-text-main); font: 800 14px/1 var(--pb-font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.pb-dashboard-footer h2 small { color: var(--pb-gold); }
.pb-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pb-service-grid li { display: flex; gap: 7px; align-items: center; min-height: 44px; padding: 7px; border: 1px solid var(--pb-divider); border-radius: 4px; color: var(--pb-text-main); font-size: 14px; text-transform: uppercase; }
.pb-service-grid li > span:last-child { display: grid; }
.pb-service-grid small { color: var(--pb-text-soft); font-size: 14px; }
.pb-footer-metrics { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border: 1px solid var(--pb-divider); border-radius: 4px; }
.pb-footer-metrics div { padding: 9px; text-align: center; border-right: 1px solid var(--pb-divider); border-bottom: 1px solid var(--pb-divider); }
.pb-footer-metrics div:nth-child(2n) { border-right: 0; }
.pb-footer-metrics div:nth-last-child(-n + 2) { border-bottom: 0; }
.pb-footer-metrics dt { color: var(--pb-text-soft); font-size: 14px; text-transform: uppercase; }
.pb-footer-metrics dd { margin: 3px 0 0; color: var(--pb-text-main); font: 800 14px/1 var(--pb-font-display); }
.pb-dashboard-footer p { font-size: 14px; }
.pb-social-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-social-links a { display: grid; place-items: center; min-height: 40px; padding: 6px 8px; border: 1px solid var(--pb-border); border-radius: 4px; color: var(--pb-text-muted); font-size: 14px; text-decoration: none; }
.pb-footer-brand { display: grid; align-content: center; }
.pb-footer-brand > strong { color: #fff; font: italic 900 18px/1 var(--pb-font-display); }
.pb-footer-brand > strong span { color: var(--pb-cyan); }
.pb-footer-brand small { color: var(--pb-text-soft); font-size: 14px; }

@media (max-width: 1279px) {
  :root { --pb-sidebar: 150px; }
  .pb-dashboard-footer { grid-template-columns: repeat(2, 1fr); }
  .pb-dashboard-footer > section:nth-child(2) { border-right: 0; }
  .pb-dashboard-footer > section:nth-child(-n + 2) { border-bottom: 1px solid var(--pb-divider); }
}

@media (max-width: 1023px) {
  .pb-app-shell { display: block; }
  .pb-sidebar { position: fixed; left: 0; width: min(82vw, 290px); padding: 16px 12px; visibility: hidden; transform: translateX(-105%); transition: transform 180ms ease, visibility 180ms ease; }
  .pb-sidebar.is-open { visibility: visible; transform: translateX(0); }
  .pb-menu-toggle { display: grid; }
  .pb-menu-close { display: grid; place-items: center; }
  .pb-drawer-overlay { position: fixed; z-index: 25; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0, 5, 10, 0.68); }
  body.pb-menu-open { overflow: hidden; }
  .pb-nav-list a { min-height: 50px; }
  .pb-nav-list strong { font-size: 14px; }
  .pb-nav-list small { font-size: 14px; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  .pb-utility-header { min-height: 56px; padding-inline: 10px; }
  .pb-global-search { width: auto; flex: 1; }
  .pb-global-search kbd { display: none; }
  .pb-account > span,
  .pb-account > a:not(.pb-button) { display: none; }
  .pb-account .pb-button { min-width: 44px; max-width: 110px; padding-inline: 9px; font-size: 14px; }
  .pb-sidebar-status a,
  .pb-social-links a { min-height: 44px; }
  .pb-dashboard-footer { grid-template-columns: 1fr; margin: 0; border-right: 0; border-left: 0; border-radius: 0; }
  .pb-dashboard-footer > section { border-right: 0; border-bottom: 1px solid var(--pb-divider); }
  .pb-dashboard-footer > section:last-child { border-bottom: 0; }
}

@media (max-width: 479px) {
  .pb-global-search input::placeholder { color: transparent; }
  .pb-account .pb-button { width: 44px; overflow: hidden; color: transparent; }
  .pb-account .pb-button::after { color: #fff; content: "Login"; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --- Global notification bell (utility header) ---------------------- */
.pb-notify-bell { position: relative; display: inline-flex; }
.pb-notify-bell__button { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #17364a; border-radius: 9px; background: #07131e; color: #cfeaff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, color .18s ease; }
.pb-notify-bell__button:hover, .pb-notify-bell.is-open .pb-notify-bell__button { border-color: #00c9ff; color: #fff; box-shadow: 0 0 16px rgba(0, 201, 255, 0.25); }
.pb-notify-bell.has-unread .pb-notify-bell__button { color: #fff; }
.pb-notify-bell__count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 999px; background: #ff4d59; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px #07131e; }
.pb-notify-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(360px, 90vw); max-height: 460px; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, #061826, #04101c); border: 1px solid #17364a; border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); z-index: 1200; }
.pb-notify-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0.9rem; border-bottom: 1px solid #12293a; }
.pb-notify-panel__head strong { color: #f7fcff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pb-notify-panel__readall { background: none; border: none; color: #00c9ff; font-size: 0.78rem; font-weight: 600; cursor: pointer; padding: 0.2rem 0.3rem; }
.pb-notify-panel__readall:hover { text-decoration: underline; }
.pb-notify-panel__body { overflow-y: auto; padding: 0.4rem; }
.pb-notify-empty { margin: 0; padding: 1rem 0.6rem; color: #7ea7c4; font-size: 0.85rem; text-align: center; }
.pb-notify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.pb-notify-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.6rem; border-radius: 8px; border: 1px solid transparent; }
.pb-notify-item.is-unread { background: #081f30; border-color: rgba(0, 201, 255, 0.28); }
.pb-notify-item__main { min-width: 0; display: grid; gap: 0.18rem; }
.pb-notify-item__main strong { font-size: 0.85rem; color: #f0f8ff; font-weight: 600; }
.pb-notify-item__main strong a { color: inherit; text-decoration: none; }
.pb-notify-item__main strong a:hover { color: #00c9ff; }
.pb-notify-item__main p { margin: 0; font-size: 0.8rem; color: #b7d4e6; }
.pb-notify-item__main small { font-size: 0.7rem; color: #6f96b2; }
.pb-notify-dot { flex: 0 0 auto; width: 11px; height: 11px; margin-top: 0.25rem; padding: 0; border: none; border-radius: 50%; background: #00c9ff; cursor: pointer; }
.pb-notify-dot:hover { box-shadow: 0 0 8px rgba(0, 201, 255, 0.7); }
@media (max-width: 600px) { .pb-notify-panel { position: fixed; top: 60px; right: 3vw; left: 3vw; width: auto; } }

/* Bell rings gently every 5s while there are unread notifications (stops when opened/read). */
@keyframes pb-bell-ring {
  0% { transform: rotate(0); }
  2% { transform: rotate(15deg); }
  4% { transform: rotate(-13deg); }
  6% { transform: rotate(11deg); }
  8% { transform: rotate(-9deg); }
  10% { transform: rotate(6deg); }
  12% { transform: rotate(-4deg); }
  14% { transform: rotate(2deg); }
  16% { transform: rotate(0); }
  100% { transform: rotate(0); }
}
@keyframes pb-bell-count-pulse {
  0%, 88%, 100% { transform: scale(1); }
  92% { transform: scale(1.18); }
}
.pb-notify-bell.has-unread:not(.is-open) .pb-notify-bell__button svg {
  transform-origin: top center;
  animation: pb-bell-ring 5s ease-in-out infinite;
}
.pb-notify-bell.has-unread:not(.is-open) .pb-notify-bell__count {
  animation: pb-bell-count-pulse 5s ease-in-out infinite;
}

/* Bell is hidden entirely unless there are unread notifications (or the panel is open). */
.pb-notify-bell { display: none; }
.pb-notify-bell.has-unread,
.pb-notify-bell.is-open { display: inline-flex; }

/* === Notification bell — final, minimal, overrides global button styles === */
.pb-notify-bell { align-items: center; }
.pb-notify-bell__button {
  -webkit-appearance: none !important; appearance: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #bfe6ff !important;
  width: 34px !important; height: 34px !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important;
  border-radius: 8px !important;
  display: inline-grid !important; place-items: center !important;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.pb-notify-bell__button:hover,
.pb-notify-bell.is-open .pb-notify-bell__button {
  color: #ffffff !important;
  background: rgba(0, 201, 255, 0.10) !important;
  box-shadow: none !important;
}
.pb-notify-bell__button svg { display: block; width: 21px; height: 21px; will-change: transform; }
.pb-notify-bell__count {
  top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #ff3b47 !important; color: #fff !important;
  font-size: 10px; box-shadow: 0 0 0 2px #0b1017;
}
/* Panel: clean, smooth fade-in, immune to global transitions */
.pb-notify-panel {
  transition: none !important;
  animation: pb-notify-in 150ms cubic-bezier(.2,.8,.2,1);
  transform-origin: top right;
}
@keyframes pb-notify-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.pb-notify-panel__body { scrollbar-width: thin; }

/* The hidden attribute must win over the panel's display:flex (fixes auto-open). */
.pb-notify-panel[hidden] { display: none !important; }

/* ============================================================================
 * Shell refresh — brand, nav, footer.
 * ========================================================================== */

.pb-brand__wordmark { font: 800 26px/0.9 var(--pb-font-display); letter-spacing: 0.01em; }
.pb-brand small { font: 500 10px/1.3 var(--pb-font-condensed); letter-spacing: 0.18em; text-transform: uppercase; }
.pb-nav-list strong { font: 600 13px/1.15 var(--pb-font-condensed); letter-spacing: 0.09em; }
.pb-nav-list small { font-size: 11px; letter-spacing: 0.02em; }
.pb-sidebar-status h2,
.pb-season-promo h2,
.pb-sidebar-footer strong { font-family: var(--pb-font-condensed); font-weight: 500; letter-spacing: 0.12em; }
.pb-account strong { font-family: var(--pb-font-condensed); font-weight: 600; letter-spacing: 0.07em; }

/* The sidebar scrolls only when it genuinely overflows, and never shows a bar
   until the pointer is over it. */
.pb-sidebar { scrollbar-width: none; }
.pb-sidebar::-webkit-scrollbar { width: 0; }
.pb-sidebar:hover { scrollbar-width: thin; }
.pb-sidebar:hover::-webkit-scrollbar { width: 6px; }

/* ---- Footer ------------------------------------------------------------- */
.pb-dashboard-footer {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 26px;
    padding: 30px 24px 24px;
    border-top: 1px solid var(--pb-border);
    background: linear-gradient(180deg, rgba(4, 16, 28, 0.6), #020a13);
}
.pb-dashboard-footer h2 {
    margin: 0 0 12px;
    color: var(--pb-text-main);
    font: 500 11px/1 var(--pb-font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.pb-footer-logo {
    display: inline-block;
    color: #fff;
    font: 800 22px/1 var(--pb-font-display);
    letter-spacing: 0.01em;
    text-decoration: none;
}
.pb-footer-logo span { color: var(--pb-cyan); }
.pb-footer-brand p { margin: 8px 0; max-width: 34ch; color: var(--pb-text-muted); font-size: 12px; line-height: 1.5; }
.pb-footer-brand small { color: var(--pb-text-soft); font-size: 11px; }

.pb-footer-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.pb-footer-metrics dt { color: var(--pb-text-soft); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; }
.pb-footer-metrics dd { margin: 3px 0 0; color: var(--pb-text-main); font: 700 16px/1 var(--pb-font-display); font-variant-numeric: tabular-nums; }

.pb-footer-nav { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.pb-footer-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pb-text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color .16s ease;
}
.pb-footer-nav a:hover { color: var(--pb-cyan); }

.pb-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-social-links a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 201, 255, 0.22);
    border-radius: 10px;
    color: #8fd8ee;
    background: rgba(0, 201, 255, 0.06);
    transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.pb-social-links a:hover {
    border-color: rgba(0, 201, 255, 0.65);
    color: #fff;
    background: rgba(0, 201, 255, 0.18);
    transform: translateY(-2px);
}

@media (max-width: 1080px) {
    .pb-dashboard-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .pb-dashboard-footer { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================================================================
 * Top bar: language switcher + account block.
 * ========================================================================== */

/* ---- Language (GTranslate) ---------------------------------------------- */
/* The plugin owns the language list; we only own how it sits in the bar. */
.pb-lang {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.pb-lang + .pb-account { margin-left: 12px; }

.pb-lang .gtranslate_wrapper,
.pb-lang .gt_container,
.pb-lang .gt_container-flags {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}
.pb-lang a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 4px !important;
    border: 1px solid transparent;
    border-radius: 7px;
    opacity: 0.62;
    line-height: 0;
    transition: opacity .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.pb-lang a:hover {
    opacity: 1;
    border-color: rgba(0, 201, 255, 0.4);
    background: rgba(0, 201, 255, 0.08);
    transform: translateY(-1px);
}
/* The active language reads as selected, not as another option. */
.pb-lang a.glink.gt-current-lang,
.pb-lang a[class*="current"] {
    opacity: 1;
    border-color: rgba(0, 201, 255, 0.55);
    background: rgba(0, 201, 255, 0.12);
}
.pb-lang img {
    display: block;
    width: 21px;
    height: auto;
    border-radius: 3px;
}
/* GTranslate's own floating widget would fight the layout — the bar owns this. */
.gt_float_switcher,
.gtranslate_wrapper > .gt_float_switcher { display: none !important; }
/* Google's injected top banner shifts the whole page down. */
.goog-te-banner-frame,
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; }

/* ---- Account block ------------------------------------------------------ */
.pb-account {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    padding: 4px 4px 4px 10px;
    border: 1px solid var(--pb-border-soft);
    border-radius: 999px;
    background: rgba(6, 21, 34, 0.6);
}
.pb-lang ~ .pb-account { margin-left: 0; }

.pb-account-avatar {
    width: 32px;
    height: 32px;
    border-color: rgba(0, 201, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(0, 201, 255, 0.10);
}
.pb-account__avatar { width: 32px; height: 32px; }

.pb-account > span { display: grid; gap: 1px; line-height: 1.1; }
.pb-account strong {
    font: 700 12px/1.1 var(--pb-font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* The role is a caption, not a second name — it was the same size as the name. */
.pb-account small {
    color: var(--pb-text-soft);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* "Profile" reads as a control instead of a stray link. */
.pb-account > a:not(.pb-button) {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--pb-border);
    border-radius: 999px;
    color: var(--pb-text-muted);
    background: rgba(3, 15, 25, 0.72);
    font: 600 10px/1 var(--pb-font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.pb-account > a:not(.pb-button):hover {
    color: #fff;
    border-color: var(--pb-cyan);
    background: rgba(0, 201, 255, 0.12);
}

/* Logged out: the button is the whole block, so drop the pill shell. */
.pb-account:not(:has(.pb-account-avatar)) {
    padding: 0;
    border: 0;
    background: none;
}

@media (max-width: 780px) {
    /* Keep the bar breathable on phones: flags and the name step aside. */
    .pb-account > span { display: none; }
    .pb-lang a { padding: 3px !important; }
    .pb-lang img { width: 18px; }
}
@media (max-width: 520px) {
    .pb-lang { display: none; }
}

/* The name and avatar are links to the public profile, but must not read as
   ordinary body links inside the account pill. */
.pb-account__name { color: inherit; text-decoration: none; }
.pb-account__name:hover strong { color: var(--pb-cyan); }
a.pb-account-avatar { display: block; text-decoration: none; transition: box-shadow .16s ease, border-color .16s ease; }
a.pb-account-avatar:hover {
    border-color: var(--pb-cyan);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.18);
}
