
/* AVORA CLINIC — CUSTOMER ACCOUNT */

.account-main {
  min-height: 75vh;
  background: linear-gradient(160deg, #0a0a09, #1d170e);
  padding: 70px 18px 110px;
}

.account-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 38px;
}

.account-heading h1 {
  font: clamp(48px, 7vw, 82px)/1.1 Georgia, serif;
  font-weight: 400;
  margin: 8px 0 14px;
}

.account-heading > p:last-child {
  color: #d1c8b8;
}

/* ACCOUNT PANELS */

.account-panel {
  max-width: 520px;
  margin: auto;
  background: #15130f;
  border: 1px solid #5c4b30;
  padding: clamp(22px, 4vw, 40px);
}

/* LOGIN AND REGISTRATION */

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #54462f;
  margin-bottom: 28px;
}

.auth-tabs button {
  width: 50%;
  padding: 14px 5px;
  color: #bfb6a8;
  background: none;
  border: 0;
  cursor: pointer;
}

.auth-tabs button.active {
  color: #e5c58c;
  border-bottom: 2px solid #c5a059;
}

.account-panel form label {
  display: block;
  margin: 16px 0 7px;
  font-size: 13px;
}

.account-panel input {
  width: 100%;
  padding: 12px;
  border: 1px solid #68573a;
  border-radius: 0;
  background: #0c0b09;
  color: #fff;
}

.account-button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin-top: 26px;
  background: #b08d57;
  color: #111;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

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

.account-small {
  color: #bcb3a5;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 22px;
}

.account-message {
  max-width: 520px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border: 1px solid #9d825b;
  color: #f5d9a7;
  background: #282016;
}

/* MEMBERSHIP DETAILS */

.member-panel {
  max-width: 680px;
}

.member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.member-top h2 {
  font: 32px Georgia, serif;
  font-weight: 400;
  margin: 0;
}

.account-outline {
  border: 1px solid #b08d57;
  background: transparent;
  color: #e8d1ac;
  padding: 10px 16px;
  cursor: pointer;
}

.member-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 28px 0;
}

.member-details > div {
  padding: 15px;
  background: #201c16;
}

.member-details span {
  display: block;
  font-size: 12px;
  color: #bcb3a5;
  margin-bottom: 6px;
}

.member-details strong {
  font-size: 14px;
}

/* NEW: LOYALTY REWARDS CARD */

.loyalty-card {
  margin: 32px 0;
  padding: clamp(22px, 5vw, 36px);
  background: linear-gradient(
    145deg,
    #292116 0%,
    #1b1711 55%,
    #14120f 100%
  );
  border: 1px solid #8b6e42;
  text-align: center;
}

.loyalty-card .eyebrow {
  color: #d5b57d;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.loyalty-card h3 {
  font-family: Georgia, serif;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  color: #f1e4d0;
  margin: 0 0 14px;
}

.loyalty-intro {
  max-width: 390px;
  margin: 0 auto 26px;
  color: #c7bcaa;
  font-size: 13px;
  line-height: 1.8;
}

/* VISIT COUNTER */

.loyalty-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #e5c58c;
}

.loyalty-count strong {
  font-family: Georgia, serif;
  font-size: clamp(42px, 8vw, 62px);
  font-weight: 400;
  line-height: 1;
}

.loyalty-count span {
  font-size: 18px;
  color: #d1c2a9;
}

.loyalty-count span:last-child {
  font-size: 14px;
  margin-left: 4px;
}

/* GOLD PROGRESS BAR */

.loyalty-progress {
  width: 100%;
  height: 12px;
  background: #403629;
  border: 1px solid #6d5637;
  border-radius: 20px;
  overflow: hidden;
}

.loyalty-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #9e7842,
    #cba66b,
    #e5c58c
  );
  border-radius: 20px;
  transition: width 0.5s ease;
}

/* LOYALTY STATUS MESSAGES */

.loyalty-message {
  color: #e5c58c;
  font-size: 14px;
  line-height: 1.7;
  margin: 22px 0 0;
}

.loyalty-reward-notice {
  margin: 20px 0 0;
  padding: 18px;
  background: #332918;
  border: 1px solid #c5a059;
  color: #f5d9a7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.loyalty-card .account-small {
  max-width: 440px;
  margin: 25px auto 0;
  color: #bcb3a5;
}

/* MEMBERSHIP QR CODE */

.qr-card {
  text-align: center;
  background: #eee9df;
  color: #15130f;
  padding: 28px 12px;
  margin-top: 16px;
}

.qr-card .eyebrow {
  color: #55452d;
  margin: 0 0 15px;
}

#member-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
  min-height: 208px;
}

#member-qr canvas,
#member-qr img {
  background: white;
  padding: 8px;
  max-width: 100%;
  height: auto;
}

#member-code {
  display: block;
  overflow-wrap: anywhere;
  letter-spacing: 0.07em;
}

.qr-card p:last-child {
  font-size: 12px;
  max-width: 310px;
  margin: 12px auto 0;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 500px) {
  .member-details {
    grid-template-columns: 1fr;
  }

  .member-top h2 {
    font-size: 25px;
  }

  .loyalty-card {
    padding: 24px 18px;
    margin: 24px 0;
  }

  .loyalty-card h3 {
    font-size: 27px;
  }

  .loyalty-count strong {
    font-size: 46px;
  }

  .loyalty-count span {
    font-size: 16px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .loyalty-progress-fill {
    transition: none;
  }
}

/* KEEP HIDDEN ELEMENTS HIDDEN */

[hidden] {
  display: none !important;
}
