:root {
  --mananas-black: #141414;
  --mananas-gold: #d7b75d;
  --mananas-gold-deep: #b89232;
  --mananas-ivory: #f6f1e7;
  --mananas-stone: #f0eee8;
  --mananas-muted: #666666;
  --mananas-success: #256d3c;
  --mananas-error: #9b2c2c;
}

.account-shell {
  background: linear-gradient(180deg, #f9f4eb 0%, #f4f0ea 100%);
  min-height: 80vh;
  padding: clamp(24px, 5vw, 48px) 0 clamp(40px, 7vw, 72px);
}

.account-panel {
  background: #fffdf9;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.account-hero {
  background: linear-gradient(135deg, rgba(20,20,20,0.96), rgba(53,53,53,0.88));
  border-radius: 18px 18px 0 0;
  padding: clamp(22px, 5vw, 32px) clamp(16px, 4vw, 26px);
  color: #fff;
}

.account-hero h1 {
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  overflow-wrap: anywhere;
}

.account-hero small {
  color: rgba(255,255,255,0.78);
}

.account-badge {
  display: inline-block;
  background: var(--mananas-gold);
  color: #111;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.account-metric {
  background: var(--mananas-stone);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 14px;
  padding: 18px 18px 14px;
}

.account-metric .label {
  display: block;
  font-size: 11px;
  color: var(--mananas-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.account-metric .value {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--mananas-black);
  overflow-wrap: anywhere;
}

.account-panel-body {
  padding: clamp(16px, 4vw, 26px);
}

.account-card {
  background: #fff;
  border: 1px solid rgba(20,20,20,0.06);
  border-radius: 14px;
  padding: 20px;
  min-height: 180px;
}

.account-card h4 {
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 700;
}

.account-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-list li {
  border-bottom: 1px solid #efe9df;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.account-list li > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-list li:last-child {
  border-bottom: none;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.account-btn.primary {
  background: var(--mananas-black);
  color: #fff;
}

.account-btn.primary:hover {
  background: #2a2a2a;
  color: #fff;
}

.account-btn.secondary {
  background: var(--mananas-gold);
  color: #111;
}

.account-btn.secondary:hover {
  background: var(--mananas-gold-deep);
  color: #111;
}

.auth-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.72)),
    url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 48px) 0;
}

.auth-card {
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  overflow: hidden;
  width: min(980px, 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.auth-visual {
  background: #111;
  color: #fff;
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.auth-visual .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-visual .brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.auth-visual h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.auth-visual p {
  color: rgba(255,255,255,0.76);
  line-height: 1.7;
}

.auth-form {
  padding: 32px 30px;
}

.auth-form h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-form .form-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mananas-muted);
}

.auth-form .form-control,
.auth-form .form-select {
  border-radius: 12px;
  border: 1px solid rgba(17,17,17,0.12);
  padding: 12px 14px;
  background: #fcfbf9;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
  border-color: var(--mananas-gold);
  box-shadow: 0 0 0 0.15rem rgba(215,183,93,0.25);
}

.auth-submit {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: var(--mananas-gold);
  color: #111;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auth-submit:hover {
  background: var(--mananas-gold-deep);
}

.account-form {
  background: #fffdf9;
  border: 1px solid rgba(20,20,20,0.06);
  border-radius: 16px;
  padding: 20px;
}

.muted-link {
  color: var(--mananas-black);
  text-decoration: underline;
  font-weight: 600;
}

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.notice.error {
  background: rgba(155,44,44,0.08);
  color: var(--mananas-error);
  border: 1px solid rgba(155,44,44,0.2);
}

.notice.success {
  background: rgba(37,109,60,0.08);
  color: var(--mananas-success);
  border: 1px solid rgba(37,109,60,0.2);
}

@media (max-width: 991px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    max-width: 100%;
  }

  .auth-visual {
    padding: 28px 22px;
  }

  .auth-form {
    padding: 24px 18px;
  }
}

.account-panel,
.account-card,
.account-form,
.auth-card,
.auth-visual,
.auth-form {
  min-width: 0;
}

.account-actions .account-btn {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}
