@media (max-width: 768px) {
  .ps-overlay {
    display: none !important;
  }
}

.ps-shell {
  display: grid;
  grid-template-columns: 268px 1fr;

  grid-template-rows: minmax(0, 1fr);
  width: min(1120px, 100%);
  height: min(760px, 100%);
}

.ps-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 22px 16px;
  background: var(--bg-deep);
  border-right: 1px solid var(--stroke);
  overflow-y: auto;
}

.ps-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--panel-2);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease;
}

.ps-identity:hover {
  background: var(--panel-3, var(--panel-2));
}

.ps-identity img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tier-c, var(--pst));
}

.ps-identity strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-lg);
}

.ps-identity span {
  color: var(--muted);
  font-size: var(--fs-base);
}

.ps-identity-tier {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--tier-c) 16%, transparent);
  color: var(--tier-c);
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ps-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ps-nav-item {
  --row-c: var(--pst);
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 12px 9px 9px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.ps-nav-item[data-nav="wallet"] {
  --row-c: var(--teal);
}

.ps-nav-item[data-nav="bonuses"] {
  --row-c: var(--gold);
}

.ps-nav-item[data-nav="activity"] {
  --row-c: var(--amber);
}

.ps-nav-item[data-nav="notifications"] {
  --row-c: var(--secondary-light);
}

.ps-nav-item[data-nav="account"] {
  --row-c: var(--orchid);
}

.ps-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 20px;
  border-radius: 0 var(--r-hair) var(--r-hair) 0;
  background: var(--row-c);
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.18s ease;
}

.ps-nav-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--row-c) 14%, transparent);
  color: var(--row-c);
  transition: background 0.16s ease, color 0.16s ease;
}

.ps-nav-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ps-nav-item strong {
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.ps-nav-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.ps-nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);

  background: var(--secondary);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.ps-nav-badge.is-warn,
.mobile-prof-nav-badge.is-warn {
  background: var(--red-a16);
  color: var(--red);
}

.ps-nav-item:hover {
  background: var(--white-a05);
}

.ps-nav-item:hover .ps-nav-glyph {
  background: color-mix(in srgb, var(--row-c) 24%, transparent);
}

.ps-nav-item:active {
  background: var(--white-a08);
}

.ps-nav-item.active {
  background: color-mix(in srgb, var(--row-c) 12%, transparent);
}

.ps-nav-item.active::before {
  transform: translateY(-50%) scaleY(1);
}

.ps-nav-item.active .ps-nav-glyph {
  background: var(--row-c);
  color: var(--bg-deep);
}

.ps-nav-item.active strong {
  color: var(--row-c);
}

.ps-nav-logout {
  --row-c: var(--red-soft);
  margin-top: auto;
  padding-top: 15px;
}

.ps-nav-logout::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 12px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke), transparent);
}

.ps-nav-logout:hover strong {
  color: var(--red-soft);
}

.ps-nav-logout::before {
  content: none;
}

.ps-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--panel);
}

.ps-main-head {
  padding: 20px 26px;
}

.ps-main-body {
  padding: 24px 26px 30px;
}

.ps-main-body > * {
  max-width: 980px;
  margin-inline: auto;
}

.ps-nav,
.ps-notif-list {
}

.ps-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
}

.ps-tab {
  min-width: 108px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ps-tab:hover {
  color: var(--text);
}

.ps-tab.is-on {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}

.ps-card {
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--panel-2);
}

.ps-card + .ps-card,
.ps-overview > * + *,
.ps-settings > * + * {
  margin-top: 16px;
}

.ps-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: var(--fs-lg);
}

.ps-card-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--fs-md);
}

.ps-card-more {
  display: inline-block;
  margin-top: 12px;

  color: var(--pst);
  font-size: var(--fs-md);
  font-weight: 600;
  text-decoration: none;
}

.ps-card-more:hover {
  text-decoration: underline;
}

.ps-btn {
  font-size: var(--fs-lg);
}

.ps-quick-actions {
  display: flex;
  gap: 12px;
}

.ps-vip {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--tier-c) 12%, transparent) 0%, transparent 55%),
    var(--panel-2);
}

.ps-vip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ps-vip-eyebrow {
  display: block;
  color: var(--muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ps-vip-head strong {
  color: var(--tier-c);
  font-size: var(--fs-2xl);
}

.ps-vip-head .ps-card-more {
  margin-top: 0;
}

.ps-vip-bar {
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--bg-deep);
  overflow: hidden;
}

.ps-vip-bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tier-c) 55%, var(--black)), var(--tier-c));
  transition: width 0.4s ease;
}

.ps-vip-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--fs-base);
}

.ps-redeem,
.ps-copy-field {
  display: flex;
  gap: 8px;
}

.ps-redeem input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  color: var(--text);
}

.ps-copy-field {
  align-items: center;
  padding: 8px 8px 8px 14px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
}

.ps-copy-field span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--fs-md);
}

.ps-copy-field button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--accent-dark) 0%, var(--accent) 100%);
  cursor: pointer;
}

.ps-copy-field button img {
  width: 16px;
  height: 16px;

  filter: invert(var(--on-accent-invert));
}

.ps-copy-field button.copied img {
  opacity: 0;
}

.ps-copy-field button.copied::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  font-size: var(--fs-xl);
  font-weight: 900;
}

.ps-verify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-verify-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  transition: background 0.15s ease;
}

.ps-verify-list li:hover {
  background: color-mix(in srgb, var(--pst) 7%, transparent);
}

.ps-verify-list strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-lg);
}

.ps-verify-list span {
  color: var(--muted);
  font-size: var(--fs-base);
}

.ps-table {
  width: 100%;
  border-collapse: collapse;
}

.ps-table th,
.ps-table td {
  padding: 12px 10px;
  text-align: left;
  font-size: var(--fs-md);
  border-bottom: 1px solid var(--stroke);
}

.ps-table th {
  color: var(--muted);
  font-weight: 600;
}

.ps-table td {
  color: var(--text);
}

.ps-table tbody tr:last-child td {
  border-bottom: 0;
}

.ps-toggle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-toggle-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  transition: background 0.15s ease;
}

.ps-toggle-list li:hover {
  background: color-mix(in srgb, var(--pst) 7%, transparent);
}

.ps-toggle-list strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-lg);
}

.ps-toggle-list span {
  color: var(--muted);
  font-size: var(--fs-base);
}

.ps-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.ps-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ps-switch i {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background: var(--chip);
  transition: background 0.18s ease;
}

.ps-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.18s ease, background 0.18s ease;
}

.ps-switch input:checked + i {
  background: color-mix(in srgb, var(--pst) 25%, transparent);
}

.ps-switch input:checked + i::after {
  transform: translateX(20px);
  background: var(--accent);
}

.ps-card .lang-strip {
  gap: 8px;
}

.ps-card .lang-chip {
  height: 38px;
  padding: 0 12px 0 8px;
  background: var(--bg-deep);
  color: var(--text);
  font-size: var(--fs-sm);
  opacity: 1;
}

.ps-card .lang-chip .lang-flag {
  width: 20px;
  height: 20px;
}

.ps-edit-avatar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--pst) 12%, transparent) 0%, transparent 60%), var(--bg-deep);
}

.ps-edit-avatar > img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pst);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--pst) 12%, transparent);
}

.ps-edit-avatar-copy strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-lg);
}

.ps-edit-avatar-copy > span {
  color: var(--muted);
  font-size: var(--fs-base);
}

.ps-avatar-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ps-avatar-pick {
  width: 40px;
  height: 40px;
  padding: 2px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--chip);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ps-avatar-pick img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ps-avatar-pick:hover {
  transform: translateY(-2px);
}

.ps-avatar-pick.is-on {
  box-shadow: 0 0 0 3px var(--accent);
}

.ps-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ps-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-field > span {
  color: var(--muted);
  font-size: var(--fs-base);
}

/* One field skin for every control the form vocabulary carries — the textarea
   was the only one left drawing its own (`.ps-msg-compose textarea`, still more
   specific where it applies, and the call-me note, which had a whole sheet). */
.ps-field input,
.ps-field select,
.ps-field textarea {
  padding: 11px 12px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  color: var(--text);
  font-size: var(--fs-lg);
  text-align: left;
}

.ps-field textarea {
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
}

.ps-field select {
  appearance: none;
  padding-right: 34px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 55% / 5px 5px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--muted) 50%) calc(100% - 13px) 55% / 5px 5px no-repeat,
    var(--bg-deep);
  cursor: pointer;
}

.ps-field select:has(option[value=""]:checked) {
  color: var(--muted);
}

.ps-edit-save {
  margin-top: 20px;
  opacity: 0.6;
}

.ps-edit-save.is-ready {
  opacity: 1;
}

.ps-edit-message {
  margin: 12px 0 0;
  color: var(--pst);
  font-size: var(--fs-md);
}

.ps-wallet-pane {
  color: var(--text);
}

.ps-wallet-pane .mobile-wallet-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
}

.ps-wallet-pane .mobile-wallet-tabs button {
  min-width: 108px;
  height: auto;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
}

.ps-wallet-pane .mobile-wallet-tabs button:hover {
  color: var(--text);
}

.ps-wallet-pane .mobile-wallet-tabs button.active {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}

.ps-wallet-pane :is(.mobile-wallet-field input, .mobile-wallet-selects button) {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.ps-wallet-pane :is(.mobile-wallet-field span, .mobile-wallet-selects label) {
  color: var(--muted);
  font-size: var(--fs-base);
  font-weight: 600;
}

.ps-wallet-pane .mobile-wallet-selects {
  gap: 16px;
  margin-top: 18px;
}

.ps-wallet-pane .mobile-wallet-field {
  margin-top: 16px;
}

.ps-wallet-pane .mobile-wallet-selects img {
  width: 20px;
  height: 20px;
}

.ps-wallet-pane .mobile-wallet-submit {
  width: auto;
  min-width: 220px;
  height: 44px;
  margin-top: 22px;
  font-size: var(--fs-lg);
}

.ps-wallet-pane .mobile-wallet-submit:hover {
  filter: brightness(1.06);
}

@media (max-width: 1024px) {
  .ps-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .ps-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
  }

  .ps-nav-logout {
    margin: 0;
    padding-top: 9px;
  }

  .ps-nav-logout::after {
    content: none;
  }

  .ps-edit-grid {
    grid-template-columns: 1fr;
  }
}

.ps-notif-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--pst) 12%, transparent) 0%, transparent 62%), var(--bg-deep);
}

.ps-notif-mascot {
  width: 46px;

  align-self: flex-end;
  margin-bottom: -10px;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--pst) 30%, transparent));
}

.ps-notif-title {
  margin-right: auto;
}

.ps-notif-title strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-lg);
}

.ps-notif-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--fs-base);
}

.ps-notif-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-notif-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--bg-deep);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease;
}

.ps-notif-item:hover {
  background: color-mix(in srgb, var(--pst) 7%, transparent);
}

.ps-notif-item.is-unread {
  background: linear-gradient(180deg, color-mix(in srgb, var(--notif-accent, var(--pst)) 9%, transparent) 0%, var(--bg-deep) 100%);
}

.ps-notif-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--notif-accent, var(--pst)) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--notif-accent, var(--pst)) 30%, transparent);
  color: var(--notif-accent, var(--pst));
  line-height: 1;
}

.ps-notif-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ps-notif-copy strong {
  color: var(--text);
  font-size: var(--fs-lg);
}

.ps-notif-copy span {
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ps-notif-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ps-notif-meta time {
  color: var(--muted);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.ps-notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--notif-accent, var(--pst));
  box-shadow: 0 0 10px color-mix(in srgb, var(--notif-accent, var(--pst)) 55%, transparent);
}

.top-actions .icon-button {
  position: relative;
}

.top-actions .icon-button .notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--r-pill);

  background: var(--secondary);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1;
}

.ps-msg-tabs {
  margin: 12px 0;
}

.ps-msg-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.ps-msg-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
}

.ps-msg-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-lg);
}

.ps-msg-search button {
  color: var(--muted);
  font-size: var(--fs-base);
  cursor: pointer;
}

.ps-msg-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-msg-date > span {
  color: var(--muted);
  font-size: var(--fs-base);
}

.ps-msg-date input {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-md);
}

.ps-msg-date input::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
  filter: invert(1);
}

.ps-msg-empty {
  padding: 28px 14px;
  border-radius: var(--r-lg);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: var(--fs-md);
  text-align: center;
}

.ps-msg-compose {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ps-msg-compose textarea {
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-lg);
  resize: vertical;
}

.ps-msg-compose button[type="submit"] {
  align-self: flex-start;
}

@media (max-width: 720px) {
  .ps-msg-filters {
    grid-template-columns: 1fr 1fr;
  }

  .ps-msg-search {
    grid-column: 1 / -1;
  }
}

.ps-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    linear-gradient(100deg, var(--panel-2) 0%, color-mix(in srgb, var(--tier-c, var(--pst)) 16%, var(--panel-2)) 100%);
}

.ps-hero-art {
  position: absolute;
  inset: 0;
  background: var(--img-mobile-profile-hero) center / cover no-repeat;
  opacity: 0.38;
  mask-image: linear-gradient(90deg, var(--black) 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(90deg, var(--black) 0%, transparent 72%);
}

.ps-hero-character {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 44%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.95;
  mask-image: linear-gradient(90deg, transparent 0%, var(--black) 58%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--black) 58%);
  pointer-events: none;
}

.ps-hero-id {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ps-hero-avatar {
  display: block;
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tier-c, var(--pst)), var(--pst));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--tier-c, var(--pst)) 14%, transparent);
}

.ps-hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ps-hero-copy strong {
  display: block;
  color: var(--white);
  font-size: var(--fs-3xl);
  font-weight: 800;
}

.ps-hero-copy > span {
  display: block;
  margin-top: 2px;
  color: var(--muted-5);
  font-size: var(--fs-base);
}

.ps-hero-edit {
  position: relative;
  z-index: 2;
  margin-left: auto;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: var(--r-md);

  background: color-mix(in srgb, var(--bg-deep) 78%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ps-hero-edit:hover {
  background: color-mix(in srgb, var(--pst) 12%, transparent);
}

/* The privacy eye — the switch that blanks the name, the UID and every balance
   on the site to ••••. No plate and no stroke: it is a glyph next to the name it
   hides, and it only colours up when it is actually holding something back. */
.ps-eye {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted-5);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.ps-eye:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--pst) 12%, transparent);
}

.ps-eye[aria-pressed="true"] {
  color: var(--pst);
}

/* Phone hub: the head row is avatar · name · eye, so it takes the far end. */
.mobile-profile-eye {
  margin-left: auto;
}

.ps-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ps-stat {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  align-items: center;
  gap: 0 12px;
  width: 100%;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--stat-c) 14%, transparent) 0%, transparent 62%),
    var(--panel-2);
  text-align: left;
}

button.ps-stat {
  cursor: pointer;
}

button.ps-stat:hover {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--stat-c) 24%, transparent) 0%, transparent 62%),
    var(--panel-2);
}

.ps-stat--accent { --stat-c: var(--pst); }
.ps-stat--amber { --stat-c: var(--amber); }
.ps-stat--violet { --stat-c: var(--orchid); }

.ps-stat-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--stat-c) 18%, transparent);
}

.ps-stat-icon img {
  width: 22px;
  height: 22px;
}

.ps-stat-label {
  grid-area: label;
  color: var(--muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ps-stat strong {
  grid-area: value;
  color: var(--white);
  font-size: var(--fs-2xl);
  font-weight: 800;
  white-space: nowrap;
}

.ps-stat strong i {
  color: var(--stat-c);
  font-size: var(--fs-base);
  font-style: normal;
  font-weight: 700;
}

.ps-vip {
  position: relative;
  overflow: hidden;
}

.ps-vip-badge {
  position: absolute;
  right: 18px;
  bottom: -18px;
  width: 116px;
  opacity: 0.9;
  filter: drop-shadow(0 10px 22px color-mix(in srgb, var(--tier-c) 40%, transparent));
  pointer-events: none;
}

.ps-vip-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ps-vip-perks li {
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--tier-c) 10%, transparent);
  color: var(--muted-5);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.ps-bonus,
.ps-referral {
  position: relative;
  overflow: hidden;
}

.ps-bonus > :not(.ps-card-art),
.ps-referral > :not(.ps-card-art) {
  position: relative;
  z-index: 1;
}

.ps-card-art {
  position: absolute;
  z-index: 0;
  right: -10px;
  top: -10px;
  width: 74px;
  opacity: 0.5;
  pointer-events: none;
}

.ps-bonus {
  background: linear-gradient(150deg, color-mix(in srgb, var(--pst) 12%, transparent) 0%, transparent 55%), var(--panel-2);
}

.ps-referral {
  background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 12%, transparent) 0%, transparent 55%), var(--panel-2);
}

.ps-quick-actions .ps-btn {
  flex: 1;
}

.ps-table-card {
  padding: 8px 8px 4px;
  overflow-x: auto;
}

.ps-table {
  min-width: 560px;
}

.ps-shell .ps-switch input:focus-visible {
  outline: 2px solid var(--pst);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@media (max-width: 1024px) {
  .ps-stats {
    grid-template-columns: 1fr;
  }

  .ps-hero-character {
    display: none;
  }
}

.ps-activity > * + * {
  margin-top: 16px;
}

.ps-act-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  padding: 16px 22px 16px 18px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--pst) 12%, transparent) 0%, color-mix(in srgb, var(--pst) 0%, transparent) 62%),
    var(--bg-deep);
}

.ps-act-mascot {
  width: 104px;
  align-self: flex-end;
  margin-bottom: -16px;
  filter: drop-shadow(0 12px 26px color-mix(in srgb, var(--pst) 45%, transparent));
  pointer-events: none;
}

.ps-act-lead {
  min-width: 0;
}

.ps-act-eyebrow {
  display: block;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ps-act-lead strong {
  display: block;
  margin: 4px 0 6px;
  font-size: var(--fs-5xl);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ps-act-lead p {
  margin: 0;
  color: var(--muted-5);
  font-size: var(--fs-base);
}

.is-up {
  color: var(--pst);
}

.is-down {
  color: var(--red-soft);
}

.ps-act-rate {
  margin-left: auto;
  text-align: center;
}

.ps-act-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(var(--pst) calc(var(--pct, 0) * 1%), var(--white-a08) 0);
  box-shadow: 0 0 0 1px var(--stroke);
}

.ps-act-dial::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg-deep);
}

.ps-act-dial span {
  position: relative;
  color: var(--text);
  font-size: var(--fs-3xl);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ps-act-dial span i {
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 700;
}

.ps-act-rate em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-style: normal;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ps-nudge > li > div {
  margin-right: auto;
}

.ps-act-tile--accent { --act-c: var(--pst); }
.ps-act-tile--violet { --act-c: var(--orchid); }
.ps-act-tile--amber { --act-c: var(--amber); }
.ps-act-tile--teal { --act-c: var(--teal); }
.ps-act-tile--red { --act-c: var(--red); }

.ps-act-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--chip);
  color: var(--act-c, var(--accent));
}

.ps-act-tile--logo {
  --act-c: var(--muted-5);
}

.ps-act-tile--logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ps-act-game {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-act-name strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 800;
}

.ps-act-name em {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 700;
}

.ps-act-date {
  color: var(--muted) !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.ps-act-rounds {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--chip);
  color: var(--muted-5);
  font-size: var(--fs-base);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ps-act-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--pst) 12%, transparent);
  color: var(--pst);
  font-size: var(--fs-base);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ps-act-pill.is-down {
  background: var(--red-soft-a12);
  color: var(--red-soft);
}

.ps-act-table {
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.ps-act-table thead th {
  padding: 0 16px 2px;
  border: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ps-act-table tbody td {
  padding: 11px 16px;
  border: 0;
  background: var(--bg);
  font-size: var(--fs-md);
  font-weight: 800;
  transition: background 0.16s ease;
}

.ps-act-table tbody td:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.ps-act-table tbody td:last-child {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  text-align: right;
}

.ps-act-table thead th:last-child {
  text-align: right;
}

.ps-act-table tbody tr:hover td {
  background: var(--panel-2);
}

.ps-activity .ps-table-card {
  padding: 4px 12px 10px;
}

.ps-security {
  position: relative;
  overflow: hidden;
}

.ps-security > :not(.ps-security-mascot) {
  position: relative;
  z-index: 1;
}

.ps-security-mascot {
  position: absolute;
  z-index: 0;
  right: -14px;
  bottom: -18px;
  width: 128px;
  opacity: 0.22;
  pointer-events: none;
}

.ps-card-art--mascot {
  width: 58px;
  right: 6px;
  top: -4px;
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .ps-act-mascot {
    display: none;
  }
}

.bh {
  --bh-cols: minmax(220px, 2.3fr) 1fr 1fr 1fr 1fr 52px;
  display: grid;
  gap: 14px;
}

.bh-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--pst) 7%, transparent) 0%, color-mix(in srgb, var(--pst) 0%, transparent) 60%),
    var(--bg-deep);
}

.bh-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 18px 12px 6px;
  border-radius: var(--r-md);
  background: var(--panel);
  cursor: text;
}

.bh-field > span {
  position: absolute;
  top: 7px;
  left: 13px;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.bh-field input,
.bh-field select {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 800;
}

.bh-field select {
  appearance: none;
  padding-right: 18px;
  cursor: pointer;
}

.bh-field:has(select)::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 21px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted-5);
  border-bottom: 2px solid var(--muted-5);
  transform: rotate(45deg);
  pointer-events: none;
}

.bh-field option {
  background: var(--panel);
  color: var(--text);
}

.bh-field--search {
  flex-direction: row-reverse;
  gap: 8px;
}

.bh-field-glyph {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--muted-5);
}

.bh-field--search input::placeholder {
  color: var(--muted);
  font-weight: 700;
}

.bh-field--search button {
  flex: none;
  color: var(--muted);
  font-size: var(--fs-base);
}

.bh-show {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 200px;
}

.bh-list {
  display: grid;
  gap: 8px;
}

.bh-head {
  display: grid;
  grid-template-columns: var(--bh-cols);
  gap: 12px;
  padding: 2px 16px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bh-head > span:last-child {
  text-align: right;
}

.bh-slip {
  --bh-c: var(--amber);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: background 0.16s ease;
}

.bh-slip.is-won { --bh-c: var(--pst); }
.bh-slip.is-lost { --bh-c: var(--red-soft); }

.bh-slip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--bh-c);
}

.bh-slip:hover,
.bh-slip.is-open {
  background: var(--panel-2);
}

.bh-row {
  display: grid;
  grid-template-columns: var(--bh-cols);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
}

.bh-cell {
  min-width: 0;
  font-size: var(--fs-md);
  font-weight: 800;
}

.bh-num {
  font-variant-numeric: tabular-nums;
}

.bh-sub {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bh-odds {
  color: var(--gold);
}

.bh-payout {
  color: var(--bh-c);
}

.bh-when {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bh-status {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bh-c) 14%, transparent);
  color: var(--bh-c);
}

.bh-when-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bh-when-text time {
  color: var(--muted-5);
  font-size: var(--fs-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bh-id {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: auto;
}

.bh-id i {
  color: var(--muted);
  font-size: var(--fs-base);
  font-style: normal;
  font-weight: 700;
}

.bh-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: var(--fs-base);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bh-copy button {
  display: grid;
  place-items: center;
  opacity: 0.55;
  transition: opacity 0.16s ease;
}

.bh-copy button:hover,
.bh-copy button.copied {
  opacity: 1;
}

.bh-copy img {
  width: 13px;
  height: 13px;
}

.bh-verdict {
  color: var(--bh-c);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bh-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 5px;
  border-radius: var(--r-pill);
  background: var(--chip);
  font-size: var(--fs-base);
  font-weight: 800;
}

.bh-kind i {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--bh-c);
  color: var(--accent-black);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 900;
}

.bh-act {
  display: flex;
  justify-content: flex-end;
}

.bh-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--chip);
  color: var(--muted-5);
  transform: rotate(180deg);
  transition: transform 0.18s ease, color 0.16s ease;
}

.bh-slip.is-open .bh-toggle {
  color: var(--bh-c);
  transform: rotate(0deg);
}

.bh-detail {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
}

.bh-leg {
  --bh-c: var(--amber);
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) minmax(160px, 1.3fr) 56px minmax(150px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
}

.bh-leg.is-won { --bh-c: var(--pst); }
.bh-leg.is-lost { --bh-c: var(--red-soft); }

.bh-leg-match {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bh-leg-match time {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bh-leg-match strong {
  font-size: var(--fs-base);
  font-weight: 800;
}

.bh-teams {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-5);
  font-size: var(--fs-base);
  font-weight: 700;
}

.bh-teams img {
  flex: none;
  opacity: 0.8;
}

.bh-leg-pick {
  display: grid;
  gap: 3px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--panel);
}

.bh-leg-pick span {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.bh-leg-pick strong {
  font-size: var(--fs-base);
  font-weight: 800;
}

.bh-leg-odds {
  color: var(--gold);
  font-size: var(--fs-lg);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.bh-leg-score {
  display: grid;
  gap: 4px;
  justify-items: start;
  font-size: var(--fs-base);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bh-leg-score span {
  padding: 4px 9px;
  border-radius: var(--r-sm);
  background: var(--chip);
}

.bh-leg-score i {
  margin-right: 6px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.bh-leg-score em {
  color: var(--bh-c);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 700;
}

.bh-empty {
  margin: 0;
  padding: 28px 16px;
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--muted);
  font-size: var(--fs-md);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 760px) {
  .bh-filters {
    grid-template-columns: 1fr 1fr;
  }

  .bh-show {
    min-width: 0;
    width: 100%;
  }

  .bh-head {
    display: none;
  }

  .bh-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .bh-when {
    padding-right: 40px;
  }

  .bh-cell[data-label] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .bh-cell[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .bh-cell[data-label] .bh-sub {
    display: none;
  }

  .bh-act {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .bh-leg {
    grid-template-columns: 1fr auto;
  }

  .bh-leg-match,
  .bh-leg-score {
    grid-column: 1 / -1;
  }

  .bh-leg-score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
}

.sec-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-prof-section .sec-pane {
  padding: 4px 15px 28px;
}

.sec-card {
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--panel-2);
}

.sec-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: var(--fs-lg);
}

.sec-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.sec-hero {
  --sec-c: var(--pst);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--sec-c) 16%, transparent) 0%, transparent 70%),
    var(--panel-2);
}

.sec-hero--warn {
  --sec-c: var(--red);
}

.sec-hero-mascot {
  position: absolute;
  z-index: 0;
  right: -22px;
  bottom: -24px;
  width: min(118px, 30%);
  opacity: 0.16;
  pointer-events: none;
}

.sec-hero > :not(.sec-hero-mascot) {
  position: relative;
  z-index: 1;
}

.sec-hero-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--sec-c) 18%, transparent);
  color: var(--sec-c);
}

.sec-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sec-hero-copy strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-xl);
  font-weight: 800;
}

.sec-hero-copy p {
  margin: 8px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.sec-state {
  grid-column: 2;
  justify-self: start;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sec-state.is-on {
  background: var(--accent);
  color: var(--on-accent);
}

@media (min-width: 560px) {
  .sec-hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .sec-state {
    grid-column: 3;
    grid-row: 1;
  }
}

.sec-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sec-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
}

.sec-step-n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-md);
  font-weight: 900;
}

.sec-step-body > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 800;
}

.sec-qr {
  display: inline-grid;
  place-items: center;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--white);
}

.sec-qr img {
  display: block;
  width: 148px;
  height: 148px;
  image-rendering: pixelated;
}

.sec-or {
  display: block;
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: var(--fs-base);
  font-weight: 700;
}

.sec-key span {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  letter-spacing: 1px;
}

.sec-code {
  display: block;
  width: 100%;
  height: 58px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: 12px;
  text-align: center;
}

.sec-code:focus {
  outline: 2px solid var(--pst);
  outline-offset: -2px;
}

.sec-error {
  margin: 0 0 12px;
  color: var(--red);
  font-size: var(--fs-base);
  font-weight: 700;
}

.sec-done {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pst) 12%, transparent) 0%, var(--panel-2) 100%);
}

.sec-done--warn {
  background: linear-gradient(180deg, color-mix(in srgb, var(--red) 14%, transparent) 0%, var(--panel-2) 100%);
}

.sec-done-tick {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
}

.sec-done--warn .sec-done-tick {
  background: var(--red);
  color: var(--white);
}

.sec-done strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 800;
}

.sec-done p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.5;
}

.sec-codes {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sec-codes li {
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  user-select: all;
}

@media (min-width: 560px) {
  .sec-codes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sec-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sec-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--panel-2);
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 600;
}

.sec-fact--accent { --act-c: var(--pst); }
.sec-fact--amber { --act-c: var(--amber); }
.sec-fact--red { --act-c: var(--red); }

@media (min-width: 720px) {
  .sec-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sec-periods {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.sec-period {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  cursor: pointer;
  transition: background 0.15s ease;
}

.sec-period:hover {
  background: color-mix(in srgb, var(--pst) 7%, transparent);
}

.sec-period.is-on {
  background: color-mix(in srgb, var(--pst) 12%, transparent);
}

.sec-period input,
.sec-ack input {
  width: 18px;
  height: 18px;
  margin: 0;

  color-scheme: dark;
  accent-color: var(--pst);
  cursor: pointer;
}

.sec-period-copy strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 800;
}

.sec-period-copy em {
  color: var(--muted);
  font-size: var(--fs-base);
  font-style: normal;
}

.sec-ack {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.5;
  cursor: pointer;
}

.sec-ack input {
  margin-top: 2px;
}

.sec-submit:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.sec-help {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.sec-help a,
.sec-link {
  color: var(--pst);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sec-help a:hover,
.sec-link:hover {
  text-decoration: underline;
}

.bns-pane > * + * {
  margin-top: 16px;
}

.bns-list {
  display: grid;
  gap: 12px;
}

.bns-row {
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--row-c) 10%, transparent) 0%, transparent 46%),
    var(--panel-2);
  --row-c: var(--pst);
}

.bns-row--amber { --row-c: var(--amber); }
.bns-row--red { --row-c: var(--red); }
.bns-row--teal { --row-c: var(--teal); }
.bns-row--violet { --row-c: var(--orchid); }

.bns-row-head {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) auto auto 20px;
  grid-template-areas:
    "tile name amount pill chev"
    "tile track track track chev";
  align-items: center;
  gap: 6px 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bns-row-head:hover {
  background: var(--white-a05);
}

.bns-row-head > .ps-act-tile { grid-area: tile; }

.bns-row-name {
  grid-area: name;
  display: grid;
  min-width: 0;
}

.bns-row-name strong {
  overflow: hidden;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bns-row-name em {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-style: normal;
}

.bns-row-amount {
  grid-area: amount;
  color: var(--white);
  font-size: var(--fs-lg);
  font-weight: 800;
  white-space: nowrap;
}

.bns-row-amount i {
  color: var(--row-c);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 700;
}

.bns-row-head > .ps-act-pill { grid-area: pill; }

.bns-row-track {
  grid-area: track;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bns-row-track em {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-style: normal;
  white-space: nowrap;
}

.bns-bar {
  display: block;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--white-a08);
}

.bns-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--row-c), color-mix(in srgb, var(--row-c) 55%, var(--white)));
  transition: width 0.4s ease;
}

.bns-bar--lg {
  height: 9px;
  margin-top: 8px;
}

.bns-row-chevron {
  grid-area: chev;
  display: grid;
  place-items: center;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 0.25s ease, color 0.15s ease;
}

.bns-row.is-open .bns-row-chevron {
  transform: rotate(-90deg);
  color: var(--row-c);
}

.bns-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.bns-row.is-open .bns-row-body {
  grid-template-rows: 1fr;
}

.bns-row-inner {
  overflow: hidden;
}

.bns-row.is-open .bns-row-inner {
  padding: 4px 16px 16px;
}

.bns-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  color: var(--muted);
  font-size: var(--fs-base);
}

.bns-progress strong {
  color: var(--text);
  font-weight: 800;
}

.bns-progress .bns-bar {
  flex-basis: 100%;
}

.bns-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
}

.bns-facts dt {
  color: var(--muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.bns-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 700;
}

.bns-expiry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

.bns-expiry-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--fs-base);
}

.bns-clock {
  display: flex;
  gap: 6px;
}

.bns-clock span {
  display: grid;
  min-width: 42px;
  padding: 6px 8px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  text-align: center;
}

.bns-clock strong {
  color: var(--white);
  font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.bns-clock em {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-style: normal;
}

.bns-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.bns-empty img {
  width: 88px;
}

.bns-empty strong {
  color: var(--text);
  font-size: var(--fs-lg);
}

.bns-empty p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-md);
}

.mobile-profile-bonus {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 520px) {
  .bns-row-head {
    grid-template-columns: 34px minmax(0, 1fr) auto 18px;
    grid-template-areas:
      "tile name amount chev"
      "tile pill pill chev"
      "track track track track";
    padding: 12px 14px;
  }

  .bns-row-head > .ps-act-pill {
    justify-self: start;
  }
}
