/* ==========================================================================
   MOTRIX — Atelier pictură 3D (tarot cards, model window, rank bar, booking)
   Uses the theme tokens; gold accents give the cards their tarot look.
   ========================================================================== */

.page-atelier {
  --gold: #d9b65c;
  --gold-soft: rgba(217, 182, 92, 0.55);
  --gold-faint: rgba(217, 182, 92, 0.14);
  --card-ink: #170d26;
  --badge: #facc15;
}

.atelier-intro { margin-bottom: var(--sp-7); }

/* --- How it works -------------------------------------------------------- */
.atelier-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .atelier-steps { grid-template-columns: repeat(3, 1fr); } }
.atelier-step { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: var(--sp-6); }
.atelier-step__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-lime); color: var(--c-ink); font-weight: 900; font-size: 1.2rem; margin-bottom: var(--sp-3);
}
.atelier-step__title { font-family: var(--font-display); font-size: var(--fs-lead); margin: 0 0 var(--sp-2); color: var(--c-text); }
.atelier-step p { margin: 0; color: var(--c-text-soft); }

/* --- Price tiles ---------------------------------------------------------- */
.price-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .price-tiles { grid-template-columns: repeat(3, 1fr); } }
.price-tile {
  display: grid; gap: 6px; align-content: start;
  padding: var(--sp-6);
  border-radius: var(--r-card);
  background: radial-gradient(circle at 80% 0%, rgba(187, 243, 81, 0.16), transparent 55%), var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-top: 4px solid var(--c-lime);
}
.price-tile--creaturi { border-top-color: #22d3ee; }
.price-tile--epice { border-top-color: var(--gold); }
.price-tile__name { font-family: var(--font-display); font-weight: 800; color: var(--c-text); font-size: var(--fs-lead); }
.price-tile__price { color: var(--c-lime); font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; line-height: 1; }
.price-tile__price strong { font-size: clamp(3rem, 7vw, 4.2rem); letter-spacing: -0.03em; }
.price-tile__unit { color: var(--c-text-soft); font-weight: 600; }
.price-tile__examples { color: var(--c-text-mute); font-size: var(--fs-small); }

/* --- Deck & categories --------------------------------------------------- */
.tarot-deck { display: grid; gap: var(--sp-9); }
.tarot-category__head { margin-bottom: var(--sp-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.tarot-category__head .headline { margin: 0; }
.tarot-category__head .lead { margin: 0; flex-basis: 100%; }
.tarot-category__price {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 4px 16px; border-radius: var(--r-pill);
  background: var(--c-lime); color: var(--c-ink);
  font-weight: 700; box-shadow: 0 0 24px rgba(187, 243, 81, 0.35);
}
.tarot-category__price strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.tarot-category__price small { font-size: 0.8rem; opacity: 0.75; }
.tarot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--sp-6) var(--sp-5); }
@media (max-width: 520px) { .tarot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-3); } }

/* --- Tarot card ---------------------------------------------------------- */
.tarot-card {
  position: relative; aspect-ratio: 7 / 12; perspective: 1400px; cursor: pointer; outline: none;
  opacity: 0; transform: translateY(48px) rotate(-7deg) scale(0.9);
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.tarot-card.is-dealt { opacity: 1; transform: none; }
.tarot-card:focus-visible { outline: 3px solid var(--c-lime); outline-offset: 4px; border-radius: 16px; }

.tarot-card__inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.45, 0.05, 0.2, 1.15);
}
/* Gallery: flip on hover. Booking: the + / − is on the front, so the card flips with ↻ / a tap instead. */
@media (hover: hover) {
  [data-mode='gallery'] .tarot-card:hover .tarot-card__inner,
  [data-mode='gallery'] .tarot-card:focus-within .tarot-card__inner { transform: rotateY(180deg); }
  .tarot-card:hover { z-index: 2; }
  [data-mode='select'] .tarot-card.is-dealt:hover { transform: translateY(-6px); transition-delay: 0s; }
}
.tarot-card.is-flipped .tarot-card__inner { transform: rotateY(180deg); }

.tarot-card__face {
  position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 16px; overflow: hidden; border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 6px var(--card-ink), inset 0 0 0 7px var(--gold-soft), 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.3s, border-color 0.3s;
}

/* front */
.tarot-card__front {
  display: flex; flex-direction: column; align-items: center; padding: 16px 14px 14px;
  background:
    radial-gradient(circle at 50% 42%, rgba(124, 58, 237, 0.35) 0%, rgba(124, 58, 237, 0) 55%),
    radial-gradient(circle at 50% 120%, rgba(187, 243, 81, 0.18) 0%, rgba(187, 243, 81, 0) 45%),
    linear-gradient(180deg, #2a1745 0%, var(--card-ink) 100%);
}
.tarot-card__front::before, .tarot-card__front::after,
.tarot-card__back::before, .tarot-card__back::after {
  content: '✦'; position: absolute; color: var(--gold); font-size: 12px; line-height: 1; opacity: 0.9;
}
.tarot-card__front::before, .tarot-card__back::before { top: 12px; left: 13px; }
.tarot-card__front::after, .tarot-card__back::after { bottom: 12px; right: 13px; }

.tarot-card__numeral {
  font-family: Georgia, 'Times New Roman', serif; color: var(--gold); letter-spacing: 0.25em;
  font-size: 0.85rem; padding: 2px 10px 4px; border-bottom: 1px solid var(--gold-soft);
}
.tarot-card__art { flex: 1; position: relative; width: 100%; display: grid; place-items: center; min-height: 0; }
.tarot-card__halo {
  position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 243, 81, 0.28) 0%, rgba(187, 243, 81, 0.05) 55%, rgba(187, 243, 81, 0) 70%);
  border: 1px solid var(--gold-faint);
  box-shadow: 0 0 0 10px rgba(217, 182, 92, 0.05), 0 0 0 22px rgba(217, 182, 92, 0.03);
  animation: tarot-halo 6s ease-in-out infinite;
}
@keyframes tarot-halo { 0%, 100% { transform: scale(0.96); opacity: 0.85; } 50% { transform: scale(1.04); opacity: 1; } }
.tarot-card__art img {
  position: relative; width: 96%; max-height: 100%; object-fit: contain; height: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) { .tarot-card:hover .tarot-card__art img { transform: scale(1.05); } }
.tarot-card__banner {
  width: 100%; text-align: center; padding: 7px 4px;
  border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft);
  background: linear-gradient(90deg, transparent, var(--gold-faint), transparent);
}
.tarot-card__name { font-family: Georgia, 'Times New Roman', serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; color: #f4e4ae; }

/* price — always prominent */
.tarot-card__price {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 2px;
  font-size: 0.8rem; font-weight: 800; color: var(--c-ink);
  background: var(--c-lime); padding: 3px 10px; border-radius: var(--r-pill);
  box-shadow: 0 0 18px rgba(187, 243, 81, 0.45), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.tarot-card__price strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.tarot-card__bigprice { margin: 0; color: var(--c-lime); font-weight: 800; font-size: 1rem; }
.tarot-card__bigprice strong { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }

/* quantity badge — big, so the cart is obvious at a glance */
.tarot-card__badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  min-width: 52px; height: 52px; padding: 0 10px;
  display: grid; place-items: center; border-radius: 26px;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--c-ink);
  background: var(--badge); border: 3px solid #fff8d6;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.25), 0 0 26px rgba(250, 204, 21, 0.75);
}
.tarot-card__badge[hidden] { display: none; }
.tarot-card__badge.is-bump { animation: badge-bump 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.4); }
@keyframes badge-bump { 0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* flip button (booking cards) */
.tarot-card__flip {
  position: absolute; bottom: 10px; left: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold-soft); background: rgba(0, 0, 0, 0.45); color: #f4e4ae;
  font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.tarot-card__flip:hover { border-color: var(--c-lime); color: var(--c-lime); }

/* back */
.tarot-card__back {
  transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 7px; padding: 22px 14px 18px;
  background:
    repeating-conic-gradient(from 0deg at 50% 22%, rgba(217, 182, 92, 0.07) 0 9deg, transparent 9deg 18deg),
    radial-gradient(circle at 50% 22%, #3a2160 0%, var(--card-ink) 72%);
}
.tarot-card__emblem {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--c-lime); font-family: var(--font-display); font-weight: 900; font-size: 1.4rem;
  background: radial-gradient(circle, #2a1745, var(--card-ink));
  box-shadow: 0 0 0 6px rgba(217, 182, 92, 0.1), 0 0 26px rgba(187, 243, 81, 0.25);
}
.tarot-card__title { font-family: Georgia, 'Times New Roman', serif; color: #f4e4ae; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.88rem; margin: 2px 0 0; }
.tarot-card__desc {
  font-size: 0.8rem; line-height: 1.4; color: var(--c-text-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.tarot-card__meta { font-size: 0.78rem; color: var(--gold); margin: 0; }
.tarot-card__actions { margin-top: auto; display: grid; gap: 8px; width: 100%; justify-items: center; }
.tarot-card__link { background: none; border: 0; padding: 0; color: var(--c-lime); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.78rem; }

/* selected (booking) */
.tarot-card.is-selected .tarot-card__face {
  border-color: var(--c-lime);
  box-shadow: inset 0 0 0 6px var(--card-ink), inset 0 0 0 7px rgba(187, 243, 81, 0.7), 0 0 0 3px rgba(187, 243, 81, 0.35), 0 0 34px rgba(187, 243, 81, 0.35);
}
.tarot-card.is-chosen { animation: tarot-spin 0.8s cubic-bezier(0.3, 0.7, 0.2, 1); }
@keyframes tarot-spin {
  0% { transform: perspective(1200px) rotateY(0) scale(1); }
  50% { transform: perspective(1200px) rotateY(180deg) scale(1.06); }
  100% { transform: perspective(1200px) rotateY(360deg) scale(1); }
}

/* quantity control */
.tarot-qty {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid var(--gold-soft); border-radius: var(--r-pill); padding: 4px;
}
.tarot-qty__btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.14); color: var(--c-text);
  font-size: 1.3rem; font-weight: 900; line-height: 1; cursor: pointer; transition: transform var(--t-fast);
}
.tarot-qty__btn--plus { background: var(--c-lime); color: var(--c-ink); }
.tarot-qty__btn:active { transform: scale(0.88); }
.tarot-qty__value { min-width: 26px; text-align: center; font-weight: 900; color: var(--c-text); font-size: 1.1rem; }
.tarot-qty--front { margin-top: 10px; }
.tarot-qty--lg .tarot-qty__btn { width: 46px; height: 46px; }

@media (max-width: 520px) {
  .tarot-card__front { padding: 12px 8px 10px; }
  .tarot-card__back { padding: 16px 9px 12px; gap: 5px; }
  .tarot-card__emblem { width: 38px; height: 38px; font-size: 1.05rem; }
  .tarot-card__desc { -webkit-line-clamp: 4; font-size: 0.74rem; }
  .tarot-card__name { font-size: 0.62rem; letter-spacing: 0.05em; }
  .tarot-card__price { top: 7px; right: 7px; padding: 2px 8px; }
  .tarot-card__price strong { font-size: 1.15rem; }
  .tarot-card__badge { min-width: 44px; height: 44px; font-size: 1.35rem; top: 6px; left: 6px; }
  .tarot-card__flip { width: 30px; height: 30px; bottom: 7px; left: 7px; }
  .tarot-qty--front { margin-top: 6px; gap: 3px; padding: 3px; }
  .tarot-qty--front .tarot-qty__btn { width: 32px; height: 32px; font-size: 1.15rem; }
  .tarot-card__bigprice strong { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-card, .tarot-card__inner, .tarot-card__art img { transition: none; }
  .tarot-card { opacity: 1; transform: none; }
  .tarot-card__halo, .tarot-card.is-chosen, .tarot-card__badge.is-bump { animation: none; }
}

/* --- Rank bar ------------------------------------------------------------ */
.tier-bar { position: relative; }
.tier-bar__rail { position: relative; }
.tier-bar__track {
  position: relative; height: 26px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--c-border); overflow: hidden;
}
.tier-bar__track::before { content: ''; position: absolute; inset: 0; background: var(--gradient-x); opacity: 0.16; }
.tier-bar__fill {
  position: absolute; inset: 0; background: var(--gradient-x);
  clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0 round 999px);
  transition: clip-path 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tier-bar__fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  background-size: 40% 100%; background-repeat: no-repeat; animation: tier-shine 2.6s linear infinite;
}
@keyframes tier-shine { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.tier-bar__points { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.tier-bar__point { position: absolute; left: var(--at); top: 50%; transform: translate(-50%, -50%); }
.tier-bar__dot {
  display: block; width: 34px; height: 34px; border-radius: 50%;
  border: 4px solid var(--c); background: var(--c-bg);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.tier-bar__point.is-reached .tier-bar__dot { background: var(--c); transform: scale(1.12); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08), 0 0 22px var(--c); }

.tier-bar__label {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 2px; text-align: center;
  width: max-content; max-width: 170px;
}
.tier-bar__name { font-family: var(--font-display); font-weight: 800; color: var(--c); font-size: 0.95rem; white-space: nowrap; }
.tier-bar__amount { color: var(--c-text); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.tier-bar__amount strong { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; color: var(--c-text); }
.tier-bar__perks { display: grid; gap: 2px; }
.tier-bar__perks span {
  font-size: 0.78rem; font-weight: 700; color: var(--c-ink);
  background: var(--c); border-radius: var(--r-pill); padding: 2px 9px; white-space: nowrap;
}
.tier-bar__point:not(.is-reached) .tier-bar__perks span { background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c); }
.tier-bar__point.is-current .tier-bar__name::after { content: ' ★'; }

/* full bar, horizontal (tablet/desktop): labels alternate above and below */
.tier-bar--full .tier-bar__rail { margin: 118px 0 118px; }
.tier-bar--full .tier-bar__point--up .tier-bar__label { bottom: calc(100% + 10px); }
.tier-bar--full .tier-bar__point--down .tier-bar__label { top: calc(100% + 10px); }
.tier-bar--full .tier-bar__point:last-child .tier-bar__label { left: auto; right: -14px; transform: none; justify-items: end; text-align: right; }

/* full bar, vertical on phones: perks always readable */
@media (max-width: 699px) {
  .tier-bar--full .tier-bar__rail { margin: 0; height: 430px; width: 100%; }
  .tier-bar--full .tier-bar__track { position: absolute; left: 14px; top: 0; bottom: 0; width: 26px; height: auto; }
  .tier-bar--full .tier-bar__track::before, .tier-bar--full .tier-bar__fill { background: var(--gradient-y); }
  .tier-bar--full .tier-bar__fill { clip-path: inset(0 0 calc(100% - var(--fill, 0%)) 0 round 999px); }
  .tier-bar--full .tier-bar__fill::after { display: none; }
  .tier-bar--full .tier-bar__point { left: 27px; top: var(--at); transform: translate(-50%, -50%); }
  .tier-bar--full .tier-bar__point .tier-bar__label,
  .tier-bar--full .tier-bar__point:last-child .tier-bar__label {
    left: 30px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%);
    justify-items: start; text-align: left; max-width: none;
    grid-template-columns: auto auto; column-gap: 10px; align-items: baseline;
  }
  .tier-bar--full .tier-bar__perks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
}

/* compact bar (sticky summary): name + amount, perks on wide screens */
.tier-bar--compact .tier-bar__rail { margin: 0 0 54px; }
.tier-bar--compact .tier-bar__track { height: 18px; }
.tier-bar--compact .tier-bar__dot { width: 26px; height: 26px; border-width: 3px; }
.tier-bar--compact .tier-bar__label { top: calc(100% + 6px); grid-auto-flow: column; align-items: baseline; gap: 6px; max-width: none; }
.tier-bar--compact .tier-bar__name { font-size: 0.8rem; }
.tier-bar--compact .tier-bar__amount strong { font-size: 1.15rem; }
.tier-bar--compact .tier-bar__perks { display: none; }
.tier-bar--compact .tier-bar__point:last-child .tier-bar__label { left: auto; right: -10px; transform: none; }
@media (max-width: 699px) {
  .tier-bar--compact .tier-bar__rail { margin-bottom: 30px; }
  .tier-bar--compact .tier-bar__name { display: none; }
  .tier-bar--compact .tier-bar__amount { font-size: 0.7rem; }
  .tier-bar--compact .tier-bar__amount strong { font-size: 1rem; }
  .tier-bar--compact .tier-bar__dot { width: 22px; height: 22px; }
}

/* rank boxes (smaller, 2 per row on phones) */
.tier-cards { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .tier-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier-card {
  position: relative; background: var(--c-surface); border: 1px solid var(--c-border); border-top: 4px solid var(--c);
  border-radius: 14px; padding: var(--sp-3) var(--sp-4); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.tier-card__level { display: block; font-size: 0.68rem; color: var(--c-text-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.tier-card__name { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--c); margin: 2px 0; }
.tier-card__amount { display: block; color: var(--c-text-soft); font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.tier-card__amount strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--c-text); }
.tier-card__perks { margin: 0; padding-left: 1em; color: var(--c-text); font-size: 0.78rem; font-weight: 600; display: grid; gap: 2px; }
.tier-card__perks li::marker { color: var(--c); }
.tier-card.is-active { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 30px color-mix(in srgb, var(--c) 35%, transparent); transform: translateY(-3px); }
.tier-card.is-active::after {
  content: 'Rangul tău'; position: absolute; top: -11px; right: 10px; background: var(--c); color: var(--c-ink);
  font-size: 0.66rem; font-weight: 900; padding: 2px 9px; border-radius: var(--r-pill);
}
.tier-card.is-levelup { animation: tier-levelup 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes tier-levelup { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-10px) scale(1.06); } 100% { transform: translateY(-3px) scale(1); } }

/* --- Booking page --------------------------------------------------------- */
.atelier-booking__step { margin: var(--sp-8) 0; }
.atelier-booking__step[hidden] { display: none; }
.atelier-booking__step:first-of-type { margin-top: 0; }
.atelier-booking__n {
  display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%;
  background: var(--c-lime); color: var(--c-ink); font-size: 0.8em; margin-right: 0.3em; vertical-align: 0.08em;
}
.atelier-booking__locked { padding: var(--sp-5); border: 1px dashed var(--c-border-strong); border-radius: var(--r-card); color: var(--c-text-mute); }
.atelier-booking__locked[hidden] { display: none; }
.atelier-tiers-static { margin: var(--sp-5) 0 var(--sp-8); }

.atelier-summary {
  position: sticky; bottom: 12px; z-index: 20; margin: var(--sp-7) 0;
  padding: var(--sp-4) var(--sp-5) var(--sp-4);
  background: rgba(27, 16, 41, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--c-border-strong); border-radius: var(--r-card); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s, transform 0.3s;
}
.atelier-summary[hidden] { display: none; }
.atelier-summary.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.atelier-summary__totals { display: flex; flex-wrap: wrap; gap: 4px var(--sp-4); align-items: baseline; justify-content: space-between; }
.atelier-summary__total { margin: 0; font-size: var(--fs-lead); color: var(--c-text); }
.atelier-summary__total strong { color: var(--c-lime); font-family: var(--font-display); font-size: 1.6em; }
.atelier-summary__hint { margin: 0; font-size: var(--fs-small); color: var(--c-text); font-weight: 600; }
@media (max-width: 520px) {
  .atelier-summary { padding: 10px 12px; bottom: 8px; }
  .atelier-summary__total { font-size: var(--fs-body); }
  .atelier-summary__hint { font-size: 0.76rem; }
}

.atelier-people { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.atelier-people__btn {
  width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--c-border-strong);
  background: var(--c-surface); color: var(--c-text); font: inherit; font-weight: 800; font-size: 1.1rem;
  cursor: pointer; transition: transform var(--t-fast), background var(--t-fast);
}
.atelier-people__btn:hover { transform: translateY(-2px); }
.atelier-people__btn.is-active { background: var(--c-lime); color: var(--c-ink); border-color: var(--c-lime); }

.atelier-contact { max-width: 640px; }
.atelier-booking .atelier-contact .motrix-form-group label { color: var(--c-text-soft) !important; font-weight: 600 !important; }
.atelier-booking .atelier-contact .motrix-form-group label input[type='checkbox'] { margin-right: 6px; }
.atelier-contact .motrix-form-group a { color: var(--c-lime); }
.atelier-recap { display: grid !important; gap: 4px; text-align: left; }
.atelier-recap strong { color: var(--c-lime); font-size: 1.4em; }

/* --- Model window -------------------------------------------------------- */
.atelier-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; }
.atelier-modal[hidden] { display: none; }
.atelier-modal-open { overflow: hidden; }
.atelier-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 5, 18, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.atelier-modal__dialog {
  position: relative; width: min(1100px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  display: grid; grid-template-columns: 1fr;
  background: linear-gradient(180deg, #24143a, #170d26); border: 2px solid #d9b65c; border-radius: 20px;
  box-shadow: inset 0 0 0 6px #170d26, inset 0 0 0 7px rgba(217, 182, 92, 0.5), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: atelier-modal-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes atelier-modal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .atelier-modal__dialog { grid-template-columns: 1.45fr 1fr; } }
.atelier-modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(217, 182, 92, 0.6); background: rgba(0, 0, 0, 0.4); color: #f4e4ae; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.atelier-modal__media { padding: 20px; display: grid; gap: 12px; align-content: start; }
.atelier-modal__info { padding: 24px; display: grid; gap: 10px; align-content: start; }
.atelier-modal__info p { margin: 0; color: var(--c-text-soft); }
.atelier-modal__info .headline { margin: 0; color: #f4e4ae; }
.atelier-modal__price { color: var(--c-lime) !important; font-weight: 800; font-size: 1.2rem; }
.atelier-modal__price strong { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.atelier-modal__price small { color: var(--c-text-soft); font-size: 0.85rem; font-weight: 600; }
.atelier-modal__perks { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.atelier-modal__perks li { position: relative; padding-left: 26px; color: var(--c-text); font-weight: 600; }
.atelier-modal__perks li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-lime); color: var(--c-ink); font-size: 0.75rem; font-weight: 900;
}
.atelier-modal__cta { margin-top: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.atelier-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.atelier-tabs button {
  border: 1px solid var(--c-border-strong); background: transparent; color: var(--c-text-soft);
  border-radius: var(--r-pill); padding: 6px 14px; font: inherit; font-weight: 700; font-size: var(--fs-small); cursor: pointer;
}
.atelier-tabs button.is-active { background: var(--c-lime); color: var(--c-ink); border-color: var(--c-lime); }
.atelier-pane[hidden] { display: none; }
.atelier-pane { position: relative; }
.atelier-viewer {
  display: block; width: 100%; height: min(58vh, 520px); border-radius: 14px;
  background: radial-gradient(circle at 50% 45%, rgba(124, 58, 237, 0.28), rgba(0, 0, 0, 0) 65%); cursor: grab;
}
.atelier-viewer:active { cursor: grabbing; }
.atelier-viewer__status { position: absolute; top: 45%; left: 0; right: 0; text-align: center; color: var(--c-text-soft); margin: 0; pointer-events: none; }
.atelier-viewer__status[hidden] { display: none; }
.atelier-paint { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.atelier-paint [hidden] { display: none; }
.atelier-paint__name { font-size: var(--fs-small); color: var(--c-text-soft); }
.atelier-video { width: 100%; border-radius: 14px; background: #241634; display: block; }
.atelier-video--real { max-height: 60vh; object-fit: contain; }
.atelier-photo { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 14px; background: #f3f1ec; display: block; }
.atelier-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.atelier-thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; background: #f3f1ec; cursor: pointer; flex: 0 0 72px; }
.atelier-thumb img { width: 72px; height: 72px; object-fit: contain; display: block; }
.atelier-thumb.is-active { border-color: var(--c-lime); }
@media (max-width: 899px) {
  .atelier-viewer { height: 46vh; }
  .atelier-modal { padding: 0; align-items: end; }
  .atelier-modal__dialog { max-height: 94vh; border-radius: 20px 20px 0 0; }
  .atelier-modal__media { padding: 52px 14px 6px; }
  .atelier-modal__info { padding: 10px 18px 24px; }
}

/* Phone fine-tuning: more room on the vertical bar; compact bar shows bare amounts. */
@media (max-width: 699px) {
  .tier-bar--full .tier-bar__rail { height: 540px; }
  .tier-bar--full .tier-bar__point .tier-bar__label,
  .tier-bar--full .tier-bar__point:last-child .tier-bar__label { left: 42px; }
  .tier-bar--compact .tier-bar__amount { font-size: 0; }
  .tier-bar--compact .tier-bar__amount strong { font-size: 1rem; }
}

/* --- Cumulative perks on the bar: new perks filled, included ones outlined --- */
.tier-bar__perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.tier-bar--full .tier-bar__label { max-width: 300px; }
.tier-bar--full .tier-bar__point:last-child .tier-bar__perks { justify-content: flex-end; }
.tier-bar__perks span.is-kept,
.tier-bar__point:not(.is-reached) .tier-bar__perks span.is-kept {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-text);
  box-shadow: inset 0 0 0 1.5px var(--c);
}
.tier-bar__perks span.is-new { background: var(--c); color: var(--c-ink); }
.tier-bar__point:not(.is-reached) .tier-bar__perks span.is-new {
  background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--c-text); box-shadow: inset 0 0 0 1.5px var(--c);
}
@media (min-width: 1100px) { .tier-bar--full .tier-bar__rail { margin: 165px 0 165px; } }
.tier-card__perks li.is-new { color: var(--c); font-weight: 800; }

/* Vertical bar up to 1100px (cumulative lists need the width). */
@media (max-width: 1099px) {
  .tier-bar--full .tier-bar__rail { margin: 0; height: 760px; width: 100%; }
  .tier-bar--full .tier-bar__track { position: absolute; left: 14px; top: 0; bottom: 0; width: 26px; height: auto; }
  .tier-bar--full .tier-bar__track::before, .tier-bar--full .tier-bar__fill { background: var(--gradient-y); }
  .tier-bar--full .tier-bar__fill { clip-path: inset(0 0 calc(100% - var(--fill, 0%)) 0 round 999px); }
  .tier-bar--full .tier-bar__fill::after { display: none; }
  .tier-bar--full .tier-bar__point { left: 27px; top: var(--at); transform: translate(-50%, -50%); }
  .tier-bar--full .tier-bar__point .tier-bar__label,
  .tier-bar--full .tier-bar__point:last-child .tier-bar__label {
    left: 42px; right: 0; width: auto; top: 50%; bottom: auto; transform: translateY(-50%);
    justify-items: start; text-align: left; max-width: none;
    grid-template-columns: auto auto; column-gap: 10px; align-items: baseline;
  }
  .tier-bar--full .tier-bar__perks,
  .tier-bar--full .tier-bar__point:last-child .tier-bar__perks { grid-column: 1 / -1; justify-content: flex-start; }
}

/* --- Perk chips: icon + text (desktop), icons only on the vertical bar ----- */
.tier-bar__perks span.tier-perk {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 700; border-radius: var(--r-pill); padding: 2px 10px 2px 6px;
}
.tier-perk__icon { font-size: 0.95rem; line-height: 1; }
.tier-perk.is-new .tier-perk__text::before { content: '+ '; }
.tier-perk.is-kept .tier-perk__text::before { content: '✓ '; }

@media (min-width: 1100px) {
  .tier-bar--full .tier-bar__rail { margin: 205px 0 215px; }
  .tier-bar--full .tier-bar__label { max-width: 200px; }
  .tier-bar--full .tier-bar__perks { flex-direction: column; align-items: center; flex-wrap: nowrap; }
  .tier-bar--full .tier-bar__point:last-child .tier-bar__perks { align-items: flex-end; }
}

@media (max-width: 1099px) {
  .tier-bar--full .tier-bar__rail { height: 640px; }
  .tier-bar--full .tier-bar__perks,
  .tier-bar--full .tier-bar__point:last-child .tier-bar__perks { flex-wrap: nowrap; gap: 5px; }
  .tier-bar__perks span.tier-perk { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .tier-perk__icon { font-size: 1.1rem; }
  .tier-perk__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tier-bar--full .tier-bar__amount strong { font-size: 1.45rem; }
}

/* Only the chip itself is a pill — not the icon / text inside it. */
.tier-bar__perks .tier-perk__icon,
.tier-bar__perks .tier-perk__text,
.tier-bar__point:not(.is-reached) .tier-bar__perks .tier-perk__icon,
.tier-bar__point:not(.is-reached) .tier-bar__perks .tier-perk__text {
  background: none; box-shadow: none; padding: 0; border-radius: 0; color: inherit; font-size: inherit;
}
.tier-bar__perks .tier-perk__icon { font-size: 0.95rem; }
@media (max-width: 1099px) { .tier-bar__perks .tier-perk__icon { font-size: 1.1rem; } }

/* --- Round 4 ----------------------------------------------------------------- */
/* Compact bar on wide screens: name above the amount, so Maestru and Legenda never overlap. */
@media (min-width: 700px) {
  .tier-bar--compact .tier-bar__rail { margin-bottom: 60px; }
  .tier-bar--compact .tier-bar__label { grid-auto-flow: row; gap: 0; justify-items: center; }
  .tier-bar--compact .tier-bar__point:last-child .tier-bar__label { justify-items: end; }
}

/* Vertical bar (phones/tablets): perks as text pills, one under another; own positions (--at-v). */
@media (max-width: 1099px) {
  .tier-bar--full .tier-bar__rail { height: 722px; margin: 6px 0 215px; }
  .tier-bar--full .tier-bar__point { top: var(--at-v); }
  .tier-bar--full .tier-bar__fill { clip-path: inset(0 0 calc(100% - var(--fill-v, 0%)) 0 round 999px); }
  .tier-bar--full .tier-bar__point .tier-bar__label,
  .tier-bar--full .tier-bar__point:last-child .tier-bar__label { top: -15px; transform: none; }
  .tier-bar--full .tier-bar__perks,
  .tier-bar--full .tier-bar__point:last-child .tier-bar__perks { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 4px; }
  .tier-bar__perks span.tier-perk { width: auto; height: auto; padding: 3px 12px 3px 8px; justify-content: flex-start; font-size: 0.82rem; }
  .tier-perk__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* Flip button: above the + / − on the front, top-right corner on the back. */
.tarot-card__front .tarot-card__flip { left: auto; right: 10px; bottom: 64px; }
.tarot-card__back .tarot-card__flip { left: auto; right: 10px; bottom: auto; top: 10px; }
@media (max-width: 520px) {
  .tarot-card__front .tarot-card__flip { right: 7px; bottom: 52px; }
  .tarot-card__back .tarot-card__flip { right: 7px; top: 7px; }
}
.atelier-photo__caption { margin: 6px 0 0; font-size: var(--fs-fine); color: var(--c-text-mute); }
.atelier-photo__caption[hidden] { display: none; }
/* Flip button sits in the picture's corner, clear of the name banner and the + / −. */
.tarot-card__front .tarot-card__flip { bottom: 104px; }
@media (max-width: 520px) { .tarot-card__front .tarot-card__flip { bottom: 88px; } }
.atelier-photo, .atelier-thumb { background: #241634; }
.atelier-thumb { border-color: rgba(255,255,255,0.12); }

/* Phones: the window fits the visible screen (svh/dvh, not vh — mobile vh includes the browser bar)
   and leaves a 56 px strip on top, where the close button is pinned: it never scrolls away. */
@media (max-width: 899px) {
  .atelier-modal__dialog { max-height: calc(100vh - 56px); max-height: calc(100svh - 56px); }
  .atelier-modal__close {
    position: fixed; top: calc(5px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 3;
    width: 46px; height: 46px; font-size: 1.7rem;
    background: rgba(23, 13, 38, 0.95); border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  }
  .atelier-modal__media { padding-top: 14px; }
}

/* Card back on phones: everything fits — no emblem, 3 full description lines that never get covered,
   size + price on one row, compact button, the two links side by side. */
.tarot-card__desc { flex-shrink: 0; }
.tarot-card__back .tarot-card__actions { flex-shrink: 0; }
@media (max-width: 520px) {
  .tarot-card__back { padding: 14px 9px 12px; gap: 5px; justify-content: flex-start; }
  .tarot-card__emblem { display: none; }
  .tarot-card__title { font-size: 0.74rem; line-height: 1.2; margin-top: 4px; }
  .tarot-card__desc { -webkit-line-clamp: 3; font-size: 0.72rem; line-height: 1.35; max-height: calc(3 * 1.35em); }
  .tarot-card__back .tarot-card__meta,
  .tarot-card__back .tarot-card__bigprice { display: inline; }
  .tarot-card__back .tarot-card__meta { font-size: 0.7rem; }
  .tarot-card__back .tarot-card__bigprice { font-size: 0.85rem; }
  .tarot-card__back .tarot-card__bigprice strong { font-size: 1.35rem; }
  .tarot-card__back .tarot-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
  .tarot-card__back .tarot-card__actions .btn { width: 100%; padding: 7px 10px; font-size: 0.78rem; min-height: 0; }
  .tarot-card__back .tarot-card__link { font-size: 0.72rem; }
  .tarot-card__back .tarot-qty { width: 100%; justify-content: center; }
}
.tarot-card__row { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
@media (max-width: 520px) { .tarot-card__row { flex-direction: row; align-items: baseline; justify-content: center; gap: 8px; } }
/* Booking cards: keep the title clear of the ↻ button in the back's corner. */
[data-mode='select'] .tarot-card__back .tarot-card__title { padding: 0 34px; }
@media (max-width: 520px) { [data-mode='select'] .tarot-card__back .tarot-card__title { padding: 0 26px; } }
/* Rank boxes: a coloured bullet before every perk (the theme removes list markers). */
.tier-card__perks { list-style: none; padding-left: 0; gap: 4px; }
.tier-card__perks li { position: relative; padding-left: 15px; }
.tier-card__perks li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 6px color-mix(in srgb, var(--c) 60%, transparent);
}

/* --- Current amount marker above the compact bar + animated total ------------ */
.tier-bar--compact .tier-bar__rail { margin-top: 34px; }
.tier-bar__marker {
  position: absolute; z-index: 3; bottom: calc(100% + 8px);
  left: clamp(30px, var(--fill, 0%), calc(100% - 30px)); transform: translateX(-50%);
  transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none;
}
.tier-bar__marker-value {
  position: relative; display: block; white-space: nowrap;
  background: var(--c-lime); color: var(--c-ink);
  font-family: var(--font-display); font-weight: 900; font-size: 0.85rem; line-height: 1;
  padding: 4px 10px; border-radius: var(--r-pill); box-shadow: 0 0 16px rgba(187, 243, 81, 0.5);
}
.tier-bar__marker-value::after {
  content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--c-lime); border-bottom: 0;
}
.atelier-summary__total { position: relative; }
[data-cart-total] { display: inline-block; transition: color 0.3s; }
[data-cart-total].is-up { animation: total-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1.4); }
[data-cart-total].is-down { animation: total-down 0.55s ease; }
@keyframes total-up { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: #fff; } 100% { transform: scale(1); } }
@keyframes total-down { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); color: #ff8a8a; } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } 100% { transform: none; } }
.atelier-summary__delta {
  position: absolute; left: 100%; top: -4px; margin-left: 8px; white-space: nowrap;
  font-weight: 900; font-size: 0.95rem; pointer-events: none; animation: delta-float 1.1s ease-out forwards;
}
.atelier-summary__delta.is-up { color: var(--c-lime); }
.atelier-summary__delta.is-down { color: #ff8a8a; }
@keyframes delta-float { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
@media (max-width: 699px) { .tier-bar--compact .tier-bar__rail { margin-top: 30px; } .tier-bar__marker-value { font-size: 0.8rem; } }
@media (prefers-reduced-motion: reduce) { .tier-bar__marker { transition: none; } [data-cart-total] { animation: none !important; } }

/* --- Full description on the card back; numeral and price side by side on phones --- */
.tarot-card__desc { display: block; -webkit-line-clamp: unset; max-height: none; overflow: visible; }
@media (max-width: 520px) {
  .tarot-card__numeral { letter-spacing: 0.08em; font-size: 0.78rem; padding: 2px 4px 3px; }
  .tarot-card__price { padding: 2px 7px; top: 8px; right: 6px; font-size: 0.7rem; }
  .tarot-card__price strong { font-size: 1.05rem; }

  .tarot-card__back { padding: 12px 8px 10px; gap: 4px; }
  .tarot-card__title { font-size: 0.7rem; }
  .tarot-card__desc { font-size: 0.7rem; line-height: 1.32; }
  .tarot-card__back .tarot-card__actions { margin-top: 6px; gap: 4px 8px; }
  .tarot-card__back .tarot-card__actions .btn { width: auto; padding: 5px 14px; font-size: 0.72rem; }
  .tarot-card__back .tarot-card__link { font-size: 0.64rem; }
  .tarot-card__back .tarot-qty { width: auto; }
  .tarot-card__back .tarot-qty .tarot-qty__btn { width: 30px; height: 30px; font-size: 1.05rem; }
  .tarot-card__back .tarot-card__bigprice strong { font-size: 1.2rem; }
}

/* --- "Apasă pentru detalii" on the front; size, price and buttons pinned to the bottom of the back --- */
.tarot-card__hint {
  display: block; margin-top: 3px; font-size: 0.66rem; letter-spacing: 0.04em; color: var(--c-lime); opacity: 0.85;
  animation: tarot-hint 2.4s ease-in-out infinite;
}
@keyframes tarot-hint { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tarot-card__hint { animation: none; } }
.tarot-card__front .tarot-card__flip { bottom: 118px; }
.tarot-card__back .tarot-card__row { margin-top: auto; }
.tarot-card__back .tarot-card__actions { margin-top: 6px; }
@media (max-width: 520px) {
  .tarot-card__hint { font-size: 0.58rem; margin-top: 2px; }
  .tarot-card__front .tarot-card__flip { bottom: 100px; }
}
@media (max-width: 520px) { .tarot-card__back { padding-bottom: 20px; } }

/* --- Compact "how it works" steps (less text at the top of the page, esp. on phones) --- */
.atelier-steps { gap: var(--sp-3); }
.atelier-step { padding: var(--sp-4) var(--sp-5); }
.atelier-step__title { font-size: 1.05rem; margin-bottom: 4px; }
.atelier-step p { font-size: 0.92rem; line-height: 1.45; }
.atelier-house { margin: var(--sp-4) 0 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, 2.2vw, 1.4rem); }
@media (max-width: 767px) {
  .atelier-steps { gap: 8px; }
  .atelier-step {
    display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start;
    padding: 12px 14px; border-radius: 14px;
  }
  .atelier-step__num { grid-row: span 2; margin: 0; width: 32px; height: 32px; font-size: 1rem; }
  .atelier-step__title { font-size: 0.98rem; margin: 2px 0 2px; }
  .atelier-step p { font-size: 0.84rem; line-height: 1.4; }
  .atelier-house { margin-top: 12px; }
}

/* Compact bar: what the current rank includes, beside the amount marker (owner Nov 2026) */
.tier-bar__marker-perks {
  position: absolute; bottom: 0; left: calc(100% + 10px);
  display: flex; flex-wrap: wrap-reverse; gap: 4px; width: max-content;
  transition: opacity 0.3s;
}
.tier-bar__marker.is-flip .tier-bar__marker-perks { left: auto; right: calc(100% + 10px); justify-content: flex-end; }
.tier-bar__marker-perks:empty { opacity: 0; }
.tier-bar__marker-perk {
  white-space: nowrap; font-size: 0.7rem; font-weight: 800; line-height: 1; padding: 4px 8px; border-radius: var(--r-pill);
  color: var(--c-text); background: color-mix(in srgb, var(--c) 22%, rgba(20, 12, 32, 0.9)); box-shadow: inset 0 0 0 1.5px var(--c);
}
@media (max-width: 699px) { .tier-bar__marker-perk { font-size: 0.62rem; padding: 3px 6px; } .tier-bar--compact .tier-bar__rail { margin-top: 46px; } }

/* Rank boxes: compact */
.tier-card { padding: 10px 12px; }
.tier-card__level { font-size: 0.62rem; }
.tier-card__name { font-size: 0.98rem; margin: 0; }
.tier-card__amount { margin-bottom: 4px; }
.tier-card__amount strong { font-size: 1.15rem; }
.tier-card__perks { font-size: 0.74rem; gap: 2px; line-height: 1.3; }
.tier-card__perks li { padding-left: 13px; }
.tier-card__perks li::before { top: 0.45em; width: 6px; height: 6px; }

/* --- "One more print" pop-up before sending an atelier booking ------------------ */
.upsell-open, .upsell-open body { overflow: hidden; }
.upsell-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.upsell-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 4, 16, 0.78); backdrop-filter: blur(4px); }
.upsell-modal__panel {
  position: relative; width: min(720px, 100%); max-height: calc(100svh - 32px); overflow-y: auto;
  padding: 26px 24px 20px; border-radius: 22px; text-align: center;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c) 28%, #1d1030) 0%, #1d1030 55%, #140a22 100%);
  border: 1px solid var(--c); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px color-mix(in srgb, var(--c) 30%, transparent);
  animation: offer-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.15);
}
@keyframes offer-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
.upsell-modal__kicker { margin: 0 0 4px; color: var(--c); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.upsell-modal__title { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.3rem, 3.4vw, 1.8rem); line-height: 1.15; }
.upsell-modal__ranks { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 800; color: var(--c-text-soft); }
.upsell-rank { padding: 5px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--c); color: var(--c-text); font-size: 0.85rem; }
.upsell-rank.is-next { background: var(--c); color: var(--c-ink); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 50%, transparent); }
.upsell-modal__label { margin: 0 0 8px; font-weight: 800; color: var(--c-text); }
.upsell-modal__perks { list-style: none; margin: 0 auto 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.upsell-modal__perks li {
  padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 0.9rem;
  background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--c);
}
.upsell-modal__models { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.upsell-model {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--c-border); background: rgba(255, 255, 255, 0.04); color: var(--c-text);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.upsell-model:hover, .upsell-model:focus-visible { transform: translateY(-3px); border-color: var(--c-lime); background: rgba(187, 243, 81, 0.08); }
.upsell-model:disabled { opacity: 0.5; cursor: wait; transform: none; }
.upsell-model img { width: 100%; max-width: 120px; height: auto; aspect-ratio: 1; object-fit: contain; }
.upsell-model__name { font-weight: 800; font-size: 0.85rem; line-height: 1.2; }
.upsell-model__price { font-weight: 900; color: var(--c-lime); }
.upsell-modal__status { min-height: 1.2em; margin: 0 0 8px; color: var(--c-text-soft); font-size: 0.9rem; }
.upsell-modal__skip { margin-top: 4px; }
@media (max-width: 520px) { .upsell-modal__panel { padding: 22px 14px 16px; } .upsell-modal__models { grid-template-columns: repeat(2, 1fr); } }
.upsell-modal__perks li { color: var(--c-text); }
@media (max-width: 520px) {
  .upsell-modal__models { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .upsell-model { padding: 6px 4px 8px; }
  .upsell-model img { max-width: 72px; }
  .upsell-model__name { font-size: 0.7rem; }
  .upsell-model__price { font-size: 0.8rem; }
  .upsell-modal__title { font-size: 1.2rem; }
  .upsell-modal__perks li { padding: 6px 10px; font-size: 0.82rem; }
}
