body {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 106, 43, 0.12), transparent 40%),
    #090b0f;
}

body.account-auth-pending .account-page {
  visibility: hidden;
}

.account-auth-loading {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: #090b0f;
}

body.account-auth-pending .account-auth-loading {
  display: flex;
}

.account-auth-loading-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0f131a;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-auth-loading-card p {
  margin: 0;
  color: rgba(244, 247, 251, 0.72);
  font-size: 12px;
}

.account-auth-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff6a2b;
  animation: account-auth-pulse 1.2s ease-in-out infinite;
}

@keyframes account-auth-pulse {
  0% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0.5; transform: scale(0.9); }
}

.account-page {
  min-height: calc(100vh - 76px);
  padding: 28px 16px 40px;
  display: grid;
  gap: 10px;
}

.account-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    #0f131a;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  padding: 20px;
}

.account-kicker {
  margin: 0 0 8px;
  color: rgba(244, 247, 251, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-panel h1 {
  margin: 0;
  color: #f4f7fb;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  line-height: 1.06;
}

.account-subtitle {
  margin: 8px 0 0;
  color: rgba(244, 247, 251, 0.6);
  font-size: 0.98rem;
}

.account-identity {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #171e29;
  padding: 10px;
}

.account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(255, 106, 43, 0.42);
  background: rgba(255, 106, 43, 0.14);
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-identity-copy {
  min-width: 0;
}

.account-identity-name {
  margin: 0;
  color: #f4f7fb;
  font-size: 14px;
  font-weight: 700;
}

.account-identity-email {
  margin: 4px 0 0;
  color: rgba(244, 247, 251, 0.6);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.account-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #171e29;
  padding: 12px;
  min-height: 106px;
  display: flex;
  flex-direction: column;
}

.account-card h2 {
  margin: 0;
  color: rgba(244, 247, 251, 0.6);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.account-inline-action {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 251, 0.72);
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

.account-inline-action:hover {
  border-color: rgba(255, 106, 43, 0.34);
  background: rgba(255, 106, 43, 0.1);
  color: #ffffff;
}

.account-value-input {
  width: 100%;
  min-height: 34px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 19, 26, 0.3);
  color: #f4f7fb;
  padding: 0 10px;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
}

.account-value-input[hidden] {
  display: none !important;
}

.account-value-input:focus {
  outline: none;
  border-color: rgba(255, 106, 43, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.14);
}

.account-inline-form-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-inline-form-actions[hidden] {
  display: none !important;
}

.account-inline-form-actions .btn {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.account-inline-form-actions .btn::before,
.account-inline-form-actions .btn::after {
  display: none !important;
  content: none !important;
}

.account-inline-form-actions .btn-primary {
  box-shadow: none;
}

.account-inline-form-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.account-inline-form-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7fb;
}

.account-value {
  margin: 6px 0 0;
  color: #f4f7fb;
  font-weight: 700;
  word-break: break-word;
  font-size: 1.03rem;
}

.account-role-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 106, 43, 0.4);
  background: rgba(255, 106, 43, 0.14);
}

.account-role-chip.is-admin {
  border-color: rgba(255, 122, 61, 0.52);
  background: rgba(255, 106, 43, 0.2);
}

.account-role-chip.is-moderator {
  border-color: rgba(255, 186, 82, 0.52);
  background: rgba(255, 186, 82, 0.18);
}

.account-notice {
  margin: 16px 0 0;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(217, 107, 118, 0.4);
  background: rgba(217, 107, 118, 0.14);
  color: #f4f7fb;
}

.account-actions-wrap {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #171e29;
  padding: 8px;
}

.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-actions .btn {
  min-height: 28px;
  border-radius: 8px;
  padding-left: 11px;
  padding-right: 11px;
  font-size: 10px;
}

.account-actions .btn::before,
.account-actions .btn::after {
  display: none !important;
  content: none !important;
}

.account-actions .btn-secondary {
  opacity: 0.9;
}

.account-panel-security h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: clamp(1.45rem, 3vw, 1.7rem);
}

.security-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.security-actions .btn {
  min-height: 28px;
  padding: 0 11px;
  font-size: 10px;
  letter-spacing: 0.05em;
  border-radius: 8px;
}

.security-actions .btn-primary {
  box-shadow: none;
}

.security-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.035);
}

.security-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.security-quick-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.security-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  color: rgba(244, 247, 251, 0.62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.security-actions .btn-danger {
  border-color: rgba(217, 107, 118, 0.48);
  background: rgba(217, 107, 118, 0.12);
  color: #ffdbe0;
}

.security-actions .btn-danger:hover {
  border-color: rgba(217, 107, 118, 0.68);
  background: rgba(217, 107, 118, 0.18);
  color: #fff1f3;
}

.security-form {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #171e29;
  padding: 10px;
}

.security-form-modal {
  margin-top: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.security-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.security-field label {
  display: block;
  margin-bottom: 6px;
  color: rgba(244, 247, 251, 0.6);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.security-field input {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f131a;
  color: #f4f7fb;
  padding: 0 12px;
}

.security-field input:focus {
  outline: none;
  border-color: rgba(255, 106, 43, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.16);
}

.security-form-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.security-form-actions .btn {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

.connected-accounts {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #171e29;
  padding: 8px;
}

.connected-accounts h3 {
  margin: 0;
  color: #f4f7fb;
  font-size: 14px;
}

.connected-accounts-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.patreon-link-panel {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0f131a;
  padding: 10px;
}

.patreon-link-copy {
  min-width: 0;
}

.patreon-link-title {
  margin: 0;
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 700;
}

.patreon-link-meta {
  margin: 4px 0 0;
  color: rgba(244, 247, 251, 0.6);
  font-size: 11px;
}

.patreon-link-panel .btn {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 10px;
  white-space: nowrap;
}

/* Supporter Status section */

.account-panel-supporter h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: clamp(1.45rem, 3vw, 1.7rem);
}

.supporter-status-card {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #171e29;
  padding: 12px;
}

.supporter-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.supporter-badge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 251, 0.42);
  transition: opacity 0.2s;
}

.supporter-badge.is-unlinked {
  opacity: 0.45;
}

.supporter-badge.is-tier-kill-leader {
  border-color: rgba(255, 186, 82, 0.38);
  background: rgba(255, 186, 82, 0.10);
  color: #ffba52;
}

.supporter-badge.is-tier-champion {
  border-color: rgba(100, 158, 255, 0.38);
  background: rgba(100, 158, 255, 0.10);
  color: #82adff;
}

.supporter-badge.is-tier-predator {
  border-color: rgba(255, 90, 110, 0.38);
  background: rgba(255, 90, 110, 0.12);
  color: #ff8099;
}

.supporter-info {
  min-width: 0;
}

.supporter-label {
  margin: 0;
  color: #f4f7fb;
  font-size: 13px;
  font-weight: 700;
}

.supporter-detail {
  margin: 3px 0 0;
  color: rgba(244, 247, 251, 0.60);
  font-size: 11px;
}

.supporter-status-card .btn {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none;
}

.supporter-status-card .btn::before,
.supporter-status-card .btn::after {
  display: none !important;
  content: none !important;
}

.connected-method {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0f131a;
  padding: 5px 8px;
}

.connected-method-icon {
  width: 24px;
  text-align: center;
  color: rgba(244, 247, 251, 0.75);
}

.connected-method-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 43, 0.12);
  border: 1px solid rgba(255, 106, 43, 0.34);
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

.connected-method-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connected-method-copy {
  flex: 1;
  min-width: 0;
}

.connected-method-name {
  margin: 0;
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 700;
}

.connected-method-meta {
  margin: 2px 0 0;
  color: rgba(244, 247, 251, 0.6);
  font-size: 11px;
}

.connected-method-status {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.62);
}

.account-panel-requests h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: clamp(1.45rem, 3vw, 1.7rem);
}

.account-requests-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.account-request-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #171e29;
  padding: 10px;
}

.account-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.account-request-title {
  margin: 8px 0 4px;
  color: #f4f7fb;
  font-size: 13px;
  font-weight: 700;
}

.account-request-meta,
.account-request-notes {
  margin: 0;
  color: rgba(244, 247, 251, 0.62);
  font-size: 11px;
}

.account-request-notes {
  margin-top: 6px;
  white-space: pre-wrap;
}

.account-request-status {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-request-status.status-pending {
  color: #f9cf88;
  border-color: rgba(249, 207, 136, 0.38);
}

.account-request-status.status-in_progress {
  color: #9fc0ff;
  border-color: rgba(159, 192, 255, 0.42);
}

.account-request-status.status-done {
  color: #9bf2b5;
  border-color: rgba(155, 242, 181, 0.4);
}

.account-request-status.status-rejected {
  color: #ffc8ce;
  border-color: rgba(217, 107, 118, 0.5);
}

.account-request-tier {
  color: rgba(244, 247, 251, 0.7);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-request-files {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-request-files a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 247, 251, 0.78);
  font-size: 10px;
  text-decoration: none;
}

.account-request-files a:hover {
  border-color: rgba(255, 106, 43, 0.44);
  background: rgba(255, 106, 43, 0.14);
  color: #fff;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.account-modal[hidden] {
  display: none;
}

.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.account-modal-card {
  position: relative;
  width: min(500px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0f131a;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.46);
  padding: 14px;
}

.account-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.account-modal-header h3 {
  margin: 0;
  color: #f4f7fb;
  font-size: 16px;
}

.account-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(244, 247, 251, 0.72);
  font-size: 18px;
  line-height: 1;
}

.account-modal-close:hover {
  border-color: rgba(255, 106, 43, 0.34);
  background: rgba(255, 106, 43, 0.1);
  color: #fff;
}

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

  .security-form-grid {
    grid-template-columns: 1fr;
  }

  .account-panel {
    padding: 20px;
  }

  .patreon-link-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .supporter-status-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) and (min-width: 761px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
