/* Illmatic Craft — account page */

.account-main {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 58px 0 80px;
  min-height: 65vh;
}

.account-main [hidden] {
  display: none !important;
}

.account-intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.account-intro .eyebrow,
.account-kicker {
  display: inline-block;
  color: var(--accent, #9bd9ff);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.account-intro h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.02;
  margin: 14px 0;
  letter-spacing: -0.055em;
}

.account-intro h1 span {
  color: var(--accent, #9bd9ff);
}

.account-intro p,
.account-panel .muted,
.account-dashboard-heading .muted {
  color: var(--muted, #aab3c5);
  line-height: 1.7;
}

.account-intro p {
  max-width: 580px;
  font-size: 1.04rem;
  margin-bottom: 0;
}

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

.account-panel {
  min-width: 0;
  border: 1px solid var(--line, #303747);
  border-radius: 18px;
  padding: 28px;
  background: var(--panel, #171c28);
  box-shadow: 0 12px 34px rgb(0 0 0 / 12%);
}

.account-panel h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.account-panel h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.account-panel > .muted,
.account-auth-panel > .muted {
  margin-top: 0;
  margin-bottom: 20px;
}

.account-panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgb(155 217 255 / 30%);
  border-radius: 12px;
  background: rgb(155 217 255 / 9%);
  color: var(--accent, #9bd9ff);
  font-size: 1.45rem;
  font-weight: 700;
}

.account-panel form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.account-panel label {
  margin-top: 6px;
  color: #e9edf6;
  font-size: 0.91rem;
  font-weight: 650;
}

.account-panel input {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--line, #303747);
  border-radius: 10px;
  background: #10131c;
  color: #f4f6fb;
  font: inherit;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.account-panel input::placeholder {
  color: #778196;
}

.account-panel input:focus-visible {
  outline: 2px solid var(--accent, #9bd9ff);
  outline-offset: 2px;
  border-color: var(--accent, #9bd9ff);
}

.account-panel small {
  color: var(--muted, #aab3c5);
  font-size: 0.82rem;
  line-height: 1.55;
}

.account-submit {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
}

.account-panel button {
  cursor: pointer;
}

.account-panel button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.account-message {
  min-height: 1.4em;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.account-message:empty {
  min-height: 0;
  margin: 0;
}

.account-message.is-error {
  color: #ff9d9d;
}

.account-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line, #303747);
}

.account-help-note {
  margin-top: 24px;
  padding: 15px 16px;
  border: 1px solid rgb(155 217 255 / 18%);
  border-radius: 12px;
  background: rgb(155 217 255 / 5%);
  line-height: 1.6;
}

.account-help-note strong {
  display: block;
  margin-bottom: 5px;
  color: #edf5ff;
  font-size: 0.92rem;
}

.account-help-note p {
  margin: 0;
  color: var(--muted, #aab3c5);
  font-size: 0.9rem;
}

.account-reset-panel {
  max-width: 580px;
}

.account-reset-panel form {
  max-width: 100%;
}

.account-reset-panel .account-back {
  margin-bottom: 0;
}

.account-dashboard {
  display: grid;
  gap: 22px;
}

.account-dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 4px;
}

.account-dashboard-heading h2 {
  margin: 9px 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.account-dashboard-heading p {
  margin: 0;
}

.account-status {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgb(116 224 170 / 24%);
  border-radius: 999px;
  background: rgb(116 224 170 / 7%);
  color: #b9f2d5;
  font-size: 0.86rem;
  font-weight: 650;
}

.account-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #74e0aa;
  box-shadow: 0 0 0 3px rgb(116 224 170 / 12%);
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.account-details {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 16px 20px;
  margin: 24px 0 0;
  line-height: 1.5;
}

.account-details dt {
  color: var(--muted, #aab3c5);
  font-size: 0.9rem;
}

.account-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #f1f4fb;
  font-weight: 550;
}

.account-security-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.account-security-panel > p {
  margin-bottom: 18px;
}

#verification-actions {
  width: 100%;
  margin-top: auto;
}

#verification-actions .account-submit {
  margin-top: 4px;
}

.account-small-note {
  margin-top: 12px;
  color: var(--muted, #aab3c5);
  font-size: 0.82rem;
  line-height: 1.6;
}

.account-orders-panel {
  margin-top: 0;
}

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

.account-section-heading h2 {
  margin-bottom: 4px;
}

.account-section-heading .account-kicker {
  margin-bottom: 3px;
}

.account-inline-link,
.account-back a {
  color: var(--accent, #9bd9ff);
  text-decoration: none;
  font-weight: 600;
}

.account-inline-link {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.account-inline-link:hover,
.account-back a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-orders > .muted {
  line-height: 1.6;
}

.customer-order-card {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid var(--line, #303747);
  border-radius: 13px;
  background: rgb(16 19 28 / 55%);
  overflow-wrap: anywhere;
}

.customer-order-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.customer-order-card p {
  color: var(--muted, #aab3c5);
  line-height: 1.6;
}

.customer-order-card li {
  margin: 7px 0;
  line-height: 1.5;
}

.account-orders-panel .account-help-note {
  margin-top: 22px;
}

.account-signout-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
}

.account-signout-panel h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.account-signout-panel p {
  margin-bottom: 0;
}

.account-signout-panel button {
  flex-shrink: 0;
}

.account-global-message {
  margin: 0;
}

.account-back {
  margin-top: 28px;
}

.account-loading {
  max-width: 620px;
}

.account-loading p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .account-main {
    width: min(100% - 28px, 1080px);
    padding-top: 40px;
  }

  .account-grid,
  .account-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-panel {
    padding: 22px;
    border-radius: 15px;
  }

  .account-dashboard-heading {
    flex-direction: column;
    gap: 16px;
  }

  .account-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .account-details dd {
    margin-bottom: 12px;
  }

  .account-details dd:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .account-intro h1 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }

  .account-panel {
    padding: 19px;
  }

  .account-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .account-signout-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .account-signout-panel button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-panel input {
    transition: none;
  }
}
