:root {
  --account-ink: var(--ink, #05070a);
  --account-panel: var(--panel, #0d141b);
  --account-panel-2: var(--panel-2, #111a22);
  --account-line: var(--line, rgba(185, 215, 226, .14));
  --account-text: var(--text, #f3f6f7);
  --account-muted: var(--muted, #9aa9b1);
  --account-red: var(--red, #ff3156);
  --account-gold: var(--gold, #ffbc38);
  --account-green: var(--green, #68f5aa);
  --account-ice: var(--ice, #9fd7ee);
  --account-display: var(--display, "Barlow Condensed", Arial, sans-serif);
  --account-body: var(--body, Inter, Arial, sans-serif);
  --account-radius: 14px;
  --account-shadow: 0 30px 90px rgba(0, 0, 0, .46);
  --type-meta: .75rem;
  --type-control: .8125rem;
  --type-body: .9375rem;
}

.ctv-account-system,
.ctv-account-system button,
.ctv-account-system input,
.ctv-account-system select,
.ctv-account-system textarea {
  font-family: var(--account-body);
}

.ctv-account-system [hidden] {
  display: none !important;
}

.ctv-account-system button,
.ctv-account-system a,
.ctv-account-system input,
.ctv-account-system select,
.ctv-account-system textarea {
  -webkit-tap-highlight-color: transparent;
}

.ctv-account-system button {
  cursor: pointer;
}

.ctv-account-system :focus-visible {
  outline: 2px solid var(--account-ice);
  outline-offset: 3px;
}

/* New-site readability floor: shared navigation, controls and metadata stay
   on the same Inter scale as the rest of the redesigned site. */
.ctv-account-system :is(button, .ctv-account-action, a.ctv-account-action) {
  font-size: max(var(--type-control), 1em);
}

.ctv-account-system :is(small, time, .ctv-account-status, .ctv-account-form-message) {
  font-size: var(--type-meta);
}

.ctv-account-system :is(input, select, textarea) {
  font-size: var(--type-body);
}

.ctv-account-system p {
  font-size: max(var(--type-body), 1em);
}

.ctv-account-nav :is(button, a, strong, small, span) {
  font-size: max(.75rem, 1em);
}

.ctv-account-notifications :is(button, a, small, time, span) {
  font-size: max(var(--type-meta), 1em);
}

body.ctv-account-lock {
  overflow: hidden;
}

.ctv-account-symbol {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  overflow: visible;
}

/* Shared actions */
.ctv-account-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--account-line);
  border-radius: 8px;
  color: var(--account-text);
  background: rgba(255, 255, 255, .035);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .075em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}

.ctv-account-action:hover {
  border-color: rgba(255, 49, 86, .55);
  color: #fff;
  background: rgba(255, 49, 86, .09);
  transform: translateY(-2px);
}

.ctv-account-action--primary {
  border-color: var(--account-red);
  background: var(--account-red);
  box-shadow: 0 14px 36px rgba(255, 49, 86, .2);
}

.ctv-account-action--primary:hover {
  border-color: #ff5572;
  background: #ff4969;
}

.ctv-account-action--quiet {
  min-height: 38px;
  padding-inline: 13px;
  color: var(--account-muted);
  font-size: .62rem;
}

.ctv-account-action--danger:hover {
  border-color: rgba(255, 96, 121, .56);
  color: #ffc4cf;
  background: rgba(255, 49, 86, .09);
}

.ctv-account-action:disabled,
.ctv-account-action[aria-disabled="true"] {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

.ctv-account-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--account-muted);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ctv-account-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75838a;
}

.ctv-account-status.is-ready {
  color: var(--account-green);
}

.ctv-account-status.is-ready::before {
  background: var(--account-green);
  box-shadow: 0 0 12px rgba(104, 245, 170, .72);
}

.ctv-account-status.is-rejected {
  color: #ff8da1;
}

.ctv-account-status.is-rejected::before {
  background: #ff4d6d;
  box-shadow: 0 0 12px rgba(255, 77, 109, .5);
}

.ctv-account-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--account-red);
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ctv-account-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

/* Header account dashboard */
.ctv-account-nav {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctv-account-nav-guest {
  display: flex;
  gap: 7px;
}

.ctv-account-nav-pending {
  display: flex;
  width: 150px;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  opacity: .55;
}

.ctv-account-nav-pending i {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: rgba(159, 215, 238, .2);
  animation: ctvAccountPending 1.2s ease-in-out infinite alternate;
}

.ctv-account-nav-pending i:first-child { width: 36px; }
.ctv-account-nav-pending i:last-child { width: 96px; animation-delay: .15s; }

@keyframes ctvAccountPending {
  to { opacity: .35; }
}

.ctv-account-nav-login,
.ctv-account-nav-register {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--account-line);
  color: #d4dde1;
  background: rgba(255, 255, 255, .025);
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.ctv-account-nav-register {
  border-color: rgba(255, 49, 86, .48);
  color: #fff;
  background: rgba(255, 49, 86, .12);
}

.ctv-account-nav-login:hover,
.ctv-account-nav-register:hover {
  border-color: var(--account-red);
  background: rgba(255, 49, 86, .16);
}

.ctv-account-notification-trigger.ctv-icon-action {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #c7d2d6;
  background: transparent;
  transition: color .2s ease, transform .2s ease;
}

.ctv-account-notification-trigger.ctv-icon-action:hover,
.ctv-account-notification-trigger.ctv-icon-action[aria-expanded="true"] {
  color: var(--account-red);
  background: transparent;
  transform: translateY(-1px);
}

.ctv-account-notification-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ctv-account-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #05070a;
  border-radius: 99px;
  color: #fff;
  background: var(--account-red);
  box-shadow: 0 0 16px rgba(255, 49, 86, .48);
  font-size: .52rem;
  font-weight: 900;
}

.ctv-account-nav-user {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 4px 4px;
  border: 0;
  color: #fff;
  background: transparent;
  transition: color .2s ease;
}

.ctv-account-nav-user:hover,
.ctv-account-nav-user[aria-expanded="true"] {
  color: var(--account-ice);
  background: transparent;
}

.ctv-account-avatar {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 49, 86, .4);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 49, 86, .3), rgba(159, 215, 238, .12));
  font: 900 .72rem/1 var(--account-display);
}

.ctv-account-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ctv-account-nav-user-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  text-align: left;
}

.ctv-account-nav-user-copy strong {
  overflow: hidden;
  max-width: 118px;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-nav-user-copy span {
  display: flex;
  gap: 8px;
  color: var(--account-muted);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ctv-account-nav-user-copy b {
  color: var(--account-green);
  font-weight: 900;
}

.ctv-account-nav-chevron {
  color: #72838b;
  font-size: .67rem;
}

.ctv-account-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(400px, calc(100vw - 28px));
  max-height: calc(100dvh - 92px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 8px;
  border: 1px solid rgba(159, 215, 238, .2);
  border-top: 2px solid var(--account-red);
  border-radius: 4px;
  color: var(--account-text);
  background: rgba(5, 9, 12, .985);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .58);
  scrollbar-color: rgba(159, 215, 238, .32) transparent;
  scrollbar-width: thin;
}

.ctv-account-popover::-webkit-scrollbar {
  width: 7px;
}

.ctv-account-popover::-webkit-scrollbar-track {
  background: transparent;
}

.ctv-account-popover::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(159, 215, 238, .32);
  background-clip: padding-box;
}

.ctv-account-popover:focus,
.ctv-account-popover:focus-visible {
  outline: none;
}

.ctv-account-popover-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 17px 16px 16px;
  border-bottom: 1px solid var(--account-line);
}

.ctv-account-popover-head .ctv-account-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.ctv-account-popover-identity,
.ctv-account-popover-name,
.ctv-account-popover-identity strong,
.ctv-account-popover-identity span,
.ctv-account-popover-identity small {
  display: block;
  min-width: 0;
}

.ctv-account-popover-name {
  display: flex;
  width: fit-content;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.ctv-account-popover-identity small {
  margin: 0 0 5px;
  color: var(--account-red);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.ctv-account-popover-identity strong {
  overflow: hidden;
  font: 850 1.16rem/1 var(--account-display);
  letter-spacing: .025em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ctv-account-popover-name:hover strong {
  color: var(--account-red);
}

.ctv-account-popover-identity span {
  overflow: hidden;
  margin-top: 5px;
  color: var(--account-muted);
  font-size: .75rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-popover-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #7e919a;
  background: transparent;
  transition: color .18s ease, background .18s ease;
}

.ctv-account-popover-close .ctv-account-symbol {
  width: 17px;
  height: 17px;
}

.ctv-account-popover-close:hover {
  color: #fff;
  background: rgba(255, 49, 86, .08);
}

.ctv-account-popover-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 8px;
  border-bottom: 1px solid var(--account-line);
}

.ctv-account-popover-metrics span {
  display: grid;
  gap: 7px;
  padding: 14px 11px 15px;
  border-right: 1px solid var(--account-line);
  text-align: left;
}

.ctv-account-popover-metrics span:last-child {
  border-right: 0;
}

.ctv-account-popover-metrics b {
  overflow: hidden;
  font: 900 1.27rem/1 var(--account-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-popover-metrics span:first-child b {
  color: var(--account-green);
}

.ctv-account-popover-metrics small {
  order: -1;
  color: #7f929b;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.ctv-account-popover-note {
  margin: 12px 16px 0;
  padding: 1px 0 1px 11px;
  border-left: 2px solid var(--account-gold);
  color: #c8b98f;
  background: transparent;
  font-size: .75rem;
  line-height: 1.45;
}

.ctv-account-progress {
  padding: 9px 16px 8px;
  border-bottom: 1px solid var(--account-line);
}

.ctv-account-progress-head {
  display: flex;
  min-height: 34px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.ctv-account-progress-head > small {
  color: #82949c;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.ctv-account-progress-head > a {
  display: inline-flex;
  min-height: 44px;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  color: #aab9bf;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease;
}

.ctv-account-progress-head > a .ctv-account-symbol {
  width: 13px;
  height: 13px;
}

.ctv-account-progress-head > a:hover {
  color: #fff;
}

.ctv-account-progress-head > a:focus-visible,
.ctv-account-progress-row:focus-visible {
  outline: 2px solid var(--account-ice);
  outline-offset: -2px;
}

.ctv-account-progress-list {
  display: grid;
}

.ctv-account-progress-row {
  --ctv-account-progress-color: #78cce4;
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-areas:
    "copy arrow"
    "track arrow";
  grid-template-columns: minmax(0, 1fr) 18px;
  column-gap: 10px;
  row-gap: 5px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(185, 215, 226, .09);
  color: #d8e1e4;
  background: transparent;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, padding .18s ease;
}

.ctv-account-progress-row:last-child {
  border-bottom: 0;
}

.ctv-account-progress-row.is-superchat {
  --ctv-account-progress-color: #ff536f;
}

.ctv-account-progress-row.is-jewels {
  --ctv-account-progress-color: #ae8bff;
}

.ctv-account-progress-row.is-creator-code {
  --ctv-account-progress-color: #ffbc38;
}

.ctv-account-progress-copy {
  display: flex;
  min-width: 0;
  grid-area: copy;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.ctv-account-progress-copy strong,
.ctv-account-progress-copy span {
  min-width: 0;
  line-height: 1.15;
}

.ctv-account-progress-copy strong {
  overflow: hidden;
  color: #e8edef;
  font-size: .8125rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-progress-copy span {
  overflow: hidden;
  color: #8fa0a7;
  font-size: .75rem;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-progress-track {
  position: relative;
  display: block;
  height: 4px;
  grid-area: track;
  overflow: hidden;
  background: rgba(185, 215, 226, .13);
}

.ctv-account-progress-fill {
  display: block;
  width: var(--ctv-account-progress, 0%);
  height: 100%;
  background: var(--ctv-account-progress-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--ctv-account-progress-color) 42%, transparent);
  transition: width .3s ease;
}

.ctv-account-progress-arrow {
  display: grid;
  grid-area: arrow;
  place-items: center;
  color: #71858e;
  transition: color .18s ease, transform .18s ease;
}

.ctv-account-progress-arrow .ctv-account-symbol {
  width: 14px;
  height: 14px;
}

.ctv-account-progress-row:hover {
  padding-left: 9px;
  color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ctv-account-progress-color) 9%, transparent), transparent 84%);
}

.ctv-account-progress-row:hover .ctv-account-progress-copy strong,
.ctv-account-progress-row:hover .ctv-account-progress-arrow {
  color: var(--ctv-account-progress-color);
}

.ctv-account-progress-row:hover .ctv-account-progress-arrow {
  transform: translateX(2px);
}

.ctv-account-progress-row.is-unavailable {
  --ctv-account-progress-color: #73858d;
}

.ctv-account-progress-row.is-unavailable .ctv-account-progress-track {
  background: repeating-linear-gradient(90deg, rgba(185, 215, 226, .14) 0 4px, transparent 4px 8px);
}

.ctv-account-progress-row.is-pending .ctv-account-progress-copy span,
.ctv-account-progress-row.is-ready .ctv-account-progress-copy span,
.ctv-account-progress-row.is-complete .ctv-account-progress-copy span {
  color: var(--ctv-account-progress-color);
}

.ctv-account-progress.is-stale .ctv-account-progress-head small span {
  color: #d3aa58;
  font-size: .75rem;
  font-weight: 800;
}

.ctv-account-progress-status {
  display: flex;
  min-height: 48px;
  align-items: center;
  margin: 0;
  color: #8ea0a8;
  font-size: .75rem !important;
  line-height: 1.35;
}

.ctv-account-progress-status.is-error {
  color: #e0ae72;
}

.ctv-account-popover-links {
  display: block;
  padding: 7px 16px 13px;
}

.ctv-account-popover-links > .ctv-account-popover-group-label {
  display: block;
  margin-top: 6px;
  padding: 12px 4px 7px;
  border-top: 1px solid rgba(185, 215, 226, .1);
  color: #71838c;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.ctv-account-popover-links > .ctv-account-popover-group-label:first-child {
  margin-top: 0;
  border-top: 0;
}

.ctv-account-popover-links a,
.ctv-account-popover-links button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 52px;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  padding: 7px 4px;
  border: 0;
  border-bottom: 1px solid rgba(185, 215, 226, .09);
  border-radius: 0;
  color: #c9d2d6;
  background: transparent;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  transition: color .18s ease, background .18s ease, padding .18s ease;
}

.ctv-account-popover-links :is(a, button):last-child {
  border-bottom: 0;
}

.ctv-account-popover-links a:hover,
.ctv-account-popover-links button:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 49, 86, .09), transparent 82%);
  padding-left: 9px;
}

.ctv-account-popover-links a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 49, 86, .11), transparent 82%);
}

.ctv-account-popover-links a[aria-current="page"] .ctv-account-popover-link-icon {
  color: var(--account-red);
}

.ctv-account-popover-links :is(a, button):focus-visible {
  outline: 2px solid var(--account-ice);
  outline-offset: -2px;
}

.ctv-account-popover-link--primary {
  box-shadow: inset 2px 0 var(--account-red);
}

.ctv-account-popover-link-icon,
.ctv-account-popover-link-arrow {
  display: grid;
  place-items: center;
  color: #7f939c;
  transition: color .18s ease, transform .18s ease;
}

.ctv-account-popover-link-icon .ctv-account-symbol {
  width: 19px;
  height: 19px;
}

.ctv-account-popover-link-arrow .ctv-account-symbol {
  width: 15px;
  height: 15px;
}

.ctv-account-popover-link-copy,
.ctv-account-popover-link-copy strong,
.ctv-account-popover-link-copy small {
  display: block;
  min-width: 0;
}

.ctv-account-popover-link-copy strong {
  overflow: hidden;
  color: #e6ecee;
  font-size: .8125rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-popover-link-copy small {
  overflow: hidden;
  margin-top: 4px;
  color: #778991;
  font-size: .75rem;
  font-weight: 550;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-popover-links :is(a, button):hover .ctv-account-popover-link-icon,
.ctv-account-popover-links :is(a, button):hover .ctv-account-popover-link-arrow {
  color: var(--account-red);
}

.ctv-account-popover-links :is(a, button):hover .ctv-account-popover-link-arrow {
  transform: translateX(2px);
}

.ctv-account-popover-signout {
  margin-top: 7px;
  border-top: 1px solid rgba(255, 49, 86, .18) !important;
  color: #aebbc0 !important;
}

.ctv-account-popover-signout:hover {
  color: #ff9caf !important;
  background: linear-gradient(90deg, rgba(255, 49, 86, .1), transparent 82%) !important;
}

/* Account page */
.ctv-account-page {
  min-height: 100svh;
  padding: calc(var(--nav-h, 84px) + 56px) 0 100px;
  color: var(--account-text);
  background:
    radial-gradient(circle at 10% 2%, rgba(255, 49, 86, .11), transparent 26rem),
    radial-gradient(circle at 94% 30%, rgba(159, 215, 238, .06), transparent 25rem),
    var(--account-ink);
}

.ctv-account-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background-image: linear-gradient(rgba(159, 215, 238, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 215, 238, .11) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(#000, transparent 62%);
}

.ctv-account-page-intro,
.ctv-account-root {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 64px));
  margin-inline: auto;
}

.ctv-account-page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.ctv-account-page-intro h1 {
  margin: 14px 0 0;
  font: 900 var(--type-page-title)/.78 var(--account-display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.ctv-account-page-intro h1 em {
  color: var(--account-red);
  font-style: normal;
}

.ctv-account-page-intro > p {
  max-width: 500px;
  margin: 0 0 5px;
  color: var(--account-muted);
  font-size: .86rem;
  line-height: 1.7;
}

.ctv-account-loading {
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 1px solid var(--account-line);
  border-radius: var(--account-radius);
  background: rgba(8, 13, 17, .72);
}

.ctv-account-loading span {
  display: grid;
  gap: 14px;
  color: var(--account-muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.ctv-account-loading span::before {
  content: "";
  width: 34px;
  height: 34px;
  margin: auto;
  border: 2px solid rgba(159, 215, 238, .16);
  border-top-color: var(--account-red);
  border-radius: 50%;
  animation: ctvAccountSpin .7s linear infinite;
}

.ctv-account-guest {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  min-height: 570px;
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-top-color: rgba(255, 49, 86, .55);
  border-radius: var(--account-radius);
  background: #080d11;
  box-shadow: var(--account-shadow);
}

.ctv-account-guest-copy {
  align-self: center;
  padding: clamp(34px, 6vw, 80px);
}

.ctv-account-guest h2 {
  margin: 18px 0 0;
  font: 900 clamp(3.4rem, 5.5vw, 6rem)/.8 var(--account-display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.ctv-account-guest h2 em {
  color: var(--account-red);
  font-style: normal;
}

.ctv-account-guest-copy > p:not(.ctv-account-kicker) {
  max-width: 560px;
  margin: 25px 0 0;
  color: var(--account-muted);
  font-size: .86rem;
  line-height: 1.75;
}

.ctv-account-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.ctv-account-guest-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: stretch;
  background: linear-gradient(145deg, rgba(159, 215, 238, .04), transparent), url("images/tacticool-command.jpg") center / cover;
}

.ctv-account-guest-benefits::before {
  content: "";
  grid-area: 1 / 1;
  background: linear-gradient(90deg, #080d11, rgba(8, 13, 17, .64) 38%, rgba(8, 13, 17, .82));
}

.ctv-account-benefit-list {
  z-index: 1;
  grid-area: 1 / 1;
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 38px;
}

.ctv-account-benefit-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(4, 8, 11, .76);
  backdrop-filter: blur(10px);
}

.ctv-account-benefit-list b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 49, 86, .42);
  color: var(--account-red);
  font: 900 1rem/1 var(--account-display);
}

.ctv-account-benefit-list strong,
.ctv-account-benefit-list span {
  display: block;
}

.ctv-account-benefit-list strong {
  font: 800 1rem/1 var(--account-display);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.ctv-account-benefit-list span {
  margin-top: 5px;
  color: #99a9b0;
  font-size: .62rem;
  line-height: 1.45;
}

.ctv-account-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-top-color: rgba(255, 49, 86, .52);
  border-radius: var(--account-radius);
  background: rgba(8, 13, 17, .88);
  box-shadow: var(--account-shadow);
}

.ctv-account-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px 14px;
  border-right: 1px solid var(--account-line);
  background: rgba(4, 8, 11, .56);
}

.ctv-account-sidebar-identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 4px 8px 20px;
  border-bottom: 1px solid var(--account-line);
}

.ctv-account-sidebar-identity .ctv-account-avatar {
  width: 46px;
  height: 46px;
}

.ctv-account-sidebar-identity strong,
.ctv-account-sidebar-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-sidebar-identity strong {
  font: 850 1rem/1 var(--account-display);
  text-transform: uppercase;
}

.ctv-account-sidebar-identity span {
  margin-top: 5px;
  color: var(--account-muted);
  font-size: .56rem;
}

.ctv-account-tabs {
  display: grid;
  gap: 4px;
  margin-top: 17px;
}

.ctv-account-tab {
  display: grid;
  min-height: 54px;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9fadb3;
  background: transparent;
  text-align: left;
}

.ctv-account-tab > i {
  color: #60747d;
  font: 900 .68rem/1 var(--account-display);
  font-style: normal;
}

.ctv-account-tab strong,
.ctv-account-tab small {
  display: block;
}

.ctv-account-tab strong {
  font-size: .63rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.ctv-account-tab small {
  margin-top: 4px;
  color: #607078;
  font-size: .51rem;
}

.ctv-account-tab em {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 99px;
  color: #fff;
  background: var(--account-red);
  font-size: .49rem;
  font-style: normal;
  font-weight: 900;
}

.ctv-account-tab:hover,
.ctv-account-tab.is-active {
  border-color: rgba(255, 49, 86, .24);
  color: #fff;
  background: rgba(255, 49, 86, .08);
}

.ctv-account-tab.is-active > i {
  color: var(--account-red);
}

.ctv-account-sidebar-footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}

.ctv-account-sidebar-footer a,
.ctv-account-sidebar-footer button {
  min-height: 39px;
}

.ctv-account-content {
  min-width: 0;
  min-height: 760px;
}

.ctv-account-panel {
  padding: clamp(24px, 4vw, 52px);
}

.ctv-account-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.ctv-account-panel-head h2 {
  margin: 12px 0 0;
  font: 900 clamp(2.4rem, 4vw, 4.1rem)/.82 var(--account-display);
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.ctv-account-panel-head > p {
  max-width: 460px;
  margin: 0;
  color: var(--account-muted);
  font-size: .72rem;
  line-height: 1.6;
  text-align: right;
}

.ctv-account-overview-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255, 49, 86, .28);
  border-radius: 12px;
  background: radial-gradient(circle at 95% 0, rgba(255, 49, 86, .16), transparent 42%), linear-gradient(145deg, rgba(159, 215, 238, .055), transparent), #090f14;
}

.ctv-account-overview-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(159, 215, 238, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(159, 215, 238, .025), 0 0 0 68px rgba(159, 215, 238, .015);
}

.ctv-account-overview-identity {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.ctv-account-overview-identity .ctv-account-avatar {
  width: 82px;
  height: 82px;
  border-width: 2px;
  font-size: 1.25rem;
}

.ctv-account-overview-identity h3 {
  overflow: hidden;
  margin: 0;
  font: 900 clamp(2.2rem, 4vw, 3.8rem)/.82 var(--account-display);
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ctv-account-overview-identity p {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin: 12px 0 0;
  color: var(--account-muted);
  font-size: .65rem;
}

.ctv-account-overview-identity p span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ctv-account-overview-identity p span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--account-red);
}

.ctv-account-overview-rank {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: end;
  text-align: right;
}

.ctv-account-overview-rank span {
  color: #81939b;
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ctv-account-overview-rank strong {
  margin-top: 8px;
  color: var(--account-gold);
  font: 900 3.4rem/.8 var(--account-display);
}

.ctv-account-overview-rank small {
  margin-top: 8px;
  color: var(--account-green);
  font-size: .66rem;
  font-weight: 800;
}

.ctv-account-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-radius: 11px;
}

.ctv-account-metric {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--account-line);
  background: rgba(255, 255, 255, .014);
}

.ctv-account-metric:last-child {
  border-right: 0;
}

.ctv-account-metric small,
.ctv-account-metric strong,
.ctv-account-metric span {
  display: block;
}

.ctv-account-metric small {
  color: #71838c;
  font-size: .53rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ctv-account-metric strong {
  overflow: hidden;
  margin-top: 11px;
  font: 900 clamp(1.5rem, 2.7vw, 2.3rem)/.88 var(--account-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-metric:first-child strong {
  color: var(--account-green);
}

.ctv-account-metric span {
  overflow: hidden;
  margin-top: 8px;
  color: #6f8088;
  font-size: .55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.ctv-account-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--account-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .014);
}

.ctv-account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--account-line);
}

.ctv-account-card-head strong {
  font: 850 1rem/1 var(--account-display);
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ctv-account-card-head a,
.ctv-account-card-head button {
  border: 0;
  color: var(--account-ice);
  background: none;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.ctv-account-connection-list,
.ctv-account-activity-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ctv-account-connection-list li,
.ctv-account-activity-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--account-line);
}

.ctv-account-connection-list li:last-child,
.ctv-account-activity-list li:last-child {
  border-bottom: 0;
}

.ctv-account-connection-list b,
.ctv-account-connection-list span,
.ctv-account-activity-list b,
.ctv-account-activity-list span {
  display: block;
}

.ctv-account-connection-list b,
.ctv-account-activity-list b {
  overflow: hidden;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-connection-list span,
.ctv-account-activity-list span {
  overflow: hidden;
  margin-top: 5px;
  color: #71828a;
  font-size: .55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-connection-list em,
.ctv-account-activity-list time {
  color: var(--account-muted);
  font-size: .52rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.ctv-account-connection-list em.is-ready {
  color: var(--account-green);
}

/* Forms */
.ctv-account-settings-form {
  display: grid;
  gap: 24px;
}

.ctv-account-form-section {
  padding: 22px;
  border: 1px solid var(--account-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .014);
}

.ctv-account-form-section > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.ctv-account-form-section > header strong {
  display: block;
  font: 850 1.08rem/1 var(--account-display);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ctv-account-form-section > header p {
  max-width: 470px;
  margin: 6px 0 0;
  color: var(--account-muted);
  font-size: .62rem;
  line-height: 1.55;
}

.ctv-account-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ctv-account-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ctv-account-field--full {
  grid-column: 1 / -1;
}

.ctv-account-field > span {
  color: #c8d1d5;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ctv-account-field input,
.ctv-account-field select,
.ctv-account-field textarea {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--account-line);
  border-radius: 8px;
  outline: 0;
  color: var(--account-text);
  background: rgba(2, 6, 8, .62);
  font-size: .72rem;
  transition: border-color .2s, background .2s;
}

.ctv-account-field textarea {
  min-height: 112px;
  padding-block: 12px;
  line-height: 1.55;
  resize: vertical;
}

.ctv-account-field input:focus,
.ctv-account-field select:focus,
.ctv-account-field textarea:focus {
  border-color: rgba(159, 215, 238, .55);
  background: rgba(6, 13, 17, .88);
}

.ctv-account-field small {
  color: #6f7f87;
  font-size: .55rem;
  line-height: 1.45;
}

.ctv-account-field input[readonly] {
  color: #7f9098;
  cursor: not-allowed;
}

.ctv-account-avatar-editor {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--account-line);
  border-radius: 9px;
  background: rgba(0, 0, 0, .17);
}

.ctv-account-avatar-editor .ctv-account-avatar {
  width: 82px;
  height: 82px;
  font-size: 1.2rem;
}

.ctv-account-avatar-editor strong,
.ctv-account-avatar-editor span {
  display: block;
}

.ctv-account-avatar-editor strong {
  font: 850 1rem/1 var(--account-display);
  text-transform: uppercase;
}

.ctv-account-avatar-editor span {
  max-width: 450px;
  margin: 7px 0 12px;
  color: var(--account-muted);
  font-size: .59rem;
  line-height: 1.5;
}

.ctv-account-form-actions {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 49, 86, .28);
  border-radius: 10px;
  background: rgba(5, 9, 12, .94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
  backdrop-filter: blur(16px);
}

.ctv-account-form-message {
  color: var(--account-muted);
  font-size: .62rem;
  line-height: 1.45;
}

.ctv-account-form-message.is-success {
  color: var(--account-green);
}

.ctv-account-form-message.is-error {
  color: #ff8da1;
}

.ctv-account-form-actions > div {
  display: flex;
  gap: 8px;
}

.ctv-account-connection-card,
.ctv-account-security-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--account-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .014);
}

.ctv-account-connection-card + .ctv-account-connection-card,
.ctv-account-security-card + .ctv-account-security-card {
  margin-top: 10px;
}

.ctv-account-connection-card > .ctv-account-connection-icon,
.ctv-account-security-card > .ctv-account-security-icon {
  display: grid;
  width: 48px;
  height: 48px;
  align-self: center;
  justify-self: center;
  place-items: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: var(--account-ice);
  background: transparent;
  box-shadow: none;
}

.ctv-account-connection-icon .ctv-account-symbol,
.ctv-account-security-icon .ctv-account-symbol {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(159, 215, 238, .24));
}

.ctv-account-connection-card:first-of-type .ctv-account-connection-icon {
  color: #ff5f7b;
}

.ctv-account-connection-card:first-of-type .ctv-account-connection-icon .ctv-account-symbol {
  filter: drop-shadow(0 0 10px rgba(255, 49, 86, .22));
}

.ctv-account-connection-card strong,
.ctv-account-connection-card span,
.ctv-account-security-card strong,
.ctv-account-security-card span {
  display: block;
}

.ctv-account-connection-card strong,
.ctv-account-security-card strong {
  font-size: .7rem;
}

.ctv-account-connection-card span,
.ctv-account-security-card span {
  margin-top: 6px;
  color: var(--account-muted);
  font-size: .59rem;
  line-height: 1.45;
}

.ctv-account-inline-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.ctv-account-inline-form[hidden] {
  display: none;
}

.ctv-account-text-action {
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: var(--account-ice);
  background: transparent;
  font-family: var(--account-body);
  font-size: var(--type-control);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(159, 215, 238, .34);
  text-underline-offset: 4px;
  cursor: pointer;
}

.ctv-account-text-action:hover,
.ctv-account-text-action:focus-visible {
  color: #fff;
  text-decoration-color: currentColor;
}

.ctv-account-youtube-input {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-radius: 7px;
  background: rgba(2, 6, 8, .65);
}

.ctv-account-youtube-input > span {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0 11px;
  border-right: 1px solid var(--account-line);
  color: #c6d0d4;
  background: rgba(255, 255, 255, .045);
  font-size: var(--type-meta);
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.ctv-account-field .ctv-account-youtube-input input,
.ctv-account-inline-form .ctv-account-youtube-input input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  margin: 0;
  padding: 0 12px;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--account-text);
  background: transparent;
  box-shadow: none;
  font-size: var(--type-body);
}

.ctv-account-youtube-input:focus-within {
  border-color: rgba(255, 62, 98, .72);
  box-shadow: 0 0 0 3px rgba(255, 62, 98, .1);
}

.ctv-account-field .ctv-account-youtube-input input:focus,
.ctv-account-inline-form .ctv-account-youtube-input input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ctv-account-youtube-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(104, 245, 170, .24);
  border-radius: 8px;
  background: rgba(104, 245, 170, .035);
}

.ctv-account-youtube-preview[hidden] {
  display: none;
}

.ctv-account-youtube-preview img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.ctv-account-youtube-preview strong,
.ctv-account-youtube-preview small,
.ctv-account-youtube-preview em {
  display: block;
  margin: 0;
  font-style: normal;
}

.ctv-account-youtube-preview em {
  color: var(--account-green);
  font-size: var(--type-meta);
  font-weight: 800;
}

.ctv-account-youtube-preview.is-loading,
.ctv-account-youtube-preview.is-error {
  display: block;
  color: var(--account-muted);
  font-size: var(--type-body);
}

.ctv-account-youtube-preview.is-error {
  border-color: rgba(255, 77, 109, .3);
  color: #ff9aae;
}

.ctv-account-inline-note {
  grid-column: 1 / -1;
  color: var(--account-muted);
  line-height: 1.45;
}

.ctv-account-inline-form input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--account-line);
  border-radius: 7px;
  color: var(--account-text);
  background: rgba(2, 6, 8, .65);
  font-size: .67rem;
}

.ctv-account-provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.ctv-account-provider-list span {
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--account-line);
  border-radius: 6px;
  color: #b7c3c7;
  background: rgba(255, 255, 255, .025);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Notification settings */
.ctv-account-preferences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ctv-account-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 15px;
  align-items: center;
  min-height: 68px;
  padding: 14px 15px;
  border: 1px solid var(--account-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .014);
}

.ctv-account-switch strong,
.ctv-account-switch small {
  display: block;
}

.ctv-account-switch strong {
  font-size: .65rem;
}

.ctv-account-switch small {
  margin-top: 5px;
  color: #708088;
  font-size: .53rem;
  line-height: 1.4;
}

.ctv-account-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ctv-account-switch i {
  position: relative;
  width: 42px;
  height: 23px;
  border: 1px solid var(--account-line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .04);
}

.ctv-account-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #718087;
  transition: transform .2s, background .2s;
}

.ctv-account-switch input:checked + i {
  border-color: rgba(104, 245, 170, .35);
  background: rgba(104, 245, 170, .1);
}

.ctv-account-switch input:checked + i::after {
  background: var(--account-green);
  box-shadow: 0 0 10px rgba(104, 245, 170, .38);
  transform: translateX(19px);
}

.ctv-account-switch input:focus-visible + i {
  outline: 2px solid var(--account-ice);
  outline-offset: 3px;
}

/* Notification drawer */
.ctv-account-drawer-backdrop {
  position: fixed;
  z-index: 1190;
  inset: 0;
  background: rgba(1, 3, 5, .68);
  backdrop-filter: blur(3px);
}

.ctv-account-notifications {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  display: grid;
  width: min(520px, 100%);
  height: 100dvh;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-left: 1px solid rgba(159, 215, 238, .16);
  color: var(--account-text);
  background: radial-gradient(circle at 100% 0, rgba(255, 49, 86, .13), transparent 28rem), #060a0d;
  box-shadow: -35px 0 100px rgba(0, 0, 0, .5);
  transform: translateX(102%);
  transition: transform .28s ease;
}

.ctv-account-notifications.is-open {
  transform: none;
}

.ctv-account-notifications-head {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--account-line);
}

.ctv-account-notifications-head small,
.ctv-account-notifications-head strong,
.ctv-account-notifications-head span {
  display: block;
}

.ctv-account-notifications-head small {
  color: var(--account-red);
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ctv-account-notifications-head strong {
  margin-top: 7px;
  font: 900 1.7rem/1 var(--account-display);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ctv-account-notifications-head span {
  margin-top: 6px;
  color: var(--account-muted);
  font-size: .58rem;
}

.ctv-account-notifications-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--account-line);
  border-radius: 8px;
  color: #bec9cd;
  background: rgba(255, 255, 255, .025);
  font-size: 1.2rem;
}

.ctv-account-notification-tabs {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--account-line);
  scrollbar-width: thin;
}

.ctv-account-notification-tab {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #7e8e95;
  background: transparent;
  font-size: .53rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ctv-account-notification-tab:hover,
.ctv-account-notification-tab.is-active {
  border-color: rgba(255, 49, 86, .28);
  color: #fff;
  background: rgba(255, 49, 86, .08);
}

.ctv-account-notification-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ctv-account-notification-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 40px;
  color: #73848c;
  font-size: .68rem;
  line-height: 1.6;
  text-align: center;
}

.ctv-account-notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--account-line);
  color: #cbd4d8;
  background: transparent;
  text-decoration: none;
}

.ctv-account-notification-item:hover {
  background: rgba(159, 215, 238, .035);
}

.ctv-account-notification-item.is-unread {
  background: linear-gradient(90deg, rgba(255, 49, 86, .085), transparent 72%);
}

.ctv-account-notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 5px;
  width: 3px;
  height: 30px;
  border-radius: 99px;
  background: var(--account-red);
}

.ctv-account-notification-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(159, 215, 238, .18);
  border-radius: 9px;
  color: var(--account-ice);
  background: rgba(159, 215, 238, .045);
  font: 900 .7rem/1 var(--account-display);
}

.ctv-account-notification-item[data-category="rewards"] .ctv-account-notification-icon,
.ctv-account-notification-item[data-category="competition"] .ctv-account-notification-icon {
  border-color: rgba(255, 188, 56, .24);
  color: var(--account-gold);
  background: rgba(255, 188, 56, .055);
}

.ctv-account-notification-copy {
  min-width: 0;
}

.ctv-account-notification-copy small,
.ctv-account-notification-copy strong,
.ctv-account-notification-copy span,
.ctv-account-notification-copy em {
  display: block;
}

.ctv-account-notification-copy small {
  color: #74878f;
  font-size: .5rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ctv-account-notification-copy strong {
  overflow: hidden;
  margin-top: 6px;
  color: #f0f4f5;
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctv-account-notification-copy span {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: #8999a0;
  font-size: .58rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ctv-account-notification-copy em {
  margin-top: 7px;
  color: var(--account-green);
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
}

.ctv-account-notification-meta {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 8px;
  min-width: 62px;
}

.ctv-account-notification-meta time {
  color: #6f8088;
  font-size: .5rem;
  white-space: nowrap;
}

.ctv-account-notification-actions {
  display: flex;
  gap: 4px;
}

.ctv-account-notification-actions button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--account-line);
  border-radius: 6px;
  color: #84949b;
  background: rgba(255, 255, 255, .025);
  font-size: .68rem;
}

.ctv-account-notification-actions button:hover {
  border-color: rgba(255, 49, 86, .45);
  color: #fff;
}

.ctv-account-notifications-footer {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--account-line);
  background: rgba(2, 5, 7, .88);
}

.ctv-account-notifications-footer button,
.ctv-account-notifications-footer a {
  border: 0;
  color: #9dacb2;
  background: transparent;
  font-size: .57rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.ctv-account-notifications-footer a {
  color: var(--account-ice);
}

/* Authentication dialog */
.ctv-account-auth-backdrop {
  position: fixed;
  z-index: 1290;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(1, 3, 5, .82);
  backdrop-filter: blur(10px);
}

.ctv-account-auth {
  position: relative;
  display: grid;
  width: min(960px, 100%);
  min-height: 610px;
  grid-template-columns: minmax(300px, .78fr) minmax(420px, 1.22fr);
  overflow: hidden;
  border: 1px solid rgba(159, 215, 238, .18);
  border-top-color: rgba(255, 49, 86, .72);
  border-radius: var(--account-radius);
  color: var(--account-text);
  background: #070c10;
  box-shadow: 0 50px 150px rgba(0, 0, 0, .7);
}

.ctv-account-auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  overflow: hidden;
  background: url("images/tacticool-red-operator.jpg") 26% 28% / cover no-repeat;
}

.ctv-account-auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 8, 11, .98), rgba(4, 8, 11, .16) 68%), linear-gradient(90deg, rgba(4, 8, 11, .3), transparent);
}

.ctv-account-auth-visual > * {
  position: relative;
  z-index: 1;
}

.ctv-account-auth-visual strong {
  font: 900 clamp(2.4rem, 4vw, 4.5rem)/.8 var(--account-display);
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.ctv-account-auth-visual strong em {
  color: var(--account-red);
  font-style: normal;
}

.ctv-account-auth-visual p {
  margin: 18px 0 0;
  color: #aab7bc;
  font-size: .7rem;
  line-height: 1.6;
}

.ctv-account-auth-content {
  padding: clamp(28px, 5vw, 54px);
}

.ctv-account-auth-close {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--account-line);
  border-radius: 8px;
  color: #c0cbd0;
  background: rgba(5, 9, 12, .76);
  font-size: 1.2rem;
}

.ctv-account-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 28px;
  padding-right: 42px;
}

.ctv-account-auth-tabs button {
  min-height: 40px;
  border: 1px solid var(--account-line);
  border-radius: 7px;
  color: #809198;
  background: rgba(255, 255, 255, .02);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ctv-account-auth-tabs button.is-active {
  border-color: rgba(255, 49, 86, .5);
  color: #fff;
  background: rgba(255, 49, 86, .1);
}

.ctv-account-auth-form h2 {
  margin: 0;
  font: 900 clamp(2.3rem, 4vw, 3.7rem)/.84 var(--account-display);
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.ctv-account-auth-form > p {
  margin: 13px 0 24px;
  color: var(--account-muted);
  font-size: .67rem;
  line-height: 1.55;
}

.ctv-account-auth-fields {
  display: grid;
  gap: 13px;
}

.ctv-account-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  align-items: start;
}

.ctv-account-auth-row > .ctv-account-field {
  align-self: start;
}

.ctv-account-auth-form .ctv-account-field input {
  min-height: 49px;
}

.ctv-account-auth-form .ctv-account-action {
  width: 100%;
  min-height: 50px;
  margin-top: 17px;
}

.ctv-account-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #64767f;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ctv-account-auth-divider::before,
.ctv-account-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--account-line);
}

.ctv-account-google {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--account-line);
  border-radius: 8px;
  color: #d9e0e2;
  background: rgba(255, 255, 255, .03);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ctv-account-google:hover {
  border-color: rgba(159, 215, 238, .42);
  background: rgba(159, 215, 238, .06);
}

.ctv-account-google-mark {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
}

.ctv-account-google-mark .ctv-account-symbol {
  width: 15px;
  height: 15px;
}

.ctv-account-auth-help {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.ctv-account-auth-help button {
  border: 0;
  color: var(--account-ice);
  background: transparent;
  font-size: .58rem;
  font-weight: 750;
}

.ctv-account-auth-message {
  min-height: 19px;
  margin: 15px 0 0;
  color: var(--account-muted);
  font-size: .61rem;
  line-height: 1.45;
  text-align: center;
}

.ctv-account-auth-message.is-error {
  color: #ff91a4;
}

.ctv-account-auth-message.is-success {
  color: var(--account-green);
}

.ctv-account-auth-success {
  display: grid;
  min-height: 430px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.ctv-account-auth-success-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(104, 245, 170, .36);
  border-radius: 50%;
  color: var(--account-green);
  background: rgba(104, 245, 170, .07);
  font: 900 1.4rem/1 var(--account-display);
}

.ctv-account-auth-success h2 {
  margin: 22px 0 0;
  font: 900 3rem/.82 var(--account-display);
  text-transform: uppercase;
}

.ctv-account-auth-success p {
  max-width: 440px;
  margin: 16px 0 0;
  color: var(--account-muted);
  font-size: .68rem;
  line-height: 1.6;
}

@keyframes ctvAccountSpin {
  to { transform: rotate(360deg); }
}

/* Common laptop-height viewports keep the whole shortcut list visible without
   bringing back card chrome. Smaller/mobile screens still use safe scrolling. */
@media (max-height: 800px) and (min-width: 701px) {
  .ctv-account-popover-head {
    grid-template-columns: 42px minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 10px 14px;
  }

  .ctv-account-popover-head .ctv-account-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .ctv-account-popover-identity small {
    margin-bottom: 3px;
  }

  .ctv-account-popover-identity span {
    margin-top: 3px;
  }

  .ctv-account-popover-metrics span {
    gap: 4px;
    padding: 9px 10px 10px;
  }

  .ctv-account-popover-note {
    margin: 8px 14px 0;
    line-height: 1.3;
  }

  .ctv-account-progress {
    padding: 5px 14px 4px;
  }

  .ctv-account-progress-head {
    min-height: 29px;
  }

  .ctv-account-progress-row {
    min-height: 44px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .ctv-account-popover-links {
    padding: 4px 14px 8px;
  }

  .ctv-account-popover-links > .ctv-account-popover-group-label {
    margin-top: 2px;
    padding: 7px 4px 5px;
  }

  .ctv-account-popover-links a,
  .ctv-account-popover-links button {
    min-height: 44px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .ctv-account-popover-link-copy small {
    display: none;
  }

  .ctv-account-popover-signout {
    margin-top: 3px;
  }
}

@media (max-width: 1120px) {
  .ctv-account-page-intro,
  .ctv-account-root { width: min(100% - 40px, 1400px); }
  .ctv-account-guest { grid-template-columns: 1fr 1fr; }
  .ctv-account-metric-grid { grid-template-columns: 1fr 1fr; }
  .ctv-account-metric:nth-child(2) { border-right: 0; }
  .ctv-account-metric:nth-child(-n + 2) { border-bottom: 1px solid var(--account-line); }
}

@media (max-width: 920px) {
  .ctv-account-nav-user-copy { display: none; }
  .ctv-account-nav-user { width: 44px; padding: 4px; }
  .ctv-account-nav-chevron { display: none; }
  .ctv-account-nav-guest .ctv-account-nav-register { display: none; }
  .ctv-account-nav-login { min-width: 68px; min-height: 44px; padding: 0 11px; }
  .ctv-account-popover { position: fixed; top: 72px; right: 12px; }
  .ctv-account-page { padding-top: calc(var(--nav-h, 72px) + 42px); }
  .ctv-account-page-intro { align-items: start; flex-direction: column; }
  .ctv-account-page-intro > p { margin: 0; }
  .ctv-account-guest { grid-template-columns: 1fr; }
  .ctv-account-guest-benefits { min-height: 430px; }
  .ctv-account-shell { grid-template-columns: 1fr; }
  .ctv-account-sidebar { padding: 12px; border-right: 0; border-bottom: 1px solid var(--account-line); }
  .ctv-account-sidebar-identity { display: none; }
  .ctv-account-tabs { grid-template-columns: repeat(5, minmax(110px, 1fr)); margin: 0; overflow-x: auto; }
  .ctv-account-tab { grid-template-columns: 22px 1fr auto; min-width: 128px; }
  .ctv-account-tab small { display: none; }
  .ctv-account-sidebar-footer { display: none; }
  .ctv-account-content { min-height: 650px; }
  .ctv-account-auth { grid-template-columns: 1fr; }
  .ctv-account-auth-visual { display: none; }
}

@media (max-width: 700px) {
  .ctv-account-page-intro,
  .ctv-account-root { width: calc(100% - 24px); }
  .ctv-account-page-intro h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .ctv-account-page-intro > p { font-size: .75rem; }
  .ctv-account-guest-copy { padding: 28px 22px; }
  .ctv-account-guest h2 { font-size: clamp(3.1rem, 16vw, 4.7rem); }
  .ctv-account-guest-actions { flex-direction: column; }
  .ctv-account-guest-actions .ctv-account-action { width: 100%; }
  .ctv-account-benefit-list { padding: 20px; }
  .ctv-account-panel { padding: 22px 14px 28px; }
  .ctv-account-panel-head { align-items: start; flex-direction: column; gap: 12px; }
  .ctv-account-panel-head > p { text-align: left; }
  .ctv-account-overview-hero { grid-template-columns: 1fr; }
  .ctv-account-overview-rank { justify-items: start; text-align: left; }
  .ctv-account-overview-identity { grid-template-columns: 62px minmax(0, 1fr); }
  .ctv-account-overview-identity .ctv-account-avatar { width: 62px; height: 62px; }
  .ctv-account-overview-identity h3 { font-size: clamp(2rem, 11vw, 3rem); }
  .ctv-account-dashboard-grid { grid-template-columns: 1fr; }
  .ctv-account-field-grid,
  .ctv-account-preferences { grid-template-columns: 1fr; }
  .ctv-account-field--full { grid-column: auto; }
  .ctv-account-form-section { padding: 18px 14px; }
  .ctv-account-form-section > header { flex-direction: column; }
  .ctv-account-avatar-editor { grid-template-columns: 62px 1fr; }
  .ctv-account-avatar-editor .ctv-account-avatar { width: 62px; height: 62px; }
  .ctv-account-form-actions { position: static; align-items: stretch; flex-direction: column; }
  .ctv-account-form-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .ctv-account-connection-card,
  .ctv-account-security-card { grid-template-columns: 42px minmax(0, 1fr); align-items: center; }
  .ctv-account-connection-card > .ctv-account-action,
  .ctv-account-security-card > .ctv-account-action { grid-column: 1 / -1; }
  .ctv-account-connection-icon,
  .ctv-account-security-icon {
    width: 42px;
    height: 42px;
    align-self: center;
    justify-self: center;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .ctv-account-inline-form { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .ctv-account-youtube-preview { grid-template-columns: 34px minmax(0, 1fr); }
  .ctv-account-youtube-preview em { grid-column: 2; }
  .ctv-account-auth-backdrop { align-items: start; padding: 10px; }
  .ctv-account-auth { min-height: calc(100dvh - 20px); }
  .ctv-account-auth-content { padding: 62px 18px 28px; }
  .ctv-account-auth-row { grid-template-columns: 1fr; }
  .ctv-account-notification-item { grid-template-columns: 38px minmax(0, 1fr); padding-inline: 14px; }
  .ctv-account-notification-icon { width: 38px; height: 38px; }
  .ctv-account-notification-meta { grid-column: 2; grid-row: 2; display: flex; min-width: 0; align-items: center; justify-content: space-between; }
}

@media (max-width: 480px) {
  .ctv-account-notification-trigger { width: 38px; height: 38px; }
  .ctv-account-nav-user { width: 40px; min-height: 40px; }
  .ctv-account-nav-user .ctv-account-avatar { width: 31px; height: 31px; flex-basis: 31px; }
  .ctv-account-nav-login {
    width: auto;
    min-width: 68px;
    min-height: 44px;
    overflow: visible;
    padding-inline: 10px;
    color: #fff;
    background: rgba(255, 49, 86, .1);
  }
  .ctv-account-nav-login::after { content: none; }
  .ctv-account-popover { right: 8px; left: 8px; width: auto; }
  .ctv-account-metric-grid { grid-template-columns: 1fr; }
  .ctv-account-metric { border-right: 0; border-bottom: 1px solid var(--account-line); }
  .ctv-account-metric:last-child { border-bottom: 0; }
  .ctv-account-metric:nth-child(2) { border-bottom: 1px solid var(--account-line); }
  .ctv-account-overview-identity { grid-template-columns: 1fr; }
  .ctv-account-inline-form { grid-template-columns: 1fr; }
  .ctv-account-notifications-head { min-height: 92px; padding-inline: 17px; }
  .ctv-account-notifications-footer { padding-inline: 14px; }
}

@media (max-width: 380px) {
  .command-brand-copy { display: none; }
  .command-actions { gap: 8px; }
}

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

/* Final shared type scale. Page-specific selectors above may refine weight or
   colour, but never reduce interactive or informational copy below this. */
.ctv-account-system :is(button, a.ctv-account-action),
.ctv-account-nav :is(button, a),
.ctv-account-notifications :is(button, a),
.ctv-account-auth :is(button, a) {
  font-size: var(--type-control) !important;
}

.ctv-account-system :is(small, time, span, .ctv-account-status, .ctv-account-form-message),
.ctv-account-nav :is(strong, small, span),
.ctv-account-notifications :is(strong, small, time, span),
.ctv-account-auth :is(strong, small, time, label, span) {
  font-size: var(--type-meta) !important;
}

.ctv-account-system :is(input, select, textarea),
.ctv-account-system p:not(.ctv-account-kicker),
.ctv-account-notifications p,
.ctv-account-auth p {
  font-size: var(--type-body) !important;
}

.ctv-account-nav-login::after {
  font-size: var(--type-meta) !important;
}

/* The popover keeps the shared readability floor while retaining a clear
   identity/title hierarchy inside the compact header navigation. */
.ctv-account-nav .ctv-account-popover-identity strong {
  font-size: 1.16rem !important;
}

.ctv-account-nav .ctv-account-popover-link-copy strong {
  font-size: var(--type-control) !important;
}

.ctv-account-nav .ctv-account-progress-copy strong {
  font-size: var(--type-control) !important;
}

.ctv-account-page .ctv-account-kicker,
.ctv-account-system .ctv-account-kicker {
  font-size: var(--type-meta) !important;
}

/* Keep account drawers and modal rails on the shared Operations Deck
   scrollbar tokens even though this stylesheet loads after site.css. */
.ctv-account-system :is(
  .ctv-account-notification-tabs,
  .ctv-account-notification-list,
  .ctv-account-tabs
),
.ctv-account-auth-backdrop {
  scrollbar-color: var(--ctv-scrollbar-thumb, #52616a) var(--ctv-scrollbar-track-soft, rgba(7, 11, 15, .78));
  scrollbar-width: auto;
}

@media (pointer: coarse), (max-width: 620px) {
  .ctv-account-system :is(
    .ctv-account-notification-tabs,
    .ctv-account-notification-list,
    .ctv-account-tabs
  ),
  .ctv-account-auth-backdrop {
    scrollbar-width: thin;
  }
}

@media (forced-colors: active) {
  .ctv-account-system :is(
    .ctv-account-notification-tabs,
    .ctv-account-notification-list,
    .ctv-account-tabs
  ),
  .ctv-account-auth-backdrop {
    scrollbar-color: auto;
  }
}

/* Notification Operations Center ------------------------------------------ */
.ctv-account-notification-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--account-line);
  background: var(--account-line);
  gap: 1px;
}

.ctv-account-notification-summary article {
  --summary-accent: var(--account-ice);
  position: relative;
  min-width: 0;
  min-height: 126px;
  padding: 20px 22px 18px;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--summary-accent) 9%, transparent), transparent 58%), #080e12;
}

.ctv-account-notification-summary article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--summary-accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--summary-accent) 55%, transparent);
}

.ctv-account-notification-summary article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -50px;
  width: 116px;
  height: 116px;
  border: 1px solid color-mix(in srgb, var(--summary-accent) 12%, transparent);
  transform: rotate(45deg);
}

.ctv-account-notification-summary article[data-tone="alert"] { --summary-accent: var(--account-red); }
.ctv-account-notification-summary article[data-tone="green"] { --summary-accent: var(--account-green); }
.ctv-account-notification-summary :is(small, strong, span) { display: block; }

.ctv-account-notification-summary small {
  position: relative;
  z-index: 1;
  color: #84949b;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ctv-account-notification-summary strong {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--summary-accent);
  font: 900 2.75rem/.82 var(--account-display);
  letter-spacing: -.02em;
}

.ctv-account-notification-summary strong i {
  color: #66767d;
  font-size: 1rem;
  font-style: normal;
  letter-spacing: 0;
}

.ctv-account-notification-summary span {
  position: relative;
  z-index: 1;
  margin-top: 11px;
  color: #718189;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ctv-account-notification-settings.ctv-account-form-section {
  position: relative;
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #080d11;
}

.ctv-account-notification-settings.ctv-account-form-section::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 58px;
  height: 2px;
  background: var(--account-red);
}

.ctv-account-notification-settings[data-channel="email"]::before { background: var(--account-ice); }

.ctv-account-notification-settings.ctv-account-form-section > header {
  align-items: center;
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid var(--account-line);
  background: linear-gradient(90deg, rgba(255, 49, 86, .065), transparent 56%), rgba(255, 255, 255, .012);
}

.ctv-account-notification-settings[data-channel="email"] > header {
  background: linear-gradient(90deg, rgba(159, 215, 238, .055), transparent 56%), rgba(255, 255, 255, .012);
}

.ctv-account-notification-section-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.ctv-account-notification-section-title > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 49, 86, .34);
  color: var(--account-red);
  background: rgba(255, 49, 86, .065);
}

.ctv-account-notification-settings[data-channel="email"] .ctv-account-notification-section-title > span {
  border-color: rgba(159, 215, 238, .28);
  color: var(--account-ice);
  background: rgba(159, 215, 238, .055);
}

.ctv-account-notification-section-title svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctv-account-notification-settings .ctv-account-preferences {
  gap: 1px;
  padding: 1px;
  background: var(--account-line);
}

.ctv-account-notification-settings .ctv-account-switch {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 18px;
  min-height: 96px;
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  background: #080d11;
  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.ctv-account-notification-settings .ctv-account-switch:hover {
  background: #0c1419;
  box-shadow: inset 2px 0 rgba(159, 215, 238, .38);
}

.ctv-account-notification-settings .ctv-account-switch:has(input:checked) {
  background: linear-gradient(90deg, rgba(104, 245, 170, .055), transparent 66%), #080d11;
  box-shadow: inset 2px 0 rgba(104, 245, 170, .7);
}

.ctv-account-notification-settings .ctv-account-switch:has(input:disabled) {
  cursor: not-allowed;
  opacity: .68;
}

.ctv-account-notification-settings .ctv-account-switch strong {
  color: #ecf1f3;
  font-size: .8125rem;
  letter-spacing: .025em;
}

.ctv-account-notification-settings .ctv-account-switch small {
  margin-top: 7px;
  color: #75868e;
  line-height: 1.5;
}

.ctv-account-notification-settings .ctv-account-switch i {
  width: 48px;
  height: 26px;
  border: 1px solid var(--account-line);
  border-radius: 0;
  background: #11191e;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ctv-account-notification-settings .ctv-account-switch i::after {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 0;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ctv-account-notification-settings .ctv-account-switch input:checked + i {
  border-color: rgba(104, 245, 170, .48);
  background: rgba(104, 245, 170, .08);
  box-shadow: inset 0 0 0 1px rgba(104, 245, 170, .06), 0 0 18px rgba(104, 245, 170, .07);
}

.ctv-account-notification-settings .ctv-account-switch input:checked + i::after {
  box-shadow: 0 0 12px rgba(104, 245, 170, .42);
  transform: translateX(22px);
}

.ctv-account-drawer-backdrop {
  background: rgba(1, 3, 5, .78);
  backdrop-filter: blur(8px) saturate(.72);
}

.ctv-account-notifications {
  --notification-accent: var(--account-ice);
  top: 14px;
  right: 14px;
  width: min(620px, calc(100% - 28px));
  height: calc(100dvh - 28px);
  overflow: hidden;
  border: 1px solid rgba(159, 215, 238, .2);
  border-radius: 24px;
  background:
    linear-gradient(rgba(159, 215, 238, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 215, 238, .018) 1px, transparent 1px),
    radial-gradient(circle at 100% 0, rgba(255, 49, 86, .17), transparent 30rem),
    #05090c;
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow: -28px 30px 100px rgba(0, 0, 0, .64), 0 0 0 1px rgba(255, 255, 255, .025);
}

.ctv-account-notifications-head {
  position: relative;
  min-height: 178px;
  align-items: flex-end;
  padding: 30px 30px 27px 32px;
  overflow: hidden;
  border-bottom-color: rgba(159, 215, 238, .18);
  background:
    linear-gradient(90deg, rgba(3, 7, 10, .95) 0%, rgba(3, 7, 10, .78) 50%, rgba(3, 7, 10, .38) 100%),
    linear-gradient(180deg, rgba(5, 9, 12, .08), rgba(5, 9, 12, .86)),
    url("/header1.png") center 44% / cover no-repeat;
}

.ctv-account-notifications-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 64px;
  height: 4px;
  border-radius: 0 0 99px 99px;
  background: var(--account-red);
  box-shadow: 0 0 26px rgba(255, 49, 86, .62);
}

.ctv-account-notifications-head::after {
  content: none;
}

.ctv-account-notifications-title {
  position: relative;
  z-index: 1;
}

.ctv-account-notifications-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctv-account-notifications-eyebrow i {
  width: 6px;
  height: 6px;
  background: var(--account-green);
  box-shadow: 0 0 12px rgba(104, 245, 170, .7);
  animation: ctv-notification-pulse 1.9s ease-in-out infinite;
}

@keyframes ctv-notification-pulse {
  50% { opacity: .38; box-shadow: 0 0 4px rgba(104, 245, 170, .35); }
}

.ctv-account-notifications .ctv-account-notifications-eyebrow small {
  color: var(--account-red);
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ctv-account-notifications .ctv-account-notifications-head strong {
  margin-top: 9px;
  color: #f4f7f8;
  font: 900 2.18rem/.9 var(--account-display);
  font-size: 2.18rem !important;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.ctv-account-notifications-status {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.ctv-account-notifications .ctv-account-notifications-status span {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(159, 215, 238, .16);
  border-radius: 999px;
  color: #91a2a9;
  background: rgba(4, 9, 12, .56);
  font-size: .6875rem !important;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ctv-account-notifications .ctv-account-notifications-status span:last-child {
  border-color: rgba(104, 245, 170, .2);
  color: var(--account-green);
}

.ctv-account-notifications-close.ctv-icon-action {
  z-index: 2;
  width: var(--ctv-control-height-compact, 44px);
  height: var(--ctv-control-height-compact, 44px);
  flex: 0 0 var(--ctv-control-height-compact, 44px);
  align-self: flex-start;
  border-color: rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #c8d3d7;
  background: rgba(2, 7, 9, .7);
  backdrop-filter: blur(8px);
}

.ctv-account-notifications-close svg,
.ctv-account-notifications-footer svg,
.ctv-account-notification-actions svg,
.ctv-account-notification-empty svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctv-account-notification-tabs {
  gap: 6px;
  padding: 10px 12px;
  border-bottom-color: rgba(159, 215, 238, .1);
  background: rgba(2, 6, 8, .94);
}

.ctv-account-notification-tab.ctv-tab {
  min-height: 44px;
  flex: 1 0 auto;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .018);
  box-shadow: none;
}

.ctv-account-notification-tab.ctv-tab:last-child { border-right-color: transparent; }

.ctv-account-notification-tab.ctv-tab:hover {
  border-color: rgba(159, 215, 238, .25);
  background: rgba(159, 215, 238, .07);
}

.ctv-account-notification-tab.ctv-tab:is(.is-active, [aria-selected="true"]) {
  border-color: rgba(255, 49, 86, .22);
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 49, 86, .24), rgba(255, 49, 86, .1));
  box-shadow: inset 0 0 0 1px rgba(255, 49, 86, .1), 0 5px 18px rgba(255, 49, 86, .08);
}

.ctv-account-notification-tab b {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 5px;
  border: 1px solid rgba(159, 215, 238, .15);
  border-radius: 999px;
  color: #74858c;
  font-size: .625rem;
  letter-spacing: 0;
}

.ctv-account-notification-tab:is(.is-active, [aria-selected="true"]) b {
  border-color: rgba(255, 49, 86, .45);
  color: #fff;
  background: rgba(255, 49, 86, .17);
}

.ctv-account-notification-list {
  padding: 12px;
  background: linear-gradient(180deg, rgba(159, 215, 238, .025), transparent 8rem);
}

.ctv-account-notification-empty {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  color: #7d8d94;
  text-align: center;
}

.ctv-account-notification-empty-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(159, 215, 238, .2);
  color: var(--account-ice);
  background: radial-gradient(circle, rgba(159, 215, 238, .1), transparent 68%);
  transform: rotate(45deg);
}

.ctv-account-notification-empty-icon svg { transform: rotate(-45deg); }

.ctv-account-notifications .ctv-account-notification-empty strong {
  margin-top: 24px;
  color: #edf2f4;
  font: 900 1.15rem/1 var(--account-display);
  font-size: 1.15rem !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ctv-account-notification-empty p {
  max-width: 320px;
  margin: 10px 0 0;
  color: #75858c;
  line-height: 1.55;
}

.ctv-account-notification-item {
  --notification-accent: var(--account-green);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 104px;
  margin-bottom: 8px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(159, 215, 238, .13);
  border-radius: 14px;
  color: #cbd4d8;
  background: linear-gradient(105deg, color-mix(in srgb, var(--notification-accent) 3%, transparent), transparent 60%), rgba(7, 12, 16, .94);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.ctv-account-notification-item:last-child { margin-bottom: 0; }
.ctv-account-notification-item[data-category="personal"] { --notification-accent: var(--account-ice); }
.ctv-account-notification-item[data-category="rewards"] { --notification-accent: var(--account-gold); }
.ctv-account-notification-item[data-category="competition"] { --notification-accent: var(--account-red); }

.ctv-account-notification-item:hover {
  border-color: color-mix(in srgb, var(--notification-accent) 46%, transparent);
  background: linear-gradient(105deg, color-mix(in srgb, var(--notification-accent) 7%, transparent), transparent 64%), #0a1116;
  transform: translateY(-1px);
}

.ctv-account-notification-item.is-unread {
  border-color: color-mix(in srgb, var(--notification-accent) 29%, transparent);
  background: linear-gradient(105deg, color-mix(in srgb, var(--notification-accent) 10%, transparent), transparent 62%), #091015;
}

.ctv-account-notification-item.is-unread::before {
  top: 14px;
  bottom: auto;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--notification-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--notification-accent) 55%, transparent);
}

.ctv-account-notification-main {
  display: grid;
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 17px 12px 17px 17px;
  color: inherit;
  text-decoration: none;
}

.ctv-account-notification-main:focus-visible {
  position: relative;
  z-index: 2;
  outline-offset: -3px;
}

.ctv-account-notification-icon {
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--notification-accent) 32%, transparent);
  border-radius: 12px;
  color: var(--notification-accent);
  background: color-mix(in srgb, var(--notification-accent) 7%, transparent);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--notification-accent) 4%, transparent);
}

.ctv-account-notification-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctv-account-notification-item[data-category] .ctv-account-notification-icon {
  border-color: color-mix(in srgb, var(--notification-accent) 32%, transparent);
  color: var(--notification-accent);
  background: color-mix(in srgb, var(--notification-accent) 7%, transparent);
}

.ctv-account-notifications .ctv-account-notification-copy small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--notification-accent);
  font-size: .6875rem !important;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ctv-account-notification-copy small i {
  width: 13px;
  height: 1px;
  background: currentColor;
}

.ctv-account-notifications .ctv-account-notification-copy strong {
  margin-top: 8px;
  color: #f0f4f5;
  font-size: .875rem !important;
  font-weight: 800;
  letter-spacing: .01em;
}

.ctv-account-notifications .ctv-account-notification-copy > span {
  margin-top: 7px;
  color: #8b9ba2;
  font-size: .75rem !important;
  line-height: 1.5;
}

.ctv-account-notification-copy em {
  width: fit-content;
  margin-top: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(104, 245, 170, .22);
  color: var(--account-green);
  background: rgba(104, 245, 170, .055);
  font-size: .7rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
}

.ctv-account-notification-meta {
  display: flex;
  min-width: 102px;
  align-items: flex-end;
  justify-content: space-between;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 14px 10px;
}

.ctv-account-notifications .ctv-account-notification-meta time {
  color: #77888f;
  font-size: .6875rem !important;
  font-weight: 700;
  letter-spacing: .025em;
  white-space: nowrap;
}

.ctv-account-notification-actions { gap: 6px; }

.ctv-account-notification-actions .ctv-icon-action {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-color: rgba(159, 215, 238, .14);
  border-radius: 50%;
  color: #82939a;
  background: rgba(255, 255, 255, .018);
}

.ctv-account-notification-actions .ctv-icon-action:hover {
  border-color: color-mix(in srgb, var(--notification-accent) 55%, transparent);
  color: #fff;
  background: color-mix(in srgb, var(--notification-accent) 10%, transparent);
}

.ctv-account-notification-actions .ctv-account-notification-dismiss:hover {
  border-color: rgba(255, 49, 86, .6);
  background: rgba(255, 49, 86, .11);
}

.ctv-account-notifications-footer {
  min-height: 76px;
  padding: 13px 16px;
  border-top-color: rgba(159, 215, 238, .17);
  background: rgba(2, 5, 7, .95);
}

.ctv-account-notifications-footer .ctv-action {
  min-width: 156px;
  border: 1px solid var(--ctv-action-border);
  border-radius: 999px;
  color: var(--ctv-action-color);
  background: var(--ctv-action-bg);
  font-size: var(--type-control) !important;
  text-decoration: none;
}

.ctv-account-notifications-footer .ctv-action:hover:not(:disabled) {
  border-color: var(--ctv-action-hover-border);
  color: var(--ctv-action-color);
  background: var(--ctv-action-hover-bg);
}

.ctv-account-notifications-footer .ctv-action > svg {
  width: 17px;
  transition: transform .18s ease;
}

.ctv-account-notifications-footer .ctv-action:hover > svg { transform: translateX(3px); }

@media (max-width: 760px) {
  .ctv-account-notification-summary { grid-template-columns: 1fr; }
  .ctv-account-notification-summary article { min-height: 108px; }
  .ctv-account-notification-settings.ctv-account-form-section > header { align-items: stretch; flex-direction: column; }
  .ctv-account-notification-settings.ctv-account-form-section > header .ctv-action { width: 100%; }
  .ctv-account-notifications { top: 8px; right: 8px; width: calc(100% - 16px); height: calc(100dvh - 16px); border-radius: 20px; }
  .ctv-account-notifications-head { min-height: 158px; padding: 24px 20px; background-position: 52% 44%; }
  .ctv-account-notifications-head::before { left: 20px; }
  .ctv-account-notification-tab.ctv-tab { min-width: 120px; }
  .ctv-account-notification-item { grid-template-columns: minmax(0, 1fr); }
  .ctv-account-notification-main { grid-template-columns: 40px minmax(0, 1fr); padding: 16px 14px; }
  .ctv-account-notification-icon { width: 40px; height: 40px; }
  .ctv-account-notification-meta {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    align-items: center;
    flex-direction: row;
    padding: 10px 14px 12px 69px;
    border-top: 1px solid rgba(159, 215, 238, .09);
  }
}

@media (max-width: 520px) {
  .ctv-account-notifications { top: 6px; right: 6px; width: calc(100% - 12px); height: calc(100dvh - 12px); border-radius: 18px; }
  .ctv-account-notification-list { padding: 8px; }
  .ctv-account-notifications .ctv-account-notifications-head strong { font-size: 2rem !important; }
  .ctv-account-notifications-status { flex-wrap: wrap; }
  .ctv-account-notification-tab.ctv-tab { min-width: 112px; padding-inline: 12px; }
  .ctv-account-notifications-footer { min-height: 0; align-items: stretch; flex-direction: column; padding: 12px; }
  .ctv-account-notifications-footer .ctv-action { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ctv-account-notifications-eyebrow i { animation: none; }
}

/* Passive XP receipts: one quiet daily entry opens this focused overview. */
.ctv-account-system.ctv-xp-activity-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  max-height: min(88dvh, 820px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(159, 215, 238, .22);
  border-radius: 24px;
  color: #f3f7f8;
  background: #070d11;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 49, 86, .08) inset;
}

.ctv-account-system.ctv-xp-activity-dialog::backdrop {
  background: rgba(0, 4, 7, .78);
  backdrop-filter: blur(8px);
}

.ctv-xp-activity-panel {
  display: grid;
  max-height: min(88dvh, 820px);
  overflow: hidden;
  grid-template-rows: auto auto auto minmax(150px, 1fr) auto;
}

.ctv-xp-activity-panel > header {
  display: flex;
  min-height: 112px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(159, 215, 238, .14);
  background: radial-gradient(circle at 82% 12%, rgba(255, 49, 86, .16), transparent 38%), linear-gradient(135deg, #0b141a, #070c10 68%);
}

.ctv-xp-activity-panel > header small,
.ctv-xp-activity-breakdown > header small,
.ctv-xp-activity-receipts > header small {
  color: #94a8b0;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ctv-xp-activity-panel > header h2 {
  margin: 5px 0 4px;
  color: #fff;
  font: 900 clamp(2rem, 5vw, 3.15rem)/.9 var(--display, "Barlow Condensed", sans-serif);
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.ctv-xp-activity-panel > header p { margin: 0; color: #98a9b0; font-size: .78rem; font-weight: 700; }
.ctv-xp-activity-panel > header .ctv-icon-action { flex: 0 0 auto; border-radius: 50%; }

.ctv-xp-activity-summary {
  display: grid;
  min-height: 106px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(159, 215, 238, .12);
  background: rgba(255, 255, 255, .018);
}

.ctv-xp-activity-summary > strong {
  color: #61e9a8;
  font: 900 clamp(2.35rem, 7vw, 4rem)/.9 var(--display, "Barlow Condensed", sans-serif);
  letter-spacing: -.02em;
}

.ctv-xp-activity-summary > strong.is-negative,
.ctv-xp-activity-group > b.is-negative,
.ctv-xp-activity-receipts li > b.is-negative { color: #ff728d; }

.ctv-xp-activity-summary > span { display: grid; justify-items: end; gap: 5px; text-align: right; }
.ctv-xp-activity-summary > span b { color: #fff; font-size: .9rem; }
.ctv-xp-activity-summary > span small { max-width: 230px; color: #83969e; font-size: .72rem; line-height: 1.4; }

.ctv-xp-activity-breakdown,
.ctv-xp-activity-receipts { padding: 20px 28px; }
.ctv-xp-activity-breakdown { border-bottom: 1px solid rgba(159, 215, 238, .12); }
.ctv-xp-activity-breakdown > header,
.ctv-xp-activity-receipts > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.ctv-xp-activity-breakdown > header strong,
.ctv-xp-activity-receipts > header strong { color: #f4f8f9; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.ctv-xp-activity-breakdown > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.ctv-xp-activity-group {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border: 1px solid rgba(159, 215, 238, .11);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
}

.ctv-xp-activity-group > span { display: grid; min-width: 0; gap: 4px; }
.ctv-xp-activity-group strong { overflow: hidden; color: #e7eef0; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.ctv-xp-activity-group small { color: #7f929a; font-size: .66rem; }
.ctv-xp-activity-group > b,
.ctv-xp-activity-receipts li > b { flex: 0 0 auto; color: #61e9a8; font-size: .78rem; white-space: nowrap; }

.ctv-xp-activity-receipts { min-height: 0; overflow: hidden; }
.ctv-xp-activity-receipts ol { max-height: 260px; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-color: rgba(255, 49, 86, .5) transparent; }
.ctv-xp-activity-receipts li { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 4px; border-top: 1px solid rgba(159, 215, 238, .09); }
.ctv-xp-activity-receipts li:first-child { border-top: 0; }
.ctv-xp-activity-receipts li > span { display: grid; min-width: 0; gap: 4px; }
.ctv-xp-activity-receipts li strong { overflow: hidden; color: #e9eff1; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.ctv-xp-activity-receipts li small { color: #81949c; font-size: .67rem; }

.ctv-xp-activity-panel > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 28px max(15px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(159, 215, 238, .14);
  background: #050a0d;
}

.ctv-xp-activity-panel > footer .ctv-action { min-width: 148px; border-radius: 999px; }
.ctv-xp-activity-panel > footer svg { width: 17px; }

@media (max-width: 620px) {
  .ctv-account-system.ctv-xp-activity-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .ctv-xp-activity-panel { max-height: calc(100dvh - 16px); grid-template-rows: auto auto auto minmax(120px, 1fr) auto; }
  .ctv-xp-activity-panel > header { min-height: 96px; padding: 20px 18px 17px; }
  .ctv-xp-activity-summary { min-height: 94px; grid-template-columns: 1fr; gap: 8px; padding: 17px 18px; }
  .ctv-xp-activity-summary > span { justify-items: start; text-align: left; }
  .ctv-xp-activity-breakdown,
  .ctv-xp-activity-receipts { padding: 17px 18px; }
  .ctv-xp-activity-breakdown > div { grid-template-columns: 1fr; }
  .ctv-xp-activity-panel > footer { display: grid; grid-template-columns: 1fr; padding-inline: 18px; }
  .ctv-xp-activity-panel > footer .ctv-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ctv-account-system.ctv-xp-activity-dialog { scroll-behavior: auto; }
}

/* XP Activity overview v36 */
dialog.ctv-account-system.ctv-xp-activity-dialog {
  position: fixed;
  inset: 0;
  width: min(690px, calc(100% - 32px));
  max-width: 690px;
  max-height: min(86dvh, 780px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(135, 190, 211, .25);
  border-radius: 16px;
  color: #f2f6f7;
  background: #071015;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .76), 0 0 0 1px rgba(255, 49, 86, .07) inset;
  font-family: var(--body, Inter, Arial, sans-serif);
}

dialog.ctv-account-system.ctv-xp-activity-dialog::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff3156 0 52%, #ffb62f 52% 76%, #60edaa 76%);
  content: "";
}

dialog.ctv-account-system.ctv-xp-activity-dialog::backdrop {
  background: rgba(0, 3, 6, .84);
  backdrop-filter: blur(12px) saturate(.75);
}

.ctv-xp-activity-dialog .ctv-xp-activity-panel {
  display: grid;
  max-height: min(86dvh, 780px);
  overflow: hidden;
  grid-template-rows: auto auto auto minmax(130px, 1fr) auto;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(159, 215, 238, .035) 50%, transparent 50.1%),
    radial-gradient(circle at 8% 3%, rgba(255, 49, 86, .11), transparent 30%),
    #071015;
}

.ctv-xp-activity-dialog .ctv-xp-activity-panel > header {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid rgba(159, 215, 238, .13);
  background: linear-gradient(118deg, rgba(255, 49, 86, .07), transparent 42%), rgba(5, 10, 14, .78);
}

.ctv-xp-activity-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.ctv-xp-activity-mark {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border: 1px solid rgba(255, 182, 47, .48);
  border-radius: 13px;
  color: #ffbe39;
  background: linear-gradient(145deg, rgba(255, 182, 47, .13), rgba(255, 49, 86, .06));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  font: 900 1rem/1 var(--display, "Barlow Condensed", sans-serif);
  letter-spacing: .08em;
}

.ctv-xp-activity-dialog .ctv-xp-activity-panel > header small,
.ctv-xp-activity-dialog .ctv-xp-activity-breakdown > header small,
.ctv-xp-activity-dialog .ctv-xp-activity-receipts > header small,
.ctv-xp-activity-total > small {
  display: block;
  color: #78909a;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ctv-xp-activity-dialog .ctv-xp-activity-panel > header h2 {
  margin: 4px 0 3px;
  color: #f7fafb;
  font: 900 clamp(2.1rem, 5vw, 3rem)/.9 var(--display, "Barlow Condensed", sans-serif);
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.ctv-xp-activity-dialog .ctv-xp-activity-panel > header p {
  margin: 0;
  color: #9aabb2;
  font-size: .76rem;
  font-weight: 700;
}

.ctv-xp-activity-dialog .ctv-xp-activity-panel > header .ctv-icon-action {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  color: #b3c2c8;
  background: rgba(255, 255, 255, .025);
}

.ctv-xp-activity-dialog .ctv-xp-activity-summary {
  display: grid;
  min-height: 112px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin: 18px 24px 0;
  padding: 18px 20px;
  border: 1px solid rgba(97, 233, 168, .22);
  border-left: 3px solid #61e9a8;
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(97, 233, 168, .09), rgba(97, 233, 168, .018) 58%, rgba(255, 182, 47, .035));
}

.ctv-xp-activity-summary > .ctv-xp-activity-total {
  display: grid;
  justify-items: start;
  gap: 7px;
  text-align: left;
}

.ctv-xp-activity-total > strong {
  color: #61e9a8;
  font: 900 clamp(2.65rem, 7vw, 4.35rem)/.82 var(--display, "Barlow Condensed", sans-serif);
  letter-spacing: -.025em;
}

.ctv-xp-activity-total > strong.is-negative,
.ctv-xp-activity-dialog .ctv-xp-activity-group > b.is-negative,
.ctv-xp-activity-dialog .ctv-xp-activity-receipts li > b.is-negative { color: #ff728d; }

.ctv-xp-activity-summary > .ctv-xp-activity-count {
  display: grid;
  min-width: 150px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 11px;
  padding-left: 18px;
  border-left: 1px solid rgba(159, 215, 238, .14);
  text-align: left;
}

.ctv-xp-activity-count > b {
  color: #fff;
  font: 900 2.05rem/1 var(--display, "Barlow Condensed", sans-serif);
}

.ctv-xp-activity-count > small {
  color: #8ca0a8;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.45;
}

.ctv-xp-activity-dialog .ctv-xp-activity-breakdown,
.ctv-xp-activity-dialog .ctv-xp-activity-receipts { padding: 18px 24px; }
.ctv-xp-activity-dialog .ctv-xp-activity-breakdown { border-bottom: 1px solid rgba(159, 215, 238, .11); }

.ctv-xp-activity-dialog .ctv-xp-activity-breakdown > header,
.ctv-xp-activity-dialog .ctv-xp-activity-receipts > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.ctv-xp-activity-dialog .ctv-xp-activity-breakdown > header > div,
.ctv-xp-activity-dialog .ctv-xp-activity-receipts > header > div { display: grid; gap: 3px; }

.ctv-xp-activity-dialog .ctv-xp-activity-breakdown > header strong,
.ctv-xp-activity-dialog .ctv-xp-activity-receipts > header strong {
  color: #f2f6f7;
  font-size: .88rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ctv-xp-activity-dialog .ctv-xp-activity-breakdown > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ctv-xp-activity-dialog .ctv-xp-activity-group {
  display: grid;
  min-height: 62px;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(159, 215, 238, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .018);
}

.ctv-xp-activity-group > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 182, 47, .25);
  border-radius: 9px;
  color: #ffbd38;
  background: rgba(255, 182, 47, .06);
}

.ctv-xp-activity-group > i svg { width: 18px; height: 18px; }
.ctv-xp-activity-dialog .ctv-xp-activity-group > span { display: grid; min-width: 0; gap: 3px; }
.ctv-xp-activity-dialog .ctv-xp-activity-group strong { overflow: hidden; color: #e9eff1; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.ctv-xp-activity-dialog .ctv-xp-activity-group small { color: #7f949c; font-size: .66rem; }
.ctv-xp-activity-dialog .ctv-xp-activity-group > b,
.ctv-xp-activity-dialog .ctv-xp-activity-receipts li > b { flex: 0 0 auto; color: #61e9a8; font-size: .8rem; white-space: nowrap; }

.ctv-xp-activity-dialog .ctv-xp-activity-receipts { min-height: 0; overflow: hidden; }
.ctv-xp-activity-dialog .ctv-xp-activity-receipts ol {
  max-height: 230px;
  margin: 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-color: rgba(255, 49, 86, .55) rgba(255, 255, 255, .025);
  scrollbar-width: thin;
}

.ctv-xp-activity-dialog .ctv-xp-activity-receipts li {
  display: grid;
  min-height: 61px;
  align-items: center;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 2px;
  border-top: 1px solid rgba(159, 215, 238, .085);
}

.ctv-xp-activity-dialog .ctv-xp-activity-receipts li:first-child { border-top: 0; }
.ctv-xp-activity-receipts li > i {
  color: #627983;
  font: 800 .63rem/1 var(--body, Inter, sans-serif);
  letter-spacing: .08em;
  text-align: center;
}
.ctv-xp-activity-dialog .ctv-xp-activity-receipts li > span { display: grid; min-width: 0; gap: 4px; }
.ctv-xp-activity-dialog .ctv-xp-activity-receipts li strong { overflow: hidden; color: #e9eff1; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.ctv-xp-activity-dialog .ctv-xp-activity-receipts li small { color: #80949c; font-size: .67rem; }

.ctv-xp-activity-dialog .ctv-xp-activity-panel > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 24px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(159, 215, 238, .13);
  background: #050a0d;
}

.ctv-xp-activity-dialog .ctv-xp-activity-panel > footer .ctv-action {
  min-width: 142px;
  min-height: 46px;
  border-radius: 8px;
}

.ctv-xp-activity-dialog .ctv-xp-activity-panel > footer svg { width: 16px; }

@media (max-width: 620px) {
  dialog.ctv-account-system.ctv-xp-activity-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 14px;
  }

  .ctv-xp-activity-dialog .ctv-xp-activity-panel {
    max-height: calc(100dvh - 12px);
    grid-template-rows: auto auto auto minmax(115px, 1fr) auto;
  }

  .ctv-xp-activity-dialog .ctv-xp-activity-panel > header { min-height: 92px; padding: 17px 16px 14px; }
  .ctv-xp-activity-mark { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
  .ctv-xp-activity-dialog .ctv-xp-activity-panel > header h2 { font-size: 2rem; }
  .ctv-xp-activity-dialog .ctv-xp-activity-summary { min-height: 96px; gap: 10px; margin: 12px 14px 0; padding: 14px; }
  .ctv-xp-activity-total > strong { font-size: 2.55rem; }
  .ctv-xp-activity-summary > .ctv-xp-activity-count { min-width: 116px; gap: 7px; padding-left: 10px; }
  .ctv-xp-activity-count > b { font-size: 1.65rem; }
  .ctv-xp-activity-count > small { font-size: .62rem; }
  .ctv-xp-activity-dialog .ctv-xp-activity-breakdown,
  .ctv-xp-activity-dialog .ctv-xp-activity-receipts { padding: 14px; }
  .ctv-xp-activity-dialog .ctv-xp-activity-breakdown > div { grid-template-columns: 1fr; }
  .ctv-xp-activity-dialog .ctv-xp-activity-group { min-height: 56px; }
  .ctv-xp-activity-dialog .ctv-xp-activity-panel > footer { display: grid; grid-template-columns: .8fr 1.2fr; padding: 11px 14px max(11px, env(safe-area-inset-bottom)); }
  .ctv-xp-activity-dialog .ctv-xp-activity-panel > footer .ctv-action { width: 100%; min-width: 0; padding-inline: 10px; }
}
