:root {
  --bg: #101114;
  --panel: #181a1f;
  --panel-soft: #20232a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f3ec;
  --muted: rgba(246, 243, 236, 0.62);
  --accent: #ffbe7a;
  --blue: #77d7ff;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 22px 0;
}

.account-header img { width: 142px; }
.account-header nav { display: flex; gap: 18px; color: var(--muted); font-weight: 800; }

.account-shell {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 42px 0 80px;
}

.account-hero {
  margin-bottom: 24px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(255, 190, 122, 0.16), rgba(119, 215, 255, 0.12)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-hero p,
.dashboard-head p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-hero h1 {
  margin: 0 0 12px;
  font-size: 42px;
}

.account-hero span,
.auth-card p,
.status-grid p,
.member-actions p,
.orders-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-grid,
.status-grid,
.member-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.auth-card,
.dashboard,
.status-grid article,
.member-actions article,
.orders-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-card,
.auth-card label {
  display: grid;
  gap: 10px;
}

.auth-card label { margin-bottom: 14px; color: var(--muted); font-size: 14px; }

input {
  width: 100%;
  padding: 12px 13px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

button {
  cursor: pointer;
  padding: 12px 15px;
  color: #111;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

button:disabled { cursor: not-allowed; opacity: 0.6; }

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.dashboard-head h2,
.auth-card h2,
.member-actions h3,
.orders-panel h3 {
  margin-top: 0;
}

.status-grid {
  margin-bottom: 16px;
}

.status-grid span,
.status-grid strong {
  display: block;
}

.status-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-grid strong {
  margin: 10px 0 8px;
  font-size: 28px;
}

.member-actions {
  margin-bottom: 16px;
}

.member-actions strong {
  display: block;
  margin-bottom: 10px;
  font-size: 28px;
}

.order-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-item strong { font-size: 16px; }
.order-item span { color: var(--muted); font-size: 13px; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 12px 16px;
  color: #111;
  background: #fff;
  border-radius: var(--radius);
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .auth-grid,
  .status-grid,
  .member-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .account-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
