.auth-main {
  background:
    radial-gradient(circle at 82% 12%, rgba(196, 154, 69, 0.11), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #ffffff 54%, #fffaf1 100%);
}

.auth-section {
  display: grid;
  min-height: calc(100vh - 112px);
  place-items: center;
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.auth-card,
.account-shell {
  width: min(100%, 720px);
  border: 1px solid var(--gold-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.08);
}

.auth-card {
  padding: clamp(28px, 5vw, 50px);
}

.auth-card .eyebrow,
.account-shell .eyebrow {
  color: var(--gold-dark);
}

.auth-card h1,
.account-shell h1 {
  max-width: 560px;
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  font-weight: 500;
  line-height: 0.98;
}

.auth-card > p,
.account-intro {
  max-width: 580px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 850;
}

.auth-field span {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  outline: none;
  padding: 0 18px;
}

.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(196, 154, 69, 0.14);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.auth-actions .button {
  border: 0;
  cursor: pointer;
}

.auth-actions .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-switch {
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-switch a {
  color: var(--gold-dark);
  font-weight: 900;
}

.auth-message {
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background: #fffaf1;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.55;
  padding: 12px 14px;
}

.auth-message[data-type="error"] {
  border-color: rgba(132, 41, 41, 0.24);
  background: #fff7f5;
  color: #7a2525;
}

.auth-message[data-type="success"] {
  border-color: rgba(38, 112, 73, 0.24);
  background: #f5fbf7;
  color: #1f6d47;
}

.account-shell {
  width: min(100%, 1120px);
  padding: clamp(28px, 5vw, 54px);
}

.account-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: clamp(22px, 4vw, 34px);
}

.account-user {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-user strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(22px, 4vw, 34px);
}

.account-panel {
  min-height: 140px;
  border: 1px solid rgba(196, 154, 69, 0.22);
  border-radius: 22px;
  background: #ffffff;
  padding: clamp(20px, 2.2vw, 28px);
}

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

[data-requests-panel] {
  min-height: 0;
}

[data-benefits-panel] {
  grid-column: 1 / -1;
  min-height: 0;
  background: rgba(255, 253, 248, 0.76);
}

.account-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.account-panel h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.account-panel-heading h2 {
  margin-bottom: 0;
}

.account-panel-link {
  flex: 0 0 auto;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 8px 14px;
  text-decoration: none;
}

.account-panel-link:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.account-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.account-requests-list {
  display: grid;
  gap: clamp(12px, 1.5vw, 18px);
}

.account-request-card {
  border: 1px solid rgba(196, 154, 69, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(255, 255, 255, 0.98)),
    #ffffff;
  padding: clamp(16px, 1.8vw, 22px);
}

.account-request-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.account-request-top h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.15;
}

.account-request-status {
  flex: 0 0 auto;
  border: 1px solid rgba(196, 154, 69, 0.28);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
  white-space: nowrap;
}

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

.account-request-meta dt {
  margin: 0 0 3px;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-request-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.4;
}

.account-review-area {
  display: grid;
  justify-items: start;
  gap: 12px;
  border-top: 1px solid rgba(196, 154, 69, 0.16);
  margin-top: 16px;
  padding-top: 16px;
}

.account-review-hint,
.account-review-confirmation {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.account-review-open,
.account-review-actions .small-button {
  border: 1px solid var(--gold-line);
  background: #111111;
  color: #ffffff;
  cursor: pointer;
}

.account-review-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.account-review-status strong,
.account-review-status span {
  border: 1px solid rgba(196, 154, 69, 0.28);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.account-review-status strong {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.account-review-form {
  display: grid;
  gap: 14px;
  width: 100%;
  border: 1px solid rgba(196, 154, 69, 0.2);
  border-radius: 20px;
  background: #fffdf8;
  padding: 16px;
}

.account-review-fieldset {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.account-review-fieldset legend,
.account-review-label > span {
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-review-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-review-stars label {
  cursor: pointer;
}

.account-review-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-review-stars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(196, 154, 69, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(162, 111, 35, 0.48);
  font-size: 1.15rem;
  line-height: 1;
}

.account-review-stars input:checked + span,
.account-review-stars label:hover span,
.account-review-stars input:focus-visible + span {
  border-color: var(--gold);
  background: #fff7df;
  color: var(--gold-dark);
  box-shadow: 0 10px 26px rgba(196, 154, 69, 0.14);
}

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

.account-review-label textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  line-height: 1.55;
  outline: none;
  padding: 13px 15px;
}

.account-review-label textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(196, 154, 69, 0.14);
}

.account-review-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.account-review-display legend {
  flex: 0 0 100%;
}

.account-review-display label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 750;
}

.account-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.account-review-cancel {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 8px 4px;
}

.account-review-message {
  margin: 0;
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background: #fffaf1;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 10px 12px;
}

.account-review-message[data-type="error"] {
  border-color: rgba(132, 41, 41, 0.24);
  background: #fff7f5;
  color: #7a2525;
}

.account-empty-state {
  display: grid;
  justify-items: start;
  gap: 14px;
  border: 1px solid rgba(196, 154, 69, 0.18);
  border-radius: 20px;
  background: #fffdf8;
  padding: 18px;
}

.account-empty-link {
  padding: 10px 18px;
}

.account-loading-inline,
.account-error-text {
  color: var(--muted);
}

.account-error-text {
  color: #7a2525;
}

.account-loading {
  color: var(--muted);
  text-align: center;
}

@media (min-width: 1440px) {
  .account-shell {
    width: min(100%, 1240px);
    padding: clamp(38px, 3.4vw, 62px);
  }

  .account-top {
    gap: clamp(32px, 4vw, 72px);
  }

  .account-intro {
    max-width: 680px;
  }

  [data-requests-panel] {
    padding: clamp(28px, 2.4vw, 34px);
  }

  [data-my-reviews-panel],
  [data-favorites-panel] {
    min-height: 260px;
  }
}

@media (min-width: 1800px) {
  .account-shell {
    width: min(100%, 1320px);
  }
}

@media (max-width: 720px) {
  .auth-section {
    min-height: auto;
    padding: 34px 18px 52px;
  }

  .auth-card,
  .account-shell {
    border-radius: 24px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .auth-card h1,
  .account-shell h1 {
    font-size: clamp(2.25rem, 12vw, 3.1rem);
  }

  .auth-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-actions .button {
    width: 100%;
  }

  .account-shell {
    width: min(100%, 720px);
    padding: 24px 18px;
  }

  .account-top {
    flex-direction: column;
  }

  .account-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-panel-heading,
  .account-request-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-request-meta {
    grid-template-columns: 1fr;
  }
}
