/* House of Athlèva — Loyalty Club, join, log in, member dashboard and Refer & Reward pages. */
/* =========================================================
   24. LOYALTY CLUB (SIGN-UP) PAGE
   ========================================================= */
.loy-hero { background: radial-gradient(ellipse at 75% 40%, #3a3733 0%, #1d1c1a 55%, #111 100%); color: var(--ivory); position: relative; overflow: hidden; }
.loy-hero::after { content: "✦"; position: absolute; left: -3rem; bottom: -4rem; font-size: 18rem; line-height: 1; color: var(--gold); opacity: .06; animation: spin 90s linear infinite; pointer-events: none; }
.loy-hero__inner { display: grid; gap: 2.5rem; padding-block: 2rem 4rem; position: relative; z-index: 1; }
.loy-hero__title { color: var(--ivory); font-weight: 400; font-size: clamp(2.8rem, 10vw, 5.5rem); line-height: 1.03; margin-bottom: 1.25rem; }
.loy-hero__title em { font-style: italic; color: var(--gold-light); }
.loy-hero__sub { max-width: 30rem; color: rgba(247,243,234,.82); font-size: 1.05rem; margin-bottom: 1.75rem; }
.loy-perks { display: grid; gap: .75rem; }
.loy-perks li { display: flex; gap: .75rem; align-items: baseline; color: rgba(247,243,234,.85); }
.loy-perks span { color: var(--gold); font-size: .75rem; }
.loy-perks strong { color: var(--ivory); font-weight: 500; }
.loy-card { background: var(--ivory); color: var(--graphite); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); border-top: 3px solid var(--gold); }
.loy-card__mark { height: 44px; width: auto; margin: 0 auto .75rem; }
.loy-card__title { text-align: center; font-size: 2.1rem; }
.loy-card__sub { text-align: center; margin-bottom: 1.5rem; }
.loy-form__note { text-align: center; font-size: .85rem; margin: 0; }
.loy-form__note a { color: var(--onyx); text-decoration: underline; text-decoration-color: var(--gold); }
.loy-success { text-align: center; padding: 1.5rem 0 .5rem; animation: rise .8s var(--ease); outline: none; }
.loy-success__star { display: inline-block; color: var(--gold); font-size: 2rem; animation: twinkle 3s ease-in-out infinite; }
.loy-success h3 { font-size: 2rem; margin: .5rem 0 .75rem; }
.loy-success p { margin-bottom: 1.5rem; }
@media (min-width: 1024px) {
  .loy-hero__inner { grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: center; padding-block: 2rem 5rem; }
  .loy-card { padding: 2.5rem 2.25rem; }
}
.loy-steps { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.loy-steps li { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; }
.loy-steps span { font-family: var(--font-label); font-size: .7rem; letter-spacing: .3em; color: var(--gold-text); }
.loy-steps h3 { font-size: 1.7rem; margin: .5rem 0; }
.loy-steps p { margin: 0; }
@media (min-width: 768px) {
  .loy-steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.loy-tiers-wrap { background: var(--sand); padding-block: var(--section-y); }
.loy-tiers { display: grid; gap: 1rem; }
.tier { background: var(--white); border-radius: var(--radius); padding: 2.25rem 1.75rem; border: 1px solid rgba(184,147,74,.35); }
.tier__name { font-family: var(--font-display); font-size: 2.2rem; color: var(--onyx); margin: 0; }
.tier__req { font-family: var(--font-label); font-size: .65rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 1.25rem; }
.tier ul { display: grid; gap: .55rem; }
.tier li { padding-left: 1.25rem; position: relative; }
.tier li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .6rem; top: .35em; }
.tier--gold { border: 1px solid var(--gold); box-shadow: 0 0 0 4px rgba(184,147,74,.12); }
.tier--onyx { background: var(--onyx); color: rgba(247,243,234,.8); border-color: var(--onyx); }
.tier--onyx .tier__name { color: var(--ivory); }
.tier--onyx .tier__req { color: var(--gold-light); }
@media (min-width: 768px) {
  .loy-tiers { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.loy-refer { text-align: center; }
/* ---- Loyalty: membership points system ---- */
.loy-hero__signin { margin-top: 1.75rem; color: rgba(247,243,234,.75); font-size: .92rem; }
.loy-hero__signin a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.loy-perks em { font-style: italic; color: var(--ivory); }
.member-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: .2rem; text-align: left;
  background: linear-gradient(135deg, #1b1a18 0%, #111 60%, #2a241a 100%); color: var(--ivory);
  border: 1px solid rgba(184,147,74,.55); border-radius: 10px; padding: 1.4rem 1.5rem;
  box-shadow: 0 14px 34px rgba(17,17,17,.22);
}
.member-card::before { content: ""; position: absolute; right: -10px; bottom: -14px; width: 120px; height: 120px; z-index: -1;
  background: url("images/logo-monogram-light.png") center / contain no-repeat; opacity: .12; }
.member-card::after { content: ""; position: absolute; inset: 0; z-index: -1; /* slow sheen */
  background: linear-gradient(110deg, transparent 40%, rgba(217,193,138,.16) 50%, transparent 60%); background-size: 250% 100%;
  animation: sheen 6s ease-in-out infinite; }
.member-card__label { font-family: var(--font-label); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); }
.member-card__id { font-family: var(--font-body); font-weight: 600; font-size: 1.5rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.member-card__name { font-family: var(--font-display); font-size: 1.15rem; color: rgba(247,243,234,.85); }
.member-card--sm { margin: 1.25rem 0; }
@keyframes sheen { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.loy-success__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.loy-success p { font-size: .92rem; }
.rewards-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: .75rem; }
.reward {
  display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: .25rem 1.25rem;
  background: var(--white); border: 1px solid rgba(184,147,74,.3); border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.reward__pts { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 1px solid var(--sand); padding-right: 1rem; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--onyx); }
.reward__pts small { font-family: var(--font-label); font-size: .52rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin-top: .35rem; }
.reward__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--onyx); line-height: 1.2; }
.reward__type { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.loy-rules { max-width: 820px; margin-inline: auto; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 2.25rem 1.75rem; }
.loy-rules ul { display: grid; gap: .7rem; margin: 1.25rem 0 1.5rem; }
.loy-rules li { padding-left: 1.4rem; position: relative; }
.loy-rules li::before { content: "✦"; position: absolute; left: 0; top: .35em; color: var(--gold); font-size: .6rem; }
@media (min-width: 768px) {
  .loy-rules { padding: 3rem; }
}
/* =========================================================
   25. MEMBER DASHBOARD (account.html)
   ========================================================= */
.acc-signin { background: radial-gradient(ellipse at 70% 30%, #3a3733 0%, #1d1c1a 55%, #111 100%); }
.acc-signin__inner { padding-block: 3rem 5rem; display: grid; justify-items: center; }
.acc-signin .loy-card { width: 100%; max-width: 460px; }
.acc-head { background: radial-gradient(ellipse at 75% 40%, #3a3733 0%, #1d1c1a 55%, #111 100%); color: var(--ivory); }
.acc-head__inner { display: grid; gap: 2rem; padding-block: 2.5rem 3rem; align-items: center; }
.acc-head__title { color: var(--ivory); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.6rem); }
.acc-head__title em { color: var(--gold-light); }
.acc-signout { margin-top: 1rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,243,234,.7); border-bottom: 1px solid var(--gold); padding: .3rem 0; }
.acc-signout:hover { color: var(--gold-light); }
.acc-card { max-width: 380px; width: 100%; aspect-ratio: 1.586; justify-content: flex-end; padding: 1.6rem; }
.acc-card .member-card__id { font-size: 1.7rem; }
.acc-card__since { font-size: .72rem; color: rgba(247,243,234,.6); margin-top: .35rem; }
@media (min-width: 900px) {
  .acc-head__inner { grid-template-columns: 1fr auto; }
}
.acc-body { display: grid; gap: 1.25rem; padding-block: 2.5rem var(--section-y); }
.acc-panel { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 1.75rem 1.4rem; min-width: 0; }
.acc-panel__title { font-size: 1.6rem; padding-bottom: .9rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--gold); }
@media (min-width: 1024px) {
  .acc-body { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .acc-points { grid-column: 1; grid-row: 1; }
  .acc-rewards { grid-column: 2; grid-row: 1 / span 2; }
  .acc-mine { grid-column: 1; grid-row: 2; }
  .acc-history { grid-column: 1 / -1; }
  .acc-panel { padding: 2.25rem 2rem; }
}
.acc-points__num { font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--onyx); margin: 0 0 1.25rem; display: flex; align-items: baseline; gap: .6rem; font-variant-numeric: tabular-nums; }
.acc-points__num small { font-family: var(--font-label); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); }
.acc-progress { height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; margin-bottom: .75rem; }
.acc-progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 1.2s var(--ease); }
.acc-points__next { font-size: .95rem; margin-bottom: .75rem; }
.acc-points__next strong { color: var(--onyx); }
.acc-points__rule { font-size: .82rem; color: var(--graphite); margin: 0; }
.acc-rw { display: grid; gap: .6rem; }
.acc-rw__item { display: grid; grid-template-columns: 70px 1fr auto; gap: 1rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--ivory); }
.acc-rw__item.is-open { border-color: var(--gold); background: var(--white); }
.acc-rw__pts { font-family: var(--font-label); font-size: .72rem; letter-spacing: .14em; color: var(--gold-text); }
.acc-rw__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--onyx); line-height: 1.2; }
.acc-rw__btn { min-height: 40px; padding: .5rem 1rem; font-size: .68rem; letter-spacing: .16em; white-space: nowrap; }
.acc-rw__btn:disabled { opacity: .55; cursor: not-allowed; }
.acc-msg { margin: 1rem 0 0; color: var(--success); font-weight: 500; }
.acc-mine__list { display: grid; gap: .75rem; }
.acc-mine__list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: .75rem; border-bottom: 1px solid var(--sand); }
.acc-mine__list strong { display: block; color: var(--onyx); font-weight: 500; }
.acc-mine__list span { font-size: .82rem; }
.acc-mine__right { display: flex; gap: .6rem; align-items: center; }
.acc-mine__right code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: var(--ivory); border: 1px dashed var(--gold); padding: .2rem .5rem; border-radius: 2px; color: var(--onyx); }
.pill { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--sand); color: var(--onyx); }
.pill--active { background: rgba(47,107,79,.12); color: var(--success); }
.pill--requested { background: rgba(184,147,74,.18); color: var(--gold-text); }
.pill--used, .pill--collected { background: var(--sand); color: var(--graphite); }
.acc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.acc-table th { text-align: left; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; padding: 0 .75rem .75rem 0; border-bottom: 1px solid var(--sand); }
.acc-table td { padding: .9rem .75rem .9rem 0; border-bottom: 1px solid var(--sand); color: var(--onyx); vertical-align: top; }
.acc-table td small { display: block; color: var(--graphite); font-size: .78rem; }
.acc-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.acc-table .pts { color: var(--success); font-weight: 600; }
@media (max-width: 640px) {
  /* table becomes cards on phones */
  .acc-table thead { display: none; }
  .acc-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; padding: .9rem 0; border-bottom: 1px solid var(--sand); }
  .acc-table td { border: 0; padding: 0; }
  .acc-table td::before { content: attr(data-label); display: block; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
  .acc-table .num { text-align: left; }
}
.acc-empty { color: var(--graphite); font-style: italic; margin: 0; }
.acc-dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; margin: 0 0 1rem; }
.acc-dl dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); padding-top: .2rem; }
.acc-dl dd { margin: 0; color: var(--onyx); }
.acc-note { font-size: .85rem; margin: 0; }
.acc-note a { color: var(--onyx); text-decoration: underline; text-decoration-color: var(--gold); }
@media (min-width: 1024px) {
  .acc-details { grid-column: 1 / -1; }
}
/* =========================================================
   26. STAFF LOYALTY PAGE (admin-loyalty.html) — phone-friendly
   ========================================================= */
.adm-bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem var(--gutter); background: var(--onyx); color: var(--ivory); }
.adm-bar__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-label); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; }
.adm-bar__brand img { height: 30px; width: auto; background: var(--ivory); border-radius: 50%; padding: 3px; }
.adm-bar__tag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.adm-main { max-width: 760px; margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.adm-title { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: .5rem; }
.adm-lede { margin-bottom: 1.5rem; }
.adm-find { display: flex; gap: .5rem; }
.adm-find input { flex: 1; min-width: 0; min-height: 52px; padding: 0 1rem; font: inherit; font-size: 1rem; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--white); color: var(--onyx); }
.adm-find input:focus { outline: 0; box-shadow: 0 0 0 3px rgba(184,147,74,.2); }
.adm-find .btn { min-height: 52px; }
.adm-err { color: var(--error); margin: .6rem 0 0; min-height: 1.2em; }
.adm-member { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 1.5rem 0; }
.adm-member .member-card { flex: 1 1 280px; max-width: 380px; }
.adm-balance { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; color: var(--onyx); display: flex; flex-direction: column; }
.adm-balance small { font-family: var(--font-label); font-size: .65rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); margin-top: .4rem; }
.adm-panel { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 1.5rem 1.25rem; margin-bottom: 1.25rem; }
.adm-panel h2 { font-size: 1.5rem; padding-bottom: .75rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--gold); }
.adm-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 600px) {
  .adm-grid { grid-template-columns: 1fr 1fr; }
  .adm-panel { padding: 2rem; }
}
.adm-form select { min-height: 48px; width: 100%; padding: 0 .9rem; font: inherit; color: var(--onyx); background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); }
.adm-form .btn { width: 100%; }
.adm-preview { background: var(--ivory); border-left: 3px solid var(--gold); padding: .75rem 1rem; margin-bottom: 1rem; }
.adm-preview strong { color: var(--onyx); }
.adm-ok { margin: .9rem 0 0; color: var(--success); font-weight: 500; min-height: 1.2em; }
.adm-ok.is-err { color: var(--error); }
.adm-foot { font-size: .9rem; margin-top: 2rem; }
.adm-foot a { color: var(--onyx); text-decoration: underline; text-decoration-color: var(--gold); }
@media (max-width: 599px) {
  .acc-rw__item { grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .acc-rw__pts { grid-column: 1; }
  .acc-rw__name { grid-column: 1; grid-row: 2; }
  .acc-rw__btn { grid-column: 2; grid-row: 1 / span 2; }
  .acc-card { aspect-ratio: auto; min-height: 170px; }
}
/* =========================================================
   27. LOGIN & PASSWORD FIELDS
   ========================================================= */
.field__hint { margin: 0; font-size: .78rem; color: var(--graphite); }
.login-card { max-width: 440px; }
.login-err { min-height: 1.3em; margin: -.25rem 0 0; }
.login-card .star-divider { margin: .25rem 0; }
/* ---- join.html: dedicated registration link ---- */
@media (max-width: 1023px) {
  .join-hero .loy-hero__inner { padding-top: 1.25rem; }
  .join-hero .loy-card { order: -1; }
  /* form first on phones */
  .join-hero .loy-hero__title { font-size: clamp(2.2rem, 8vw, 3rem); }
}
.loy-hero__signin a + a { margin-left: 0; }
/* =========================================================
   28. REFER & REWARD
   ========================================================= */
.ref-state[hidden] { display: none; }
.ref-actions { display: grid; gap: .6rem; }
.ref-hello { text-align: left; margin-bottom: 1rem; }
.ref-link { display: flex; gap: .5rem; }
.ref-link input { flex: 1; min-width: 0; min-height: 48px; padding: 0 .8rem; font: inherit; font-size: .88rem; color: var(--onyx); background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); }
.ref-link .btn { min-height: 48px; padding: .6rem 1.1rem; }
.ref-code { margin: .6rem 0 1rem; font-size: .88rem; }
.ref-code strong { color: var(--onyx); letter-spacing: .1em; }
.ref-share { display: flex; flex-wrap: wrap; gap: .5rem; }
.ref-share .btn { flex: 1 1 auto; gap: .5rem; min-height: 46px; padding: .6rem 1rem; }
.ref-share__wa { background: #1f7a4d; color: #fff; }
.ref-share__wa:hover { background: #18633e; }
.ref-share__ig { background: var(--onyx); color: var(--gold-light); }
.ref-share__ig:hover { background: #2a2a2a; }
.ref-msg { text-align: left; margin: .6rem 0 0; min-height: 1.2em; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.25rem 0 1rem; }
.ref-stats div { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: .75rem .5rem; text-align: center; }
.ref-stats dt { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.ref-stats dd { margin: .2rem 0 0; font-family: var(--font-display); font-size: 1.8rem; color: var(--onyx); line-height: 1; }
.ref-dash { font-size: .88rem; color: var(--onyx); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ref-invite { background: #faf6ec; border-left: 3px solid var(--gold); padding: .85rem 1rem; margin: 0 0 1.25rem; font-size: .92rem; color: var(--onyx); }
.ref-invite span { color: var(--gold); }
.ref-welcome { color: var(--success); font-weight: 500; }
.acc-refer__lead { margin-bottom: 1rem; }
.acc-refer .ref-share { margin: .6rem 0 0; }
.acc-refs { margin-top: 1rem; }
@media (min-width: 1024px) {
  .acc-refer { grid-column: 1 / -1; }
}
/* perks list: keep bold words inline with the sentence */
.loy-perks li { display: block; position: relative; padding-left: 1.4rem; }
.loy-perks li > span:first-child { position: absolute; left: 0; top: .15em; }
.loy-hero__inner > * { min-width: 0; }
.ref-link input { width: 100%; }
@media (max-width: 420px) {
  .ref-share .btn { flex: 1 1 100%; }
}
