/* ==========================================================================
   Arenyze — account dashboard (/profile).

   Page-level styles only: the surfaces, type, buttons and tokens come from
   style.css, the same set every tracker in the network uses.
   ========================================================================== */

/* The dashboard is its own screen, not a page of the site: a full-height rail
   on the left, the sections on the right. No site navbar or footer. */
body.dashboard-body { background: var(--bg); }
.dashboard-container { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.dashboard-sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-soft); border-right: 1px solid var(--line);
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 64px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.sidebar-brand { display: inline-flex; align-items: center; gap: 10px; }
.sidebar-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; transition: transform .35s var(--ease); }
.sidebar-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.sidebar-toggle { display: none; width: 36px; height: 36px; place-items: center; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink-2); }
.sidebar-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 16px 14px; overflow-y: auto; }
.sidebar-label { padding: 2px 11px 8px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); }
.dash-av, .dash-av img, .sidebar-user-fb {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; object-fit: cover; display: grid; place-items: center;
}
.dash-av { background: linear-gradient(160deg, var(--acc), var(--acc-lo)); color: var(--acc-ink); font: 800 1.15rem/1 var(--f-display); overflow: hidden; }
.sidebar-user-fb { background: none; }
.dash-user-id { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.dash-user-id b { font-size: .875rem; }
.dash-user-id span { color: var(--ink-3); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500; font-size: .8125rem; text-align: left; transition: background .12s, color .12s;
}
.nav-item .material-icons { font-size: 19px; color: var(--ink-3); transition: color .12s; }
.nav-item:hover { background: var(--s2); color: var(--ink); }
.nav-item.active { background: var(--s3); color: var(--ink); }
.nav-item.active .material-icons { color: var(--acc); }
.nav-item.danger:hover, .nav-item.danger:hover .material-icons { color: var(--down); }
.nav-item-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px;
  background: var(--acc); color: var(--acc-ink); font-size: .68rem; font-weight: 700;
}

.dashboard-content { min-width: 0; padding: 34px clamp(20px, 3vw, 44px) 80px; }
.dashboard-content > .content-section { max-width: 1080px; }

/* one page head per section: title, one line of context, an optional action */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head .section-subtitle { margin: 8px 0 0; }
.content-section { display: none; }
.content-section.active { display: block; animation: rise .35s var(--ease) both; }
.content-section .sec-title { display: flex; align-items: center; gap: 10px; font: 700 1.6rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.content-section .sec-title::before { content: ''; width: 4px; height: 20px; background: var(--acc); transform: skewX(-14deg); border-radius: 1px; }
.section-subtitle { margin: 8px 0 20px; color: var(--ink-3); font-size: .8125rem; max-width: 70ch; }

/* cards inside the dashboard use the same shell, with their own head/body names */
.dashboard-content .card + .card { margin-top: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-header h3 { font-size: .9375rem; }
.card-header p { margin-top: 3px; color: var(--ink-3); font-size: .78rem; line-height: 1.5; }
.card-content { padding: 18px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat-card { padding: 16px; background: var(--s1); }
.stat-title { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { margin-top: 6px; font: 700 1.8rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat-value.is-plan { color: var(--gold); }
.stat-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; color: var(--acc); font-size: .72rem; font-weight: 600; }
.stat-link .material-icons { font-size: 14px; }
.stat-subtitle { margin-top: 4px; color: var(--ink-3); font-size: .72rem; }

.profile-card { display: flex; flex-direction: column; }
.profile-info-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.profile-info-row:first-child { padding-top: 2px; }
.profile-info-row:last-child { padding-bottom: 2px; border-bottom: 0; }
.profile-label { color: var(--ink-3); }
.profile-value { font-weight: 600; }
.profile-info-row .row-main b { display: block; font-size: .8125rem; }
.profile-info-row .row-main span { display: block; margin-top: 2px; color: var(--ink-3); font-size: .75rem; }
.profile-info-row .row-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.avatar-row { display: flex; align-items: flex-start; gap: 20px; }
.avatar-shot { width: 92px; height: 92px; flex-shrink: 0; border-radius: 22px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line-2); }
.avatar-fb { display: grid; place-items: center; background: linear-gradient(160deg, var(--acc), var(--acc-lo)); color: var(--acc-ink); font: 800 2.4rem/1 var(--f-display); }
.avatar-copy h4, .cover-copy h4 { font-size: .9rem; }
.avatar-copy p, .cover-copy p { margin-top: 4px; color: var(--ink-3); font-size: .78rem; line-height: 1.55; }
.avatar-btns { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.card-title-row { display: flex; align-items: center; gap: 10px; }
.premium-pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: var(--r-xs); background: var(--gold-a12); color: var(--gold); font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.premium-pill .material-icons { font-size: 13px; }
.cover-row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: center; }
.cover-shot {
  position: relative; aspect-ratio: 3 / 1; border-radius: var(--r); overflow: hidden; display: grid; place-items: center;
  background: var(--bg-soft) center / cover no-repeat; border: 1px dashed var(--line-2);
}
.cover-shot.has-img { border-style: solid; }
.cover-shot.has-img .cover-empty { display: none; }
.cover-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-4); font-size: .78rem; }
.cover-empty .material-icons { font-size: 26px; }
.premium-lock { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--gold-a12); box-shadow: inset 0 0 0 1px #ffc82e2e; }
.premium-lock-ic { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--r); background: #ffc82e1f; color: var(--gold); }
.premium-lock-copy { flex: 1; min-width: 0; }
.premium-lock-copy b { display: block; font-size: .8125rem; }
.premium-lock-copy span { display: block; margin-top: 2px; color: var(--ink-2); font-size: .78rem; line-height: 1.5; }
.cover-card.is-locked .cover-row { opacity: .45; pointer-events: none; filter: saturate(.4); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row .form-control { flex: 1 1 260px; font-family: var(--f-mono); font-size: .78rem; }
.dash-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

/* forms */
.form-group + .form-group { margin-top: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
/* Stacked groups space themselves; inside the grid that rule only pushed every
   column after the first down by 14px (Platform and Region sat on two lines). */
.form-grid > .form-group + .form-group { margin-top: 0; }
.form-hint { margin-top: 6px; color: var(--ink-4); font-size: .75rem; }

/* buttons */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: var(--r);
  font-weight: 600; font-size: .8125rem; white-space: nowrap; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.btn-primary { background: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { background: var(--acc-hi); box-shadow: 0 8px 24px -10px var(--acc-a30); }
.btn-secondary { background: var(--s3); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { background: var(--s4); border-color: var(--line-3); }
.btn-ghost { color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--s2); color: var(--ink); }
.btn-primary:active, .btn-secondary:active { transform: translateY(1px); }
.btn-primary:disabled, .btn-secondary:disabled { opacity: .45; pointer-events: none; }
.btn-danger { color: var(--down); }
.btn-danger:hover { background: var(--down-a12); border-color: #ff6b5740; color: var(--down); }
.btn-sm { height: 32px; padding: 0 11px; font-size: .75rem; }
.btn-primary .material-icons, .btn-secondary .material-icons, .btn-ghost .material-icons { font-size: 17px; }
.btn-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); color: var(--ink-2); transition: background .15s, color .15s; }
.btn-icon:hover { background: var(--s3); color: var(--ink); }
.btn-icon.danger:hover { background: var(--down-a12); color: var(--down); }
.btn-icon .material-icons { font-size: 17px; }

.status-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-sm); font-size: .72rem; font-weight: 600; }
.status-badge .material-icons { font-size: 14px; }
.status-badge.status-success { background: var(--up-a12); color: var(--up); }
.status-badge.status-pending { background: var(--gold-a12); color: var(--gold); }
.status-badge.status-muted { background: var(--s3); color: var(--ink-3); }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: var(--r); font-size: .8125rem; line-height: 1.5; }
.alert .material-icons { font-size: 18px; }
.alert-error { background: var(--down-a12); color: var(--down); }
.alert-success { background: var(--up-a12); color: var(--up); }
.alert-info { background: var(--s2); color: var(--ink-2); }
.alert-info .material-icons { color: var(--acc); }
.alert[hidden] { display: none; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; color: var(--ink-3); font-size: .8125rem; text-align: center; }
.empty-state .material-icons { font-size: 26px; color: var(--ink-4); }

/* linked trackers */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.conn-tile { --g: var(--acc); display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); transition: border-color .18s, background .18s; }
.conn-tile:hover { border-color: var(--line-3); }
.conn-tile.is-linked { background: linear-gradient(180deg, #f5a62310, var(--bg-soft) 60%); border-color: var(--acc-a16); }
.conn-head { display: flex; align-items: center; gap: 12px; }
.conn-logo, .conn-logo img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.conn-body { min-width: 0; line-height: 1.35; }
.conn-body b { display: block; font-size: .875rem; }
.conn-body > span { display: block; color: var(--ink-3); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.conn-actions { display: flex; gap: 6px; }

/* notifications */
.notif-list { display: flex; flex-direction: column; }
.notif-item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: default; }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { cursor: pointer; }
.notif-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--s4); flex-shrink: 0; }
.notif-item.unread .notif-dot { background: var(--acc); box-shadow: 0 0 0 4px var(--acc-a16); }
.notif-body { flex: 1; min-width: 0; }
.notif-body b { font-size: .8125rem; }
.notif-body p { margin: 3px 0 5px; color: var(--ink-2); font-size: .78rem; line-height: 1.5; }
.notif-body > span { color: var(--ink-4); font-size: .72rem; }
.notif-x { opacity: 0; transition: opacity .15s; }
.notif-item:hover .notif-x, .notif-x:focus-visible { opacity: 1; }

/* ---- link-account wizard ------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 24px; background: #000b; backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.active { opacity: 1; visibility: visible; }
.modal-content {
  position: relative; width: min(620px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  background: var(--s1); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); transform: translateY(12px) scale(.98); transition: transform .28s var(--ease);
}
.modal.active .modal-content { transform: none; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-title { display: flex; align-items: center; gap: 12px; }
.modal-title-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r); background: var(--acc-a08); color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc-a16); }
.modal-header h3 { font: 700 1.2rem var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.modal-header p { margin-top: 2px; color: var(--ink-3); font-size: .78rem; }
.close-modal { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink-2); }
.close-modal:hover { background: var(--s2); color: var(--ink); }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.modal-footer .footer-spacer { margin-right: auto; }

.wiz-steps { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.wiz-step { display: flex; align-items: center; gap: 8px; color: var(--ink-4); font-size: .75rem; font-weight: 600; }
.wiz-step-num { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--s3); color: var(--ink-3); font-size: .7rem; }
.wiz-step.is-on { color: var(--ink); }
.wiz-step.is-on .wiz-step-num { background: var(--acc); color: var(--acc-ink); }
.wiz-step.is-done { color: var(--ink-2); }
.wiz-step.is-done .wiz-step-num { background: var(--up-a12); color: transparent; position: relative; }
.wiz-step.is-done .wiz-step-num::after { content: 'check'; position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Material Symbols Rounded'; font-weight: 400; font-style: normal; text-transform: none; letter-spacing: normal; font-feature-settings: 'liga'; font-size: 14px; color: var(--up); }
.wiz-sep { flex: 1; height: 1px; background: var(--line-2); }
.wiz-step.is-done + .wiz-sep { background: var(--up-a12); }
.wiz-pane { display: none; }
.wiz-pane.active { display: block; animation: rise .3s var(--ease) both; }

.game-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.game-option {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; border-radius: var(--r);
  background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--ink-2); text-align: center;
  transition: border-color .15s, background .15s, transform .2s var(--ease);
}
.game-option img { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 6px; }
.game-option b { font-size: .8125rem; color: var(--ink); }
.game-option small { font-size: .7rem; color: var(--ink-4); line-height: 1.4; }
.game-option:hover { border-color: var(--line-3); transform: translateY(-2px); }
.game-option.selected { border-color: var(--acc); background: var(--acc-a08); }
.game-option .game-linked { position: absolute; top: 8px; right: 8px; font-size: 16px; color: var(--up); }

.search-row { display: flex; gap: 8px; }
.search-field { position: relative; flex: 1; }
.search-field .form-control { padding-left: 38px; padding-right: 36px; }
.search-field-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--ink-3); pointer-events: none; }
.search-field:focus-within .search-field-ic { color: var(--acc); }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--ink-3); }
.search-clear:hover { background: var(--s3); color: var(--ink); }
.search-clear .material-icons { font-size: 16px; }
.search-clear[hidden] { display: none; }
.search-go { width: 42px; padding: 0; }
.search-results { margin-top: 12px; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.result-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: var(--r-sm); background: var(--bg-soft); border: 1px solid transparent; text-align: left; transition: background .12s, border-color .12s; }
.result-item:hover { background: var(--s2); }
.result-item.selected { border-color: var(--acc); background: var(--acc-a08); }
.result-av, .result-av img { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--s3); font-weight: 700; color: var(--ink-2); overflow: hidden; }
.result-main { flex: 1; min-width: 0; line-height: 1.3; }
.result-main b { display: block; font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-main span { display: block; color: var(--ink-3); font-size: .72rem; }
.result-check { font-size: 18px; color: var(--acc); opacity: 0; }
.result-item.selected .result-check { opacity: 1; }
.search-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-3); font-size: .78rem; }
.search-note .material-icons { font-size: 17px; }
.search-note.is-busy .material-icons { animation: spin 1s linear infinite; }

.confirm-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--acc-a16); }
.confirm-card b { display: block; font-size: .9375rem; }
.confirm-card span { display: block; color: var(--ink-3); font-size: .78rem; }
.confirm-extra { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.confirm-extra-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.confirm-extra-head .material-icons { font-size: 16px; }
.wiz-pane .alert { margin-top: 16px; }

@media (max-width: 1020px) {
  /* the rail folds into a bar at the top, with the menu behind a toggle */
  .dashboard-container { grid-template-columns: minmax(0, 1fr); }
  .dashboard-sidebar { position: sticky; top: 0; z-index: var(--z-nav); height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-toggle { display: grid; }
  .sidebar-panel { display: none; padding: 14px; border-top: 1px solid var(--line); }
  .sidebar-panel.is-open { display: flex; }
  .sidebar-foot { margin-top: 16px; }
  .dashboard-content { padding: 24px 20px 56px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cover-row, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .avatar-row { flex-direction: column; }
  .game-picker { grid-template-columns: minmax(0, 1fr); }
  .game-option { flex-direction: row; text-align: left; align-items: center; gap: 12px; padding: 12px; }
  .game-option img { margin-bottom: 0; }
  .premium-lock { flex-direction: column; align-items: flex-start; }
  .profile-info-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .profile-info-row .row-side { justify-content: flex-start; }
}

/* ==========================================================================
   The trackers' language (2026-10): flat slate cards, banded heads, italic
   condensed titles and numbers, cut corners, zebra rows.
   ========================================================================== */
.dashboard-sidebar { background: #17171d; border-right: 0; }
.sidebar-top { border-bottom: 1px solid #ffffff0d; }
.sidebar-label { font: 700 .82rem var(--f-display); letter-spacing: .1em; color: var(--ink-3); }
.nav-item { font-weight: 600; font-size: .875rem; border-radius: var(--r-sm); }
.nav-item.active { background: var(--s3); }
.sidebar-foot { border-top: 1px solid #ffffff0d; }
.dash-av, .avatar-shot { border-radius: 0; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.avatar-shot { clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); box-shadow: none; }
.content-section .sec-title { gap: 12px; font: italic 800 2.2rem/1 var(--f-display); letter-spacing: 0; }
.content-section .sec-title::before { width: 6px; height: 24px; transform: skewX(-18deg); border-radius: 0; }

.dashboard-content .card { border: 0; background: var(--s1); overflow: hidden; }
.dashboard-content .card + .card { margin-top: 22px; }
.card-header { border-bottom: 0; background: var(--band); padding: 12px 18px; }
.card-header h3 { font: 700 1.25rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.card-header p { color: var(--ink-3); }

.stats-grid { gap: 0; background: transparent; border: 0; border-radius: 0; }
.stat-card { padding: 14px 18px; background: transparent; }
.stat-title { font: 700 .82rem var(--f-display); letter-spacing: .08em; }
.stat-value { font: 700 2.2rem/1.05 var(--f-display); }
.stat-value.is-plan { color: var(--acc); font-style: italic; font-weight: 800; }

.profile-info-row { padding: 12px 18px; margin-inline: -18px; border-bottom: 0; background: var(--row); }
.profile-info-row:nth-child(even) { background: var(--row-alt); }
.profile-info-row:first-child { padding-top: 12px; }
.profile-info-row:last-child { padding-bottom: 12px; }
.card-content > .profile-card:first-child, .card-content > .notif-list:first-child { margin-top: -18px; }
.card-content > .profile-card:last-child, .card-content > .notif-list:last-child { margin-bottom: -18px; }

.premium-pill { border-radius: 0; clip-path: var(--lean); padding: 0 9px; }
.cover-shot { border-radius: var(--r-sm); background-color: #121217; border: 1px dashed var(--line-3); }
.premium-lock { border-radius: var(--r-sm); box-shadow: none; }
.premium-lock-ic { border-radius: 50%; }

.btn-secondary { border: 0; background: #3a3a45; border-radius: var(--r-sm); }
.btn-secondary:hover { background: #454551; border-color: transparent; }
.btn-ghost { border: 0; background: #2a2a33; border-radius: var(--r-sm); }
.btn-primary { border-radius: 0; }
.btn-primary:hover { box-shadow: none; }
.btn-icon { border: 0; background: #2a2a33; border-radius: 50%; }
.status-badge { border-radius: 0; clip-path: var(--lean); padding: 0 11px; font: 700 .82rem var(--f-display); letter-spacing: .05em; text-transform: uppercase; }
.alert { border-radius: var(--r-sm); }

/* linked trackers: each game's colour down the side */
.conn-tile[data-game="r6"], .conn-tile:has(img[src*="r6"]) { --g: var(--g-r6); }
.conn-tile[data-game="brawlhalla"], .conn-tile:has(img[src*="brawlhalla"]) { --g: var(--g-bh); }
.conn-tile[data-game="thefinals"], .conn-tile:has(img[src*="thefinals"]) { --g: var(--g-tf); }
.conn-tile { border: 0; border-radius: var(--r-sm); background: linear-gradient(100deg, color-mix(in srgb, var(--g) 12%, var(--row-alt)), var(--row-alt) 60%); }
.conn-tile:hover { border-color: transparent; background: linear-gradient(100deg, color-mix(in srgb, var(--g) 18%, var(--row-hover)), var(--row-hover) 60%); }
.conn-tile.is-linked { border-color: transparent; background: linear-gradient(100deg, color-mix(in srgb, var(--g) 22%, var(--row-alt)), var(--row-alt) 70%); }
.conn-body b { font: 700 1.2rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }

.notif-item { padding: 14px 18px; margin-inline: -18px; border-bottom: 0; background: var(--row); }
.notif-item:nth-child(even) { background: var(--row-alt); }
.notif-body b { font-size: .875rem; }

/* link-account wizard */
.modal-content { background: #1b1b22; overflow: hidden; }
.modal-header { background: #24242d; border-bottom: 0; }
.modal-header h3 { font: italic 800 1.5rem var(--f-display); }
.modal-title-ic { border-radius: 0; clip-path: var(--lean); width: 44px; background: var(--acc); color: var(--acc-ink); box-shadow: none; }
.close-modal { border: 0; background: #ffffff12; }
.modal-footer { border-top: 0; background: var(--s1); }
.wiz-steps { background: #17171d; border-bottom: 0; }
.wiz-step { font: 700 .9rem var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.game-option { border: 0; background: var(--row-alt); border-radius: var(--r-sm); }
.game-option b { font: 700 1.1rem var(--f-display); text-transform: uppercase; }
.game-option.selected { background: var(--acc-a16); box-shadow: inset 0 0 0 1px var(--acc-a30); }
.result-item { background: var(--row-alt); }
.confirm-card { border: 0; background: var(--row-alt); }
.confirm-extra { border-top: 0; }

@media (max-width: 1020px) {
  .dashboard-sidebar { border-bottom: 1px solid #ffffff0d; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .content-section .sec-title { font-size: 1.8rem; }
  .stat-value { font-size: 1.8rem; }
}
