/* ==========================================================
   Petal & Pin: design tokens
   ========================================================== */
:root {
  --ink: #2a1233;          /* aubergine: text + the offers band */
  --lilac: #ede4f5;        /* page background */
  --lilac-2: #dccdeb;      /* panels, borders */
  --hibiscus: #d42f6e;     /* main action, member tags */
  --hibiscus-d: #b0204f;
  --marigold: #f4b63e;     /* public offer tags */
  --brass: #c9a56b;        /* rail, frames */
  --mint: #d5efe7;         /* membership section */
  --paper: #fffbf7;        /* slip, tag backs, dialogs */
  --muted: #64536e;
  --danger: #8f1d1d;

  --display: 'Gloock', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--lilac); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul { padding: 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; max-width: 46ch; }

:focus-visible { outline: 3px solid var(--hibiscus); outline-offset: 3px; }
.rail-band :focus-visible { outline-color: var(--marigold); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem var(--body); padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--hibiscus); color: #fff; }
.btn-primary:hover { background: var(--hibiscus-d); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #6f1414; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn[hidden] { display: none; }
.btn-small { padding: 8px 16px; font-size: .92rem; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad); background: var(--lilac);
  border-bottom: 1px solid var(--lilac-2);
}
.brand { font-family: var(--display); font-size: 1.6rem; text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--hibiscus); }
.who { display: flex; align-items: center; gap: 12px; }
.who-name { font-weight: 600; }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--mint); }
.pill-owner { background: var(--marigold); }
.linklike { background: none; border: 0; padding: 4px; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 6vw, 90px);
  align-items: center; padding: clamp(40px, 8vw, 96px) var(--pad);
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: -.01em; margin-bottom: 24px; max-width: 11ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.mirror {
  justify-self: center; width: min(100%, 340px); aspect-ratio: 3 / 4;
  padding: 12px; border-radius: 999px 999px 26px 26px;
  background: linear-gradient(145deg, #ecd6a6, #b98e4d 45%, #ecd6a6 70%, #a67c3d);
  box-shadow: 0 30px 50px -28px rgba(42, 18, 51, .55);
}
.mirror-glass {
  position: relative; overflow: hidden; height: 100%;
  border-radius: 999px 999px 16px 16px; background: #f6f0fb;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  box-shadow: inset 0 0 0 2px rgba(42, 18, 51, .12);
}
.sheen {
  position: absolute; inset: -30% -60%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%);
  transform: translateX(calc(var(--mx, 0) * 32%)) ;
  transition: transform .18s ease-out;
}
.mirror-name { position: relative; font-family: var(--display); font-size: 2.2rem; line-height: 1.05; margin: 0 0 6px; }
.mirror-line { position: relative; margin: 0; color: var(--muted); font-weight: 500; }

/* ---------- Offers rail ---------- */
.rail-band { background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 6vw, 80px); }
.band-head { padding: 0 var(--pad); max-width: 900px; }
.band-note { color: #d9c9e6; margin: 10px 0 0; max-width: 60ch; }
.rail-scroll { overflow-x: auto; padding: 40px var(--pad) 16px; margin-top: 8px; }
.rail {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: flex; gap: 34px; width: max-content; min-width: 100%;
}
.rail::before { /* the brass rail */
  content: ''; position: absolute; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); top: 0; height: 12px; border-radius: 6px;
  background: linear-gradient(#f3e2ba, #c9a56b 45%, #8c6830);
  box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .55);
}
.tag-slot { position: relative; width: 220px; flex: none; }
.swing { position: relative; padding-top: 42px; transform-origin: 50% 0; }
.swing::before { /* the string */
  content: ''; position: absolute; top: 6px; left: 50%; width: 2px; height: 50px; margin-left: -1px; background: var(--brass);
}
.swing-in { animation: swing 2.4s ease-out both; animation-delay: calc(var(--i, 0) * 120ms); }
.tag-slot:hover .swing, .tag-slot:focus-within .swing { animation: nudge .9s ease-out; }
@keyframes swing {
  0% { transform: rotate(10deg); } 22% { transform: rotate(-6.5deg); } 44% { transform: rotate(3.8deg); }
  66% { transform: rotate(-2deg); } 84% { transform: rotate(.8deg); } 100% { transform: rotate(0); }
}
@keyframes nudge {
  0% { transform: rotate(0); } 25% { transform: rotate(3.5deg); } 55% { transform: rotate(-2deg); }
  80% { transform: rotate(.8deg); } 100% { transform: rotate(0); }
}

.tag { /* button: the whole tag flips on click */
  display: block; position: relative; width: 220px; height: 290px; padding: 0; border: 0; background: none;
  cursor: pointer; perspective: 1000px; font: inherit; color: inherit; text-align: left;
}
.tag-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.25, .45, 1); }
.tag[aria-pressed="true"] .tag-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: 58px 22px 22px; display: flex; flex-direction: column;
  clip-path: polygon(16% 0, 84% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  -webkit-mask: radial-gradient(circle 10px at 50% 27px, transparent 9.5px, #000 10.5px);
          mask: radial-gradient(circle 10px at 50% 27px, transparent 9.5px, #000 10.5px);
}
.face::after { /* stitched label edge */
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 10px; top: 48px;
  border: 1.5px dashed currentColor; opacity: .3; border-radius: 10px; pointer-events: none;
}
.face-back { transform: rotateY(180deg); }
.badge { font-family: var(--display); font-size: 2.7rem; line-height: 1; margin-bottom: 12px; overflow-wrap: anywhere; }
.tag-title { font-weight: 700; font-size: 1.12rem; line-height: 1.25; margin-bottom: auto; }
.tag-foot { font-size: .86rem; font-weight: 600; padding-top: 10px; }
.tag-text { font-size: .97rem; line-height: 1.5; overflow: auto; }
.tag-valid { margin-top: auto; font-size: .86rem; font-weight: 600; padding-top: 10px; }

.tag-public .face-front { background: var(--marigold); color: var(--ink); }
.tag-public .face-back { background: #fff3d6; color: var(--ink); }
.tag-members .face-front { background: var(--hibiscus); color: #fff; }
.tag-members .face-back { background: #fde3ec; color: var(--ink); }
.tag-locked .face { background: rgba(255, 255, 255, .07); color: #e8dcf2; }
.tag-locked .face::after { opacity: .5; }
.tag-locked svg { width: 40px; height: 40px; margin-bottom: 14px; }
.tag-expired { opacity: .5; filter: saturate(.4); }

.tag-remove {
  display: block; width: 100%; margin-top: 14px; padding: 9px 12px; cursor: pointer;
  font: 600 .9rem var(--body); color: var(--paper); background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 999px;
}
.tag-remove:hover { background: var(--danger); border-color: var(--danger); }
.empty { padding: 0 var(--pad); color: #d9c9e6; font-size: 1.1rem; }

/* ---------- Owner desk ---------- */
.owner-desk { padding: clamp(48px, 7vw, 88px) var(--pad); background: var(--lilac-2); }
.owner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.owner-desk .muted { max-width: 50ch; }
.form { display: grid; gap: 16px; margin-top: 20px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input:not([type="radio"]):not([type="checkbox"]), .form textarea {
  font: 400 1rem var(--body); color: var(--ink); background: #fff;
  border: 1.5px solid #a893ba; border-radius: 10px; padding: 12px 14px; width: 100%;
}
.form textarea { resize: vertical; }
.form-error { color: var(--danger); font-weight: 600; min-height: 1.2em; margin: 0; }
.hint { color: var(--muted); font-size: .9rem; margin: 0; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.seg legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 10px; border: 1.5px solid var(--ink); font-weight: 600; cursor: pointer; background: #fff; }
.seg label:first-of-type span { border-radius: 10px 0 0 10px; }
.seg label:last-of-type span { border-radius: 0 10px 10px 0; margin-left: -1.5px; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--hibiscus); outline-offset: 2px; }

.owner-side { display: grid; gap: 18px; min-width: 0; }
.owner-grid-second { margin-top: 56px; padding-top: 48px; border-top: 1px solid rgba(42, 18, 51, .15); }
.actions-start { justify-content: flex-start; }
.export-form { max-width: 420px; }

.service-manage-list { display: grid; gap: 22px; }
.service-cat-group h4 { margin: 0 0 10px; font: 700 .82rem/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.service-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--paper); padding: 12px 16px; border-radius: 10px; margin-bottom: 8px;
}
.service-row-unavailable { opacity: .6; }
.service-row-info { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.service-row .s-name { font-weight: 600; }
.service-row .s-mins { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.service-row .s-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-row button { font: 600 .85rem var(--body); padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; }
.service-row button:hover { background: var(--ink); color: var(--paper); }
.service-row .s-remove:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.service-empty { color: var(--muted); }

.row-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: var(--lilac-2); }
.row-thumb-empty { border: 1.5px dashed #a893ba; }

.menu-unavailable .name, .menu-unavailable .price { opacity: .55; }
.unavailable-badge { font-size: .88rem; font-weight: 600; color: var(--muted); padding: 8px 2px; white-space: nowrap; }
.menu-toggle { border-color: var(--brass); color: #8a6a2e; }
.menu-toggle:hover { background: var(--brass); color: var(--ink); }
.menu-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--lilac-2); }
.menu-thumb-empty { border: 1.5px dashed #a893ba; }
.file-input-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.preview-label { margin: 0; font-weight: 600; }
.rail-preview {
  background: var(--ink); border-radius: 18px; padding: 44px 24px 24px;
  width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; flex-wrap: nowrap;
}
.rail-preview::before { left: 0; right: 0; top: 14px; }
.rail-preview .swing { padding-top: 34px; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { background: var(--paper); padding: 12px 18px; border-radius: 12px; min-width: 130px; }
.stat b { display: block; font: 400 2rem/1.1 var(--display); }
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: 12px; }
.members { width: 100%; border-collapse: collapse; font-size: .95rem; }
.members th, .members td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--lilac-2); white-space: nowrap; }
.members th { font-weight: 700; }

/* ---------- Services + slip ---------- */
.services { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 6vw, 88px); padding: clamp(56px, 8vw, 104px) var(--pad); align-items: start; }
.services .muted { max-width: 52ch; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; }
.chip { font: 600 .98rem var(--body); padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--lilac-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu { list-style: none; margin: 0; }
.menu li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(42, 18, 51, .16); }
.menu .name { font-weight: 600; }
.menu .mins { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; }
.menu .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.add { min-width: 92px; font: 600 .9rem var(--body); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--hibiscus); color: var(--hibiscus); background: transparent; cursor: pointer; }
.add:hover { background: #f7d9e5; }
.add[aria-pressed="true"] { background: var(--hibiscus); color: #fff; }
.menu-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.menu-edit { min-width: auto; border-color: var(--ink); color: var(--ink); }
.menu-edit:hover { background: var(--ink); color: #fff; }
.menu-remove { min-width: auto; border-color: var(--danger); color: var(--danger); }
.menu-remove:hover { background: var(--danger); color: #fff; }

.slip-wrap { position: sticky; top: 92px; }
.slip { position: relative; background: var(--paper); padding: 26px 24px 30px; box-shadow: 0 18px 30px -22px rgba(42, 18, 51, .6); border-radius: 6px 6px 0 0; }
.slip::after { /* torn paper edge */
  content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9'%3E%3Cpath d='M0 0L9 9L18 0Z' fill='%23fffbf7'/%3E%3C/svg%3E") repeat-x;
}
.slip h3 { margin-bottom: 14px; }
.slip-list { list-style: none; margin: 0 0 14px; padding: 0; }
.slip-list li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed rgba(42, 18, 51, .25); }
.slip-list button { background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--muted); padding: 0 4px; }
.slip-list button:hover { color: var(--danger); }
.slip-empty { color: var(--muted); margin-bottom: 14px; }
.slip-row { display: flex; justify-content: space-between; margin: 4px 0; }
.slip-total { font: 400 1.7rem/1.2 var(--display); }
.slip .btn { width: 100%; margin-top: 16px; }

/* ---------- Membership ---------- */
.membership { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 88px); align-items: center; padding: clamp(56px, 8vw, 104px) var(--pad); background: var(--mint); }
.perks { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
.perks li { padding-left: 34px; position: relative; font-weight: 500; }
.perks li::before { content: '\2713'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.member-status { font-weight: 600; margin-bottom: 14px; }

.cardstage { perspective: 1100px; display: grid; place-items: center; padding: 10px; }
.mcard {
  position: relative; overflow: hidden; width: min(100%, 420px); aspect-ratio: 1.6;
  background: var(--ink); color: var(--paper); border-radius: 22px; padding: 26px 28px;
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 2px var(--brass) inset, 0 34px 44px -26px rgba(42, 18, 51, .8);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .15s ease-out; transform-style: preserve-3d;
}
.mcard-shine { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .25), transparent 46%); pointer-events: none; }
.mcard-brand { font-family: var(--display); font-size: 1.4rem; margin: 0; }
.mcard-title { margin: 2px 0 0; color: var(--brass); font-weight: 600; }
.mcard-name { margin: auto 0 2px; font-size: 1.35rem; font-weight: 600; }
.mcard-until { margin: 0; color: #d9c9e6; font-size: .95rem; }
.mcard.active { box-shadow: 0 0 0 3px var(--marigold) inset, 0 34px 44px -26px rgba(42, 18, 51, .8); }

/* ---------- Footer / toast ---------- */
.foot { padding: 34px var(--pad) 44px; background: var(--ink); color: #d9c9e6; }
.foot p { margin: 0 0 6px; }
.fine { font-size: .9rem; opacity: .8; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 200%);
  background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); max-width: 92vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------- Dialogs ---------- */
dialog { border: 0; border-radius: 22px; padding: 30px 28px 28px; width: min(92vw, 430px); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(42, 18, 51, .62); }
.dlg-close { position: absolute; top: 10px; right: 12px; margin: 0; }
.dlg-close button { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 10px; }
.dlg-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin: 16px 0 4px; border-bottom: 1.5px solid var(--lilac-2); }
.tabs button { font: 600 1rem var(--body); background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--hibiscus); }
.pay-price { font: 400 2.8rem/1.1 var(--display); margin: 10px 0 6px; }
.demo-note { background: #fff3d6; border-radius: 10px; padding: 10px 14px; font-size: .93rem; }
#payGo { width: 100%; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero, .services, .membership, .owner-grid { grid-template-columns: minmax(0, 1fr); }
  .mirror { width: min(100%, 260px); order: -1; justify-self: start; }
  .slip-wrap { position: static; }
  .top { gap: 12px; }
  .brand { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .who-name { display: none; }
  .menu li { grid-template-columns: auto 1fr auto; }
  .menu .price { grid-column: 2; grid-row: 2; }
  .menu .menu-actions { grid-column: 3; grid-row: 1 / span 2; }
  .menu-thumb { grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Photo banner (top of page, scrolls right to left) ---------- */
.gallery-band { overflow: hidden; background: var(--ink); padding: 14px 0; }
.gallery-band[hidden] { display: none; }
.gallery-track { display: flex; gap: 14px; width: max-content; animation: gallery-scroll var(--gallery-duration, 40s) linear infinite; }
.gallery-band:hover .gallery-track { animation-play-state: paused; }
.gallery-track img { height: 200px; width: auto; max-width: 320px; object-fit: cover; border-radius: 14px; flex: none; display: block; }
@keyframes gallery-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 860px) { .gallery-track img { height: 140px; max-width: 220px; } }

/* owner: manage photos */
.gallery-upload { position: relative; cursor: pointer; justify-self: start; }
.gallery-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.gallery-item { position: relative; }
.gallery-item img { width: 100%; height: 90px; object-fit: cover; border-radius: 10px; display: block; }
.gallery-item button { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 999px; background: rgba(42, 18, 51, .85); color: #fff; font: 600 .75rem var(--body); padding: 4px 9px; cursor: pointer; }
.gallery-item button:hover { background: var(--danger); }

/* forgot password */
.forgot-link { justify-self: center; color: var(--muted); font-size: .95rem; }
.form-ok { color: #1c6b48; font-weight: 600; min-height: 1.2em; margin: 0; }
.stat-note { display: block; font-size: .8rem; color: var(--muted); }

/* ---------- Mirror logo ---------- */
.mirror-logo { position: relative; max-width: 70%; max-height: 90px; object-fit: contain; margin-bottom: 10px; }

/* ---------- Offer tag: claim button on the back face ---------- */
.tag { cursor: pointer; }
.tag-claim {
  margin-top: auto; align-self: flex-start; font: 600 .85rem var(--body); padding: 8px 14px;
  border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer;
}
.tag-claim:hover { background: rgba(0, 0, 0, .08); }

/* ---------- Owner: logo preview ---------- */
.logo-preview-img { max-width: 220px; max-height: 110px; object-fit: contain; background: var(--paper); border-radius: 10px; padding: 10px; }

/* ---------- Owner: booking requests ---------- */
.booking-list { display: grid; gap: 10px; }
.booking-row {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  background: var(--paper); padding: 14px 16px; border-radius: 10px;
  border-left: 4px solid var(--brass);
}
.booking-pending { border-left-color: var(--marigold); }
.booking-confirmed { border-left-color: #2f8a5c; }
.booking-cancelled { border-left-color: var(--muted); opacity: .7; }
.booking-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.booking-who { font-weight: 700; }
.booking-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 2px; }
.booking-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.booking-actions button { font: 600 .85rem var(--body); padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; }
.booking-confirm:hover { background: #2f8a5c; border-color: #2f8a5c; color: #fff; }
.booking-close:hover, .booking-undo:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.booking-status-label { font-weight: 700; font-size: .85rem; color: var(--muted); white-space: nowrap; }

.booking-items { display: grid; gap: 6px; }
.booking-item { display: flex; align-items: center; gap: 10px; font-size: .93rem; }
.booking-item input[type="checkbox"] { width: 17px; height: 17px; flex: none; accent-color: var(--hibiscus); }
.booking-item-name { flex: 1 1 auto; min-width: 0; }
.booking-item-price {
  width: 90px; font: 600 .9rem var(--body); padding: 5px 8px; border-radius: 8px;
  border: 1.5px solid #a893ba; background: #fff; text-align: right;
}
.booking-item-readonly { justify-content: space-between; color: var(--muted); }
.booking-item-readonly .booking-item-price-label { font-weight: 600; font-variant-numeric: tabular-nums; }
.booking-item-excluded .booking-item-name { text-decoration: line-through; }
.booking-item-excluded .booking-item-price-label { font-style: italic; }
