/* RUMA v3 · account area. Owned by the account agent; reads tokens.css vars only.
   My RUMA (today / concierge, membership card, favourites, continue the feeling),
   the cancellation screens, the booking confirmation and the auth pages. */

/* ---------- My RUMA head ---------- */
.theme-v3 .v3-acct-head .label { display: block; margin-bottom: 14px; color: var(--candle-soft); }

/* ---------- today: concierge + membership card ---------- */
.theme-v3 .acct-today { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; margin-bottom: clamp(56px, 7vw, 96px); }
.theme-v3 .acct-today.has-card { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
@media (max-width: 960px) { .theme-v3 .acct-today.has-card { grid-template-columns: minmax(0, 1fr); } }

.theme-v3 .today__core {
  padding: clamp(24px, 4vw, 56px); display: grid; gap: 18px; justify-items: start;
  background: radial-gradient(90% 120% at 0% 0%, rgb(var(--flame-rgb) / .12), transparent 60%), var(--ember);
}
.theme-v3 .today__core > .label { color: var(--candle-soft); }
.theme-v3 .today__title { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h2); line-height: 1.02; color: var(--text-strong); }
.theme-v3 .today__title em { font-style: italic; color: var(--candle-soft); }
.theme-v3 .today__lede { font-size: clamp(1.1rem, 1.3vw, 1.25rem); color: var(--text); }
.theme-v3 .today__actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 6px; width: 100%; }
.theme-v3 .today__actions .cancel { justify-items: start; }
.theme-v3 .today__actions .cancel[open] { flex-basis: 100%; }

/* the concierge list */
.theme-v3 .visit { display: grid; width: 100%; margin: 6px 0 0; border-top: 1px solid var(--line); }
.theme-v3 .visit__row { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.theme-v3 .visit dt { font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 3px; }
.theme-v3 .visit dd { margin: 0; color: var(--text-strong); display: grid; gap: 4px; justify-items: start; }
.theme-v3 .visit__class { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; text-decoration: none; color: var(--text-strong); }
.theme-v3 .visit__class:hover { color: var(--candle-soft); }
.theme-v3 .visit__note { font-size: var(--fs-small); color: var(--muted); }
.theme-v3 .visit__dir, .theme-v3 .visit__more { display: inline-flex; min-height: 44px; align-items: center; font-size: var(--fs-small); }
@media (max-width: 560px) { .theme-v3 .visit__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- digital membership card (brief 277–286) ---------- */
.theme-v3 .mcard {
  position: relative; aspect-ratio: 1.586; width: 100%; max-width: 440px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-core); color: var(--text-strong);
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(var(--flame-rgb) / .2), transparent 55%),
    linear-gradient(155deg, var(--ember-2), var(--night-deep));
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 60px -30px rgb(var(--deep-rgb) / .7);
}
.theme-v3 .mcard::after { /* a thin inner frame, like a printed card */
  content: ""; position: absolute; inset: 10px; border-radius: calc(var(--r-core) - 8px);
  box-shadow: inset 0 0 0 1px rgb(var(--flame-rgb) / .16); pointer-events: none;
}
.theme-v3 .mcard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.theme-v3 .mcard__word { width: clamp(92px, 9vw, 120px); height: auto; color: var(--text-strong); }
.theme-v3 .mcard__word--text { font-family: var(--font-display); letter-spacing: .3em; font-size: 1.35rem; }
.theme-v3 .mcard__mark { width: 44px; height: 44px; object-fit: contain; opacity: .95; }
.theme-v3 .mcard__body { align-self: end; display: grid; gap: 4px; margin: 0; }
.theme-v3 .mcard__body dd { margin: 0; }
.theme-v3 .mcard__name { font-size: clamp(1rem, 1.3vw, 1.15rem); letter-spacing: .16em; font-weight: 500; }
.theme-v3 .mcard__plan { font-size: var(--fs-micro); letter-spacing: .2em; color: var(--candle-soft); }
.theme-v3 .mcard__since { font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); margin-top: 10px !important; }
.theme-v3 .mcard__status { position: absolute; right: clamp(20px, 2.6vw, 30px); bottom: clamp(20px, 2.6vw, 30px); font-size: var(--fs-micro); color: var(--warn-ink); }

/* ---------- main column ---------- */
.theme-v3 .acct-main { min-width: 0; }
.theme-v3 .acct-count { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.theme-v3 .acct-count b { font-family: var(--font-display); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--candle-soft); }

.theme-v3 .fav__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 28px; margin: 0 0 20px; }
.theme-v3 .fav__facts dt { font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.theme-v3 .fav__facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.45rem; color: var(--text-strong); }
.theme-v3 .fav__facts dd a { text-decoration: none; }
.theme-v3 .fav__facts dd a:hover { color: var(--candle-soft); }

.theme-v3 .try { padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.theme-v3 .try__title { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h3); color: var(--text-strong); }
.theme-v3 .try__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.theme-v3 .try__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong); text-decoration: none; color: var(--text-strong);
  transition: background-color .3s var(--ease-warm), color .3s var(--ease-warm);
}
@media (hover: hover) { .theme-v3 .try__list a:hover { background: rgb(var(--flame-rgb) / .12); color: var(--candle-soft); } }

.theme-v3 .feel { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-shell); background: var(--ember); box-shadow: inset 0 0 0 1px var(--line); }
.theme-v3 .feel__title { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h3); color: var(--text-strong); margin-bottom: 14px; }
.theme-v3 .feel__title em { font-style: italic; color: var(--candle-soft); }
.theme-v3 .feel__list { list-style: none; margin: 0; padding: 0; }
.theme-v3 .feel__list li + li { border-top: 1px solid var(--line); }
.theme-v3 .feel__list a {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 4px 20px; align-items: center;
  min-height: 56px; padding: 12px 0; text-decoration: none; color: var(--text);
}
/* Small candlelit thumbnails (web photos, decorative): the link text carries the meaning. */
.theme-v3 .feel__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-field); background: var(--night); box-shadow: inset 0 0 0 1px var(--line); }
.theme-v3 .feel__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.82) brightness(.86) sepia(.08); transition: filter .5s var(--ease-warm), scale .8s var(--ease-warm); }
.theme-v3 .feel__txt { display: grid; gap: 2px; }
.theme-v3 .feel__word { font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--candle-soft); font-weight: 500; }
.theme-v3 .feel__list svg { width: 16px; height: 16px; transition: translate .3s var(--ease-warm); }
@media (hover: hover) {
  .theme-v3 .feel__list a:hover { color: var(--text-strong); }
  .theme-v3 .feel__list a:hover svg { translate: 4px 0; }
  .theme-v3 .feel__list a:hover .feel__img img { filter: saturate(.95) brightness(.98) sepia(.04); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .theme-v3 .feel__list a:hover .feel__img img { scale: 1.05; } }
@media (max-width: 480px) { .theme-v3 .feel__list a { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 14px; } }

.theme-v3 .acct-me { margin-top: 12px; }

/* ---------- cancellation screens (brief 1479–1486, 1606–1614) ---------- */
.theme-v3 .v3-cancel .cancel__box { width: min(420px, 100%); gap: 10px; padding: 22px; }
.theme-v3 .v3-cancel .cancel__box:focus { outline: none; }
.theme-v3 .v3-cancel .cancel__box:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; }
.theme-v3 .cancel__title { font-family: var(--font-display); font-size: 1.5rem !important; line-height: 1.15; color: var(--text-strong) !important; }
.theme-v3 .cancel__fact { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 500; }
.theme-v3 .cancel__choices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.theme-v3 .cancel__or { font-family: var(--font-display); font-style: italic; color: var(--muted); }
@media (max-width: 640px) { .theme-v3 .v3-cancel .cancel__box { width: 100%; } }

.theme-v3 .before-go { margin-top: 6px; }
.theme-v3 .before-go > summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none;
  font-size: var(--fs-small); color: var(--muted); text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--line-strong);
}
.theme-v3 .before-go > summary::-webkit-details-marker { display: none; }
.theme-v3 .before-go__box { margin-top: 8px; padding: 20px; border-radius: var(--r-core); background: var(--ember-2); box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; gap: 12px; }
.theme-v3 .before-go__box p { font-size: var(--fs-small); }
.theme-v3 .before-go__title { font-family: var(--font-display); font-size: 1.5rem !important; color: var(--text-strong); }
.theme-v3 .before-go .linkbtn { min-height: 44px; }

/* ---------- booking confirmation (brief 155–167, 1846–1863) ---------- */
.theme-v3 .checkout-done { padding-top: clamp(40px, 6vw, 88px); }
.theme-v3 .confirmed { position: relative; }
.theme-v3 .confirmed__core {
  padding: clamp(26px, 5vw, 64px); display: grid; gap: 20px; justify-items: start; position: relative;
  background: radial-gradient(70% 90% at 50% 0%, rgb(var(--flame-rgb) / .16), transparent 65%), var(--ember);
}
.theme-v3 .confirmed__mark { width: 56px; height: 56px; object-fit: contain; }
.theme-v3 .confirmed__head { display: grid; gap: 10px; }
.theme-v3 .confirmed__title { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h1-page); line-height: 1; color: var(--text-strong); }
.theme-v3 .confirmed__title em { display: block; font-style: italic; color: var(--candle-soft); font-size: .62em; margin-top: .25em; }
.theme-v3 .confirmed__mat { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--candle-soft); }
.theme-v3 .confirmed__actions { gap: 12px; }
.theme-v3 .confirmed__until { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--muted); text-align: center; }
.theme-v3 .confirmed__veil {
  position: absolute; inset: 8px; z-index: 2; display: grid; place-items: center; border-radius: var(--r-core);
  background: var(--ember); pointer-events: none; opacity: 0; visibility: hidden;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--candle-soft); text-align: center; padding: 24px;
}
/* The veil plays once, only when motion is welcome; content is in the DOM throughout. */
@media (prefers-reduced-motion: no-preference) {
  .theme-v3 .confirmed:not(.is-seen) .confirmed__veil { animation: v3-acct-veil 2.1s var(--ease-warm) both; }
  .theme-v3 .confirmed:not(.is-seen) .confirmed__veil span { display: inline-block; animation: v3-acct-breath 2.1s var(--ease-inout) both; }
  .theme-v3 .confirmed:not(.is-seen) .confirmed__core > * { animation: v3-acct-arrive .9s var(--ease-out) both; animation-delay: calc(1.5s + var(--i, 0) * 90ms); }
  .theme-v3 .confirmed__core > :nth-child(2) { --i: 1; }
  .theme-v3 .confirmed__core > :nth-child(3) { --i: 2; }
  .theme-v3 .confirmed__core > :nth-child(4) { --i: 3; }
  .theme-v3 .confirmed__core > :nth-child(n+5) { --i: 4; }
}
@keyframes v3-acct-veil { 0% { opacity: 0; visibility: visible; } 18% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes v3-acct-breath { 0% { scale: .97; opacity: .6; } 60% { scale: 1; opacity: 1; } 100% { scale: 1.02; opacity: 1; } }
@keyframes v3-acct-arrive { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

.theme-v3 .checkout-paid p { font-size: var(--fs-small); }
.theme-v3 .checkout-wait { position: relative; }
.theme-v3 .checkout-wait__flame { display: block; width: 18px; color: var(--candle); }
.theme-v3 .checkout-wait__flame .flame { width: 18px; height: auto; }

/* ---------- auth pages ---------- */
.theme-v3 .auth__sub { display: block; margin-top: 8px; font-size: var(--fs-body); color: var(--muted); }
.theme-v3 .v3-auth__plate { width: 100%; justify-self: stretch; }
.theme-v3 .v3-auth__plate .plate__media { border-radius: 50% / 42%; overflow: hidden; }
.theme-v3 .v3-auth__plate .plate__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- wide screens (round 2) ---------- */
/* Your reservations: coming up | past side by side once there's room. */
.theme-v3 .acct-lists { display: grid; gap: clamp(48px, 5vw, 72px) clamp(32px, 4vw, 80px); align-items: start; }
@media (min-width: 1100px) {
  .theme-v3 .acct-lists { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .theme-v3 .acct-lists > section:first-child { position: sticky; top: calc(var(--head-h) + 24px); }
}
.theme-v3 .acct-back { margin-top: clamp(40px, 5vw, 64px); }
/* Checkout return: a calm reading column, a little wider on big screens. */
.theme-v3 .checkout-body { max-width: 42rem; }
@media (min-width: 1440px) { .theme-v3 .checkout-body { max-width: 48rem; } }
/* Auth plates breathe more on large screens. */
@media (min-width: 1440px) { .theme-v3 .auth__plate { max-width: 540px; } }
.theme-v3 .bk__date small { white-space: nowrap; }
/* Password / confirmation / details: on phones the form comes first, no plate above it. */
@media (max-width: 600px) { .theme-v3 .v3-auth__plate--task { display: none; } }
