.account-redesign {
  background: #0b0b0c;
  color: #f7f7f8;
}

.account-redesign .account-page-main { min-height: calc(100vh - 214px); padding-top: 78px; }
.account-redesign .account-page-section { padding: 78px 0 100px; }
.account-redesign .account-shell {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(440px, 1fr);
  align-items: start;
  gap: 86px;
}

.account-redesign .account-intro {
  position: sticky;
  top: 122px;
  max-width: 430px;
}
.account-redesign .account-intro .section-label,
.account-redesign .account-auth-panel .section-label,
.account-redesign .account-status-panel .section-label {
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  font: 600 11px/1.5 Consolas, monospace;
  text-transform: uppercase;
}
.account-redesign .account-intro .page-title {
  margin: 14px 0 0;
  color: #f7f7f8;
  font-size: 64px;
  font-weight: 730;
  line-height: 1.02;
}
.account-redesign .account-intro > p:not(.account-membership-note) {
  max-width: 390px;
  margin: 22px 0 0;
  color: #a2a2a8;
  font-size: 15px;
  line-height: 1.7;
}

.account-benefit-list {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-block: 1px solid #29292d;
}
.account-benefit-list > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #29292d;
}
.account-benefit-list > div:first-child { border-top: 0; }
.account-benefit-list > div > svg { width: 19px; height: 19px; margin-top: 2px; color: var(--accent); }
.account-benefit-list span { color: #85858c; font-size: 12px; line-height: 1.55; }
.account-benefit-list strong { display: block; margin-bottom: 2px; color: #e9e9ec; font-size: 13px; }
.account-redesign .account-membership-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0 0;
  color: #77777e;
  font-size: 11px;
  line-height: 1.55;
}
.account-membership-note svg { width: 14px; height: 14px; margin-top: 1px; flex: 0 0 auto; }

.account-redesign .account-auth-panel,
.account-redesign .account-status-panel {
  width: 100%;
  margin: 0;
  padding: 34px;
  overflow: visible;
  background: #121214;
  border: 1px solid #2b2b30;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
}
.account-redesign .account-auth-panel { position: relative; }
.account-redesign .account-auth-panel::before,
.account-redesign .account-status-panel::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 3px;
  border-radius: 6px 0 0 6px;
  background: var(--accent);
}
.account-redesign .account-status-panel { position: relative; }
.account-redesign .admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.account-redesign .admin-panel-head h2 {
  margin: 8px 0 0;
  color: #f5f5f7;
  font-size: 27px;
  line-height: 1.2;
}
.account-redesign .admin-panel-head p { margin: 8px 0 0; color: #85858c; font-size: 13px; }
.account-panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: #17211f;
  border: 1px solid #2b4944;
  border-radius: 50%;
  flex: 0 0 auto;
}
.account-panel-icon svg { width: 19px; height: 19px; }

.account-redesign .admin-entry-form { display: grid; gap: 20px; }
.account-redesign .field-group { display: grid; gap: 8px; }
.account-redesign .field-label {
  color: #b5b5bb;
  font: 600 11px/1.45 Consolas, monospace;
  text-transform: uppercase;
}
.account-input-wrap { position: relative; display: flex; align-items: center; }
.account-input-wrap > svg {
  position: absolute;
  left: 14px;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: #6f6f76;
  pointer-events: none;
}
.account-redesign .account-input-wrap .text-input {
  width: 100%;
  min-height: 50px;
  padding: 0 46px 0 44px;
  color: #f4f4f6;
  background: #0d0d0f;
  border: 1px solid #343439;
  border-radius: 4px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.account-redesign .account-input-wrap .text-input::placeholder { color: #5f5f66; }
.account-redesign .account-input-wrap .text-input:focus {
  border-color: #61cdbc;
  box-shadow: 0 0 0 3px rgb(115 245 223 / 8%);
}
.account-password-toggle {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #85858c;
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.account-password-toggle:hover { color: #f4f4f6; background: #1c1c20; }
.account-password-toggle svg { width: 17px; height: 17px; }

.account-redesign .admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.account-redesign .primary-btn,
.account-redesign .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.account-redesign .primary-btn { color: #0b1715; background: var(--accent); border: 1px solid var(--accent); }
.account-redesign .primary-btn:hover { background: #a0ffef; border-color: #a0ffef; transform: translateY(-1px); }
.account-redesign .secondary-btn { color: #d8d8dc; background: #19191c; border: 1px solid #36363b; }
.account-redesign .secondary-btn:hover { color: #fff; border-color: #66666d; }
.account-redesign .primary-btn svg,
.account-redesign .secondary-btn svg { width: 15px; height: 15px; }
.account-redesign .account-submit { width: 100%; min-height: 50px; margin-top: 3px; }
.account-redesign .account-submit svg { margin-left: auto; }
.account-redesign .account-auth-switch { margin: 2px 0 0; color: #85858c; font-size: 13px; text-align: center; }
.account-redesign .account-auth-switch a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.account-redesign .admin-feedback { min-height: 18px; margin: 0; color: #a5a5ab; font-size: 12px; }

.register-redesign .register-intro { max-width: 450px; }
.register-account-points {
  display: grid;
  margin-top: 36px;
  border-block: 1px solid #29292d;
}
.register-account-points > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #29292d;
}
.register-account-points > div:first-child { border-top: 0; }
.register-point-index {
  padding-top: 2px;
  color: var(--accent);
  font: 600 10px/1.5 Consolas, monospace;
}
.register-account-points > div > span:last-child {
  color: #85858c;
  font-size: 12px;
  line-height: 1.55;
}
.register-account-points strong {
  display: block;
  margin-bottom: 2px;
  color: #e9e9ec;
  font-size: 13px;
}
.register-redesign .register-auth-panel { overflow: hidden; }
.register-password-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #717178;
  font-size: 11px;
}
.register-password-note svg { width: 13px; height: 13px; color: #69cbbb; }
.register-panel-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px -34px -34px;
  padding: 15px 34px;
  color: #73737a;
  background: #0e0e10;
  border-top: 1px solid #29292d;
  font-size: 11px;
}
.register-panel-footer svg { width: 14px; height: 14px; color: var(--accent); }

.account-redesign .account-signed-in { grid-column: 2; display: grid; gap: 18px; }
.account-redesign .account-signed-in[hidden],
.account-redesign .account-auth-panel[hidden] { display: none !important; }
.account-redesign .account-stat-grid-profile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; background: #2d2d31; }
.account-redesign .account-stat {
  min-width: 0;
  padding: 17px;
  background: #0f0f11;
  border: 0;
  border-radius: 0;
}
.account-redesign .account-stat span { color: #77777e; font: 600 10px/1.4 Consolas, monospace; text-transform: uppercase; }
.account-redesign .account-stat strong { margin-top: 8px; color: #ececef; font-size: 13px; }
.account-redesign .account-stat small { display: block; margin-top: 5px; color: #929299; font-size: 11px; line-height: 1.4; }
.account-redesign .account-badges-panel { margin-top: 24px; }
.account-redesign .account-badge { border-radius: 5px; }
.account-redesign .account-badge-logo { border-radius: 4px; }
.account-redesign .account-panel-copy { max-width: 610px; color: #99999f; font-size: 14px; line-height: 1.7; }
.account-redesign .account-affiliate-form { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.account-redesign .account-affiliate-form .admin-feedback { grid-column: 1 / -1; }

.account-profile-heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-profile-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #0b1715;
  background: var(--accent);
  border: 1px solid #c1fff5;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  flex: 0 0 auto;
}
.account-profile-heading > div { min-width: 0; }
.account-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #8f8f96;
  font-size: 11px;
}
.account-profile-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgb(115 245 223 / 45%);
}

/* Account badges use one intentional, in-page tooltip instead of the browser title UI. */
.account-redesign .account-badge[data-tooltip]::before,
.account-redesign .account-badge[data-tooltip]::after { content: none; display: none; }
.account-redesign .account-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.account-redesign .account-badge-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: none;
}
.account-redesign .account-badge-label { display: none; }
.account-redesign .account-badge-owner,
.account-redesign .account-badge-admin,
.account-redesign .account-badge-founder,
.account-redesign .account-badge-supporter,
.account-redesign .account-badge-bug-catcher,
.account-redesign .account-badge-creator {
  border: 0;
  background: transparent;
  color: inherit;
}
.account-redesign .account-badge-logo::before,
.account-redesign .account-badge-logo::after { content: none; display: none; }
.account-redesign .account-badge-logo svg { width: 13px; height: 13px; }
.account-redesign .account-badge-owner .account-badge-logo {
  background: #111029 !important;
  border: 1.5px solid #6366f1 !important;
  box-shadow: 0 0 10px rgb(99 102 241 / 40%) !important;
}
.account-redesign .account-badge-owner .account-badge-logo svg { width: 22px; height: 22px; color: #a5b4fc !important; }
.account-redesign .account-badge-bug-catcher .account-badge-logo {
  background: #061f14 !important;
  border: 1.5px solid #22c55e !important;
  box-shadow: 0 0 10px rgb(34 197 94 / 40%) !important;
}
.account-redesign .account-badge-bug-catcher .account-badge-logo svg { width: 23px; height: 23px; color: #86efac !important; }
.account-redesign .account-badge-admin .account-badge-logo {
  background: #240a0a !important;
  border: 1.5px solid #ef4444 !important;
  box-shadow: 0 0 10px rgb(239 68 68 / 40%) !important;
}
.account-redesign .account-badge-admin .account-badge-logo svg { width: 22px; height: 22px; color: #fca5a5 !important; }

/* Animated badge presets. The core stays sharp while each effect is clipped to the mark. */
.account-redesign .badge-owner-smoke,
.account-redesign .badge-admin-shine { overflow: visible; }
.account-redesign .badge-owner-smoke .badge-core,
.account-redesign .badge-admin-shine .badge-core {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.account-redesign .badge-owner-smoke .badge-core {
  background: #111029;
  border: 1.5px solid #818cf8;
  box-shadow: 0 0 8px rgb(129 140 248 / 30%);
}
.account-redesign .badge-owner-smoke .crown-icon {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  color: #a5b4fc;
}
.account-redesign .badge-owner-smoke .smoke-puff {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(45deg, #d91bf6, #3b82f6, #d91bf6);
  background-size: 200% 200%;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 65%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 65%);
  filter: blur(2px);
}
.account-redesign .badge-owner-smoke .puff-1 { width: 32px; height: 32px; animation: account-roll-smoke-left 4s ease-out infinite, account-smoke-color 3s linear infinite; }
.account-redesign .badge-owner-smoke .puff-2 { width: 36px; height: 36px; animation: account-roll-smoke-right 3.5s ease-out infinite, account-smoke-color 3.5s linear infinite; animation-delay: .8s; }
.account-redesign .badge-owner-smoke .puff-3 { width: 28px; height: 28px; animation: account-roll-smoke-center 4.5s ease-out infinite, account-smoke-color 4s linear infinite; animation-delay: 1.6s; }
.account-redesign .badge-owner-smoke .puff-4 { width: 34px; height: 34px; animation: account-roll-smoke-left 3.8s ease-out infinite, account-smoke-color 3s linear infinite; animation-delay: 2.4s; }
@keyframes account-smoke-color { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes account-roll-smoke-left { 0% { transform: translate(0, 2px) scale(.3); opacity: 0; } 15% { opacity: .65; } 60% { opacity: .35; } 100% { transform: translate(-14px, -26px) scale(1.5); opacity: 0; } }
@keyframes account-roll-smoke-right { 0% { transform: translate(0, 2px) scale(.3); opacity: 0; } 15% { opacity: .65; } 60% { opacity: .35; } 100% { transform: translate(14px, -24px) scale(1.6); opacity: 0; } }
@keyframes account-roll-smoke-center { 0% { transform: translate(0, 2px) scale(.3); opacity: 0; } 20% { opacity: .7; } 70% { opacity: .25; } 100% { transform: translate(2px, -30px) scale(1.7); opacity: 0; } }

.account-redesign .badge-admin-shine .badge-core {
  overflow: hidden;
  background: #240a0a;
  border: 1.5px solid #ef4444;
  box-shadow: 0 0 10px rgb(239 68 68 / 40%);
}
.account-redesign .badge-admin-shine .admin-icon {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  color: #fca5a5;
}
.account-redesign .badge-admin-shine .shine-sweep {
  position: absolute;
  top: -50%;
  left: -150%;
  z-index: 3;
  width: 60%;
  height: 200%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 10%) 25%, rgb(255 255 255 / 70%) 50%, rgb(255 255 255 / 10%) 75%, transparent 100%);
  transform: rotate(25deg);
  animation: account-cinema-glint 3s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes account-cinema-glint { 0% { left: -150%; } 50%, 100% { left: 150%; } }

@media (prefers-reduced-motion: reduce) {
  .account-redesign .badge-owner-smoke .smoke-puff,
  .account-redesign .badge-admin-shine .shine-sweep { animation: none; }
}
.account-redesign .account-badge-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 80;
  width: max-content;
  max-width: min(320px, 70vw);
  padding: 9px 11px;
  color: #e6edf8;
  background: #111d31;
  border: 1px solid #324b6a;
  border-radius: 5px;
  box-shadow: 0 16px 34px rgb(0 0 0 / 34%);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.account-redesign .account-badge-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 9px;
  height: 9px;
  background: #111d31;
  border-left: 1px solid #324b6a;
  border-top: 1px solid #324b6a;
  transform: translateX(-50%) rotate(45deg);
}
.account-redesign .account-badge:hover .account-badge-tooltip,
.account-redesign .account-badge:focus-visible .account-badge-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.account-redesign .account-badge-empty { cursor: default; }

.account-redesign.account-is-signed-in #account-profile {
  display: flex;
  flex-direction: column;
}
.account-redesign.account-is-signed-in #account-status-feedback {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #29292d;
}

.account-redesign.account-is-signed-in .account-page-section { padding-top: 54px; }
.account-redesign.account-is-signed-in .account-shell { display: block; }
.account-redesign.account-is-signed-in .account-intro {
  position: static;
  max-width: none;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #29292d;
}
.account-redesign.account-is-signed-in .account-intro .page-title {
  margin-top: 8px;
  font-size: 36px;
  line-height: 1.1;
}
.account-redesign.account-is-signed-in .account-intro > p,
.account-redesign.account-is-signed-in .account-benefit-list,
.account-redesign.account-is-signed-in .account-membership-note { display: none; }
.account-redesign.account-is-signed-in .account-signed-in {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .72fr);
  align-items: start;
  gap: 18px;
}
.account-redesign.account-is-signed-in #account-profile { min-height: 100%; }
.account-redesign.account-is-signed-in #account-affiliate .admin-panel-head {
  display: grid;
  gap: 16px;
}
.account-redesign.account-is-signed-in #account-affiliate .admin-panel-head > .secondary-btn { justify-self: start; }
.account-redesign.account-is-signed-in .account-affiliate-form { grid-template-columns: 1fr; }
.account-redesign.account-is-signed-in .account-affiliate-form .admin-actions,
.account-redesign.account-is-signed-in .account-affiliate-form .primary-btn { width: 100%; }

.account-redesign .lp-footer { background: #0b0b0c; }

@media (max-width: 900px) {
  .account-redesign .account-shell { grid-template-columns: 1fr; gap: 48px; }
  .account-redesign .account-intro { position: static; max-width: 650px; }
  .account-redesign .account-intro .page-title { font-size: 56px; }
  .account-redesign .account-signed-in { grid-column: 1; }
  .account-redesign.account-is-signed-in .account-signed-in { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .account-redesign .account-page-main { padding-top: 68px; }
  .account-redesign .account-page-section { padding: 54px 0 70px; }
  .account-redesign .account-shell { gap: 38px; }
  .account-redesign .account-intro .page-title { font-size: 44px; }
  .account-benefit-list { margin-top: 28px; }
  .account-redesign .account-auth-panel,
  .account-redesign .account-status-panel { padding: 26px 22px; }
  .account-redesign .admin-panel-head { flex-direction: column; margin-bottom: 24px; }
  .account-redesign .admin-panel-head .admin-actions { width: 100%; }
  .account-redesign .admin-panel-head .admin-actions > * { flex: 1; }
  .account-panel-icon { display: none; }
  .account-redesign .account-stat-grid-profile { grid-template-columns: 1fr; }
  .account-redesign .account-affiliate-form { grid-template-columns: 1fr; }
  .account-redesign .account-affiliate-form .admin-actions,
  .account-redesign .account-affiliate-form .primary-btn { width: 100%; }
  .account-redesign.account-is-signed-in .account-page-section { padding-top: 34px; }
  .account-redesign.account-is-signed-in .account-intro .page-title { font-size: 30px; }
  .account-profile-heading { align-items: flex-start; }
  .account-profile-avatar { width: 46px; height: 46px; font-size: 18px; }
  .register-panel-footer { margin: 24px -22px -26px; padding: 14px 22px; }
}
