:root {
  --account-bg: #f6f3ed;
  --account-surface: rgba(255, 255, 255, 0.8);
  --account-surface-strong: rgba(255, 255, 255, 0.94);
  --account-border: rgba(43, 35, 24, 0.1);
  --account-text: #181613;
  --account-muted: #70685e;
  --account-accent: #171411;
  --account-accent-soft: #b8925e;
  --account-shadow: 0 28px 70px rgba(45, 37, 26, 0.08);
}

* {
  box-sizing: border-box;
}

body.account-body {
  margin: 0;
  color: var(--account-text);
  background:
    radial-gradient(circle at top left, rgba(196, 179, 149, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(226, 215, 196, 0.3), transparent 22%),
    radial-gradient(circle at bottom right, rgba(190, 167, 128, 0.14), transparent 24%),
    linear-gradient(180deg, #fcfbf8 0%, #f3eee6 52%, #ece4d8 100%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.account-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.account-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(-12px);
  animation: accountReveal 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.account-brand,
.account-nav a {
  color: var(--account-text);
  text-decoration: none;
}

.account-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: "Georgia", "Times New Roman", "Source Han Serif SC", serif;
}

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

.account-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--account-border);
  font-size: 14px;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.account-nav a:hover,
.account-nav a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(33, 27, 21, 0.08);
}

.account-hero,
.account-panel {
  background: var(--account-surface);
  border: 1px solid var(--account-border);
  box-shadow: var(--account-shadow);
  backdrop-filter: blur(16px);
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  padding: 34px;
  border-radius: 30px;
  margin-bottom: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 240, 230, 0.82)),
    radial-gradient(circle at top right, rgba(184, 146, 94, 0.08), transparent 30%);
  opacity: 0;
  transform: translateY(24px);
  animation: accountReveal 820ms cubic-bezier(0.18, 0.78, 0.2, 1) 120ms forwards;
}

.account-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8d7148;
  font-size: 12px;
  font-weight: 700;
}

.account-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-family: "Georgia", "Times New Roman", "Source Han Serif SC", serif;
  font-weight: 700;
}

.account-copy p:last-child,
.account-muted {
  color: var(--account-muted);
  line-height: 1.75;
}

.account-status-card {
  position: relative;
  border-radius: 26px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(34, 30, 25, 0.96), rgba(24, 22, 19, 0.94)),
    radial-gradient(circle at top right, rgba(184, 146, 94, 0.22), transparent 34%);
  color: #f5efe6;
  box-shadow: 0 24px 52px rgba(24, 19, 14, 0.18);
}

.account-status-avatar {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5efe5;
  border: 1px solid rgba(245, 239, 230, 0.34);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.account-status-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  color: #fff8ef;
  font-family: "Georgia", "Times New Roman", "Source Han Serif SC", serif;
}

.account-status-card .account-kicker,
.account-status-card .account-muted {
  color: rgba(245, 239, 230, 0.74);
}

.account-quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.account-primary-link,
.account-secondary-link,
.account-actions button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.account-primary-link,
.account-actions button {
  background: linear-gradient(180deg, #1a1714, #0f0d0b);
  color: #fff;
  box-shadow: 0 14px 30px rgba(26, 21, 16, 0.14);
}

.account-secondary-link,
.account-actions .ghost {
  background: transparent;
  color: var(--account-text);
  border-color: var(--account-border);
}

.account-primary-link:hover,
.account-secondary-link:hover,
.account-actions button:hover,
.account-primary-link:focus-visible,
.account-secondary-link:focus-visible,
.account-actions button:focus-visible {
  transform: translateY(-2px);
}

.account-primary-link:hover,
.account-actions button:hover,
.account-primary-link:focus-visible,
.account-actions button:focus-visible {
  box-shadow: 0 18px 36px rgba(26, 21, 16, 0.18);
}

.account-secondary-link:hover,
.account-actions .ghost:hover,
.account-secondary-link:focus-visible,
.account-actions .ghost:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(43, 35, 24, 0.16);
}

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

.account-panel {
  border-radius: 26px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 242, 235, 0.82));
  opacity: 0;
  transform: translateY(24px);
  animation: accountReveal 820ms cubic-bezier(0.18, 0.78, 0.2, 1) forwards;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.account-panel:nth-child(1) {
  animation-delay: 220ms;
}

.account-panel:nth-child(2) {
  animation-delay: 320ms;
}

.account-panel:nth-child(3) {
  animation-delay: 420ms;
}

.account-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 64px rgba(45, 37, 26, 0.1);
  border-color: rgba(184, 146, 94, 0.22);
}

.account-panel-wide {
  grid-column: 1 / -1;
}

.account-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.account-section-head h3 {
  margin: 0;
  font-size: 24px;
  font-family: "Georgia", "Times New Roman", "Source Han Serif SC", serif;
}

.account-tip {
  color: var(--account-muted);
  font-size: 13px;
}

.account-stack {
  display: grid;
  gap: 14px;
}

.account-field {
  display: grid;
  gap: 8px;
}

.account-inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.account-field span,
.account-label {
  color: var(--account-muted);
  font-size: 13px;
}

.account-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--account-border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--account-text);
  font: inherit;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.account-field input:focus {
  outline: none;
  border-color: rgba(184, 146, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(184, 146, 94, 0.12);
  background: rgba(255, 255, 255, 1);
}

.account-inline-field button {
  white-space: nowrap;
}

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

.account-user-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 146, 94, 0.14);
}

.account-avatar-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-user-avatar,
.account-avatar-preview {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5efe5;
  border: 1px solid rgba(43, 35, 24, 0.1);
  box-shadow: 0 14px 30px rgba(45, 37, 26, 0.1);
}

.account-avatar-uploader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.account-avatar-preview {
  width: 116px;
  height: 116px;
}

.account-reset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hidden {
  display: none !important;
}

@keyframes accountReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 960px) {
  .account-hero,
  .account-grid,
  .account-reset-grid {
    grid-template-columns: 1fr;
  }

  .account-inline-field {
    grid-template-columns: 1fr;
  }

  .account-avatar-uploader {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .account-topbar,
  .account-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-hero,
  .account-panel {
    padding: 20px;
  }

  .account-copy h1 {
    font-size: 32px;
  }
}
