/* Account group: auth, affiliate hub + dashboard, my-reviews, reviews display. Builds on mpp-info.css. */

/* ---------- Shared form bits ---------- */
.acct-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.acct-req {
  color: #e95e52;
  margin-left: 2px;
}
.invalid-feedback {
  display: none;
  font-size: 12px;
  color: #ad4139;
}
.was-validated .acct-field:has(:invalid) .invalid-feedback {
  display: block;
}
.was-validated :is(input, select, textarea):invalid {
  border-color: #e95e52;
}
.check-label a {
  text-decoration: underline;
  color: #ad4139;
}

/* ---------- Auth ---------- */
.acct-auth .inquiry-grid {
  max-width: 1150px;
  margin: auto;
  align-items: start;
}
.acct-auth aside {
  padding-top: 20px;
}
.acct-auth aside h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.02;
  margin: 24px 0;
}
.acct-auth aside p {
  font-size: 15px;
  line-height: 1.8;
  max-width: 400px;
  color: #554f4d;
}
.acct-auth aside .text-link {
  margin-top: 26px;
}
.acct-password {
  position: relative;
}
.acct-password input {
  padding-right: 52px;
}
.eye-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  display: grid;
  place-items: center;
  color: #766979;
}
.eye-toggle:hover,
.eye-toggle[aria-pressed="true"] {
  color: #e95e52;
}
.acct-forgot {
  justify-self: end;
}
.acct-back {
  justify-self: center;
}
.acct-submit {
  width: 100%;
  justify-content: space-between;
}
.acct-hint {
  font-size: 14px;
  color: #68605c;
  margin: 0;
}
.acct-switch {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e6dbcf;
  text-align: center;
}
.acct-switch p {
  font-size: 14px;
  color: #68605c;
  margin-bottom: 12px;
}
.acct-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 5px;
  border-left: 3px solid #e95e52;
  background: #fbe5e1;
  font-size: 14px;
  line-height: 1.5;
}
.acct-alert--success {
  border-left-color: #6a7e4f;
  background: #e7ecda;
}
.acct-alert button {
  font-size: 20px;
  line-height: 1;
}

/* ---------- Affiliate hub ---------- */
.acct-benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.acct-benefits article:nth-child(4) {
  background: #fbe2d0;
}
.affiliate-apply .inquiry-card form > .btn-dark {
  justify-content: space-between;
}

/* ---------- Page heroes (dashboard / reviews) ---------- */
.acct-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  overflow-wrap: anywhere;
}
.acct-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.acct-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid #251d28;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  background: #fcce75;
}
.acct-pill--ok {
  background: #dfe7ce;
}
.acct-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ---------- Dashboard ---------- */
.acct-dash,
.acct-reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.acct-link-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid #251d28;
  border-radius: 12px;
  background: #f1e6f8;
  box-shadow: 6px 6px 0 #251d28;
}
.acct-link-card .eyebrow,
.acct-filters > .eyebrow,
.acct-stat .eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
}
.acct-link-row {
  display: flex;
  gap: 10px;
}
.acct-link-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d8ccc0;
  background: #fffaf4;
  border-radius: 5px;
  padding: 13px;
  font-size: 14px;
}
.acct-link-row .btn-dark {
  gap: 10px;
  padding: 13px 18px;
}
.acct-link-row .btn-dark.is-copied {
  background: #6a7e4f;
}
.acct-link-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #554f4d;
}
.acct-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
.acct-stat {
  padding: 22px;
  border: 1px solid #251d28;
  border-radius: 12px;
  background: white;
  display: grid;
  gap: 14px;
}
.acct-stat:nth-child(4n + 2) {
  background: #f9e5cc;
}
.acct-stat:nth-child(4n + 3) {
  background: #e7ecda;
}
.acct-stat:nth-child(4n + 4) {
  background: #f9d77b;
}
.acct-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.065em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.acct-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.acct-panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid #251d28;
  border-radius: 12px;
  background: white;
}
.acct-panel h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.acct-metrics {
  display: grid;
  gap: 14px;
  margin: 0;
}
.acct-metrics > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ece2d7;
}
.acct-metrics > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.acct-metrics dt {
  font-size: 13px;
  color: #68605c;
}
.acct-metrics dd {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-align: right;
}
.acct-metrics dd.acct-small {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.acct-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.acct-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.acct-table th,
.acct-table td {
  padding: 11px 12px;
  text-align: right;
  border-bottom: 1px solid #ece2d7;
  white-space: nowrap;
}
.acct-table th:first-child {
  text-align: left;
}
.acct-table thead th {
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom-color: #251d28;
}
.acct-table tbody th {
  font-weight: 600;
}
.acct-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.acct-tips li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.acct-tips svg {
  flex: none;
  margin-top: 3px;
  color: #9b64b4;
}

/* ---------- Reviews (my-reviews + reviews display) ---------- */
.acct-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.acct-toolbar p {
  margin: 0;
  font-size: 14px;
}
.acct-filters {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #d8ccc0;
  border-radius: 12px;
  background: #faf0e4;
}
.acct-filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.acct-filter-controls label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
}
.acct-filter-controls select,
.acct-filter-controls input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8ccc0;
  background: white;
  border-radius: 5px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 400;
}
.acct-review-list {
  display: grid;
  gap: 18px;
}
.acct-review {
  min-width: 0;
  padding: 26px;
  border: 1px solid #251d28;
  border-radius: 12px;
  background: white;
}
.acct-review-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.acct-review-product {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  margin: 0 0 4px;
}
.acct-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #68605c;
  margin: 0;
}
.acct-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.acct-badge {
  padding: 4px 11px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1px solid #251d2830;
  background: #f2ece4;
}
.acct-badge--positive {
  background: #dfe7ce;
}
.acct-badge--negative,
.acct-badge--critical {
  background: #f5c6ba;
}
.acct-badge--persona {
  background: #f1e6f8;
  text-transform: capitalize;
}
.acct-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #e9a93a;
  font-size: 15px;
}
.acct-review > .acct-stars {
  gap: 8px;
  margin-bottom: 8px;
}
.acct-review > .acct-stars > span:last-child {
  font-size: 13px;
  color: #68605c;
}
.acct-stars .empty {
  color: #ddd1c4;
}
.acct-review-title {
  font-size: 19px;
  margin: 6px 0 8px;
}
.acct-review-content {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.acct-review-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.acct-review-stats > div {
  padding: 8px 14px;
  border-radius: 6px;
  background: #faf0e4;
  font-size: 13px;
}
.acct-review-stats dt {
  font-size: 11px;
  color: #68605c;
}
.acct-review-stats dd {
  margin: 0;
  font-weight: 700;
}
.acct-reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.acct-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fcce75;
  border: 1px solid #251d28;
  font-weight: 800;
}
.acct-reviewer-name {
  font-weight: 700;
  margin-bottom: 3px;
}
.acct-replies {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ece2d7;
  font-size: 14px;
}
.acct-reply {
  margin: 10px 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid #d192f4;
  background: #fffaf4;
  border-radius: 0 8px 8px 0;
}
.acct-reply .acct-review-content {
  margin: 0;
  font-size: 14px;
}
.acct-count {
  text-align: center;
  font-size: 13px;
  color: #68605c;
}
.acct-empty {
  padding: 60px 20px;
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px dashed #d8ccc0;
  border-radius: 12px;
}
.acct-empty svg {
  color: #d192f4;
}
.acct-empty h3 {
  font-size: 28px;
  margin: 12px 0 4px;
}
.acct-empty .btn-dark,
.acct-empty .btn-outline {
  margin-top: 14px;
}
.acct-loading {
  padding: 50px 20px;
  display: grid;
  justify-items: center;
  color: #68605c;
}
.acct-loading svg {
  color: #e95e52;
  animation: acct-spin 1s linear infinite;
}
@keyframes acct-spin {
  to {
    transform: rotate(360deg);
  }
}
.acct-load-more {
  justify-self: center;
}

@media (max-width: 1050px) {
  .acct-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .acct-benefits {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .acct-link-card,
  .acct-panel,
  .acct-review {
    padding: 20px;
  }
  .acct-link-row {
    flex-direction: column;
  }
  .acct-panel h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .acct-loading svg {
    animation: none;
  }
}

/* My orders */
.order-list {
  padding: 48px 6% 80px;
  display: grid;
  gap: 16px;
}
.order-count {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: #68605c;
}
.order-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  background: #fffaf4;
  border: 1px solid #251d28;
  border-radius: 12px;
  padding: 14px;
}
.order-thumb {
  display: grid;
  place-items: center;
  height: 124px;
  overflow: hidden;
  border-radius: 8px;
  background: #e7d3ed;
  color: #d192f4;
  font-size: 36px;
}
.order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-copy h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin: 4px 0 8px;
}
.order-copy h2 a:hover {
  color: #e95e52;
}
.order-copy p {
  margin: 0;
  font-size: 14px;
  color: #554f4d;
}
.order-id {
  margin-top: 6px !important;
  font-size: 12px !important;
  color: #77706c !important;
}
.order-actions {
  justify-self: end;
}
.order-actions p {
  max-width: 220px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #68605c;
}
@media (max-width: 740px) {
  .order-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .order-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
