/* =============================================================================
   My Aurelia (site/my.html · x-my.js) — vault sign-in, member card, holds with
   countdowns, order timelines, Gold Saver passbook, GST invoices, wishlist.
   ============================================================================= */
.xm { min-height: 60vh; }
.xm-row { display: flex; gap: 8px; align-items: stretch; }
.xm-in, .xm .xm-row input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-size: 1rem; }
.xm-in:focus, .xm .xm-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.xm-mono { margin: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--mut); text-transform: uppercase; }
.xm-sub { margin: 0; color: var(--mut); font-size: .86rem; }
.xm-link { color: var(--gold-text); text-decoration: none; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.xm-link:hover { text-decoration: underline; }
.xm-linkbtn { background: none; border: 0; padding: 0; color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.xm-gold { color: var(--gold-text); font-weight: 600; }
.xm-red { color: var(--bad); }
html[data-part="evening"] .xm-red, html[data-part="closed"] .xm-red { color: #f08c84; }
.xm-fine { font-size: .8rem; color: var(--mut); margin: 16px 0 0; }
.xm-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--mut); font-size: .9rem; }
.xm-empty { margin: 0; padding: 22px; border-radius: 18px; border: 1px dashed var(--line2); color: var(--mut); font-size: .92rem; }
.xm-empty a { color: var(--gold-text); }
.xm-empty.big { text-align: center; padding: 40px 24px; display: grid; justify-items: center; gap: 8px; }
.xm-empty.big i { font-size: 2.2rem; color: var(--gold-text); }
.xm-empty.big p { max-width: 52ch; margin: 0 0 8px; }
.xm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: .72rem; font-weight: 600; white-space: nowrap; background: color-mix(in srgb, var(--mut) 14%, transparent); color: var(--ink2); }
.xm-pill.gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1a1306; }
.xm-pill.live { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold-text); }
.xm-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: xm-pulse 1.8s ease-in-out infinite; }
@keyframes xm-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 0%, transparent); opacity: .6; } }
.xm-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--mut); }
.xm-ico:hover { border-color: var(--gold); color: var(--ink); }
.xm-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.xm .btn.arm { background: color-mix(in srgb, var(--bad) 14%, transparent); border-color: var(--bad); color: var(--bad); }
html[data-part="evening"] .xm .btn.arm, html[data-part="closed"] .xm .btn.arm { color: #f08c84; border-color: #f08c84; }

/* ---------- gate ---------- */
.xm-gate { padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 72px); overflow-x: clip; }
.xm-gate-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.xm-gate h1 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); margin-bottom: 18px; }
.xm-feats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.xm-feats li { display: flex; gap: 12px; align-items: flex-start; }
.xm-feats i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--gold-text); background: color-mix(in srgb, var(--gold) 13%, transparent); font-size: 1.1rem; }
.xm-feats span { display: grid; gap: 2px; font-size: .86rem; color: var(--mut); line-height: 1.4; }
.xm-feats b { color: var(--ink); font-size: .96rem; font-weight: 550; }

.xm-vault { position: relative; padding: 18px; }
.xm-vault-ring { position: absolute; left: 50%; top: 50%; width: 118%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.xm [hidden] { display: none !important; }
.xm-vault-ring span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); animation: xm-spin 40s linear infinite; }
.xm-vault-ring span:nth-child(2) { inset: 8%; border-style: dashed; animation-duration: 60s; animation-direction: reverse; }
.xm-vault-ring span:nth-child(3) { inset: 16%; border-color: color-mix(in srgb, var(--gold) 14%, transparent); animation-duration: 90s; }
.xm-vault-ring span::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold-hi); }
@keyframes xm-spin { to { transform: rotate(360deg); } }
.xm-sign { position: relative; z-index: 1; display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: var(--glass); box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); }
.xm-sign h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.xm-vault-k { margin: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); display: flex; gap: 8px; align-items: center; }
.xm-cc { display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); font-family: var(--mono); color: var(--mut); }
.xm-msg { margin: 0; font-size: .88rem; color: var(--ink2); }
.xm-msg:empty { display: none; }
.xm-msg i { color: var(--gold-text); }
.xm-otp { margin: 0; }
.xm-demo-k { margin: 6px 0 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); display: flex; align-items: center; gap: 10px; }
.xm-demo-k::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.xm-demos { display: grid; gap: 8px; }
.xm-demo { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); transition: border-color .2s, transform .2s; }
.xm-demo:hover { border-color: var(--gold); transform: translateX(2px); }
.xm-demo span:nth-child(2) { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.xm-demo b { font-weight: 550; font-size: .93rem; }
.xm-demo small { color: var(--mut); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xm-demo > i { color: var(--gold-text); }
.xm-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; color: #1a1306; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); }

.xm-pubtrack { margin-top: clamp(32px, 5vw, 64px); }
.xm-trackf { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px 32px; align-items: center; }
.xm-trackf h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 4px; }
.xm-trackf h2 label { cursor: pointer; }
.xm-trackf p { margin: 0; }
.xm-trackout { grid-column: 1 / -1; }
.xm-trackout:empty { display: none; }

/* ---------- dashboard top ---------- */
.xm-dash { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.xm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: clamp(20px, 3vw, 36px); }
.xm-kick { margin: 0 0 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.xm-hello h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 12px; }
.xm-lede { color: var(--ink2); max-width: 56ch; margin: 0; }
.xm-mcard { --mx: 30%; --my: 20%; position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.586; border-radius: 22px; padding: 20px 22px; color: #f3ecdc; display: flex; flex-direction: column;
  background: radial-gradient(80% 70% at 100% 0%, rgba(243, 220, 158, .2), transparent 65%), radial-gradient(60% 60% at 0% 100%, rgba(90, 110, 220, .22), transparent 70%), linear-gradient(150deg, #19225a, #070b1c 75%);
  box-shadow: 0 30px 60px -26px rgba(4, 7, 20, .8), inset 0 0 0 1px rgba(243, 220, 158, .28); }
.xm-mcard-sheen { position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 209, 220, .16) 38%, rgba(201, 236, 255, .2) 50%, rgba(227, 212, 255, .16) 62%, transparent 75%); background-size: 260% 260%; animation: xm-holo 9s ease-in-out infinite; }
@keyframes xm-holo { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
.xm-mcard-top { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; }
.xm-mcard-logo { width: 30px; height: 30px; color: var(--gold-hi); }
.xm-mcard-chip { flex: none; width: 44px; height: 32px; margin-top: 16px; border-radius: 7px; background: linear-gradient(135deg, #fff1c7, #c9a154 50%, #8a6420); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); position: relative; }
.xm-mcard-chip::before { content: ""; position: absolute; inset: 6px 8px; border: 1px solid rgba(60, 40, 10, .35); border-radius: 4px; }
.xm-mcard-no { margin: auto 0 8px; font-family: var(--mono); font-size: 1.05rem; letter-spacing: .22em; color: #fff; }
.xm-mcard-bot { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.xm-mcard-bot small { display: block; font-family: var(--mono); font-size: .54rem; letter-spacing: .2em; text-transform: uppercase; color: #a7abbf; }
.xm-mcard-bot b { font-weight: 500; font-size: .92rem; }
.xm-mcard-bot .xm-pill { margin-left: auto; }
.xm-demo-note { margin: 10px 0 0; font-size: .78rem; color: var(--mut); }
.xm-demo-note i { color: var(--gold-text); }

/* tabs */
.xm-tabs { position: sticky; top: calc(var(--head-h) + 6px); z-index: 20; margin-bottom: 22px; }
.xm-tabs [role=tablist] { display: flex; gap: 4px; padding: 5px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.xm-tabs [role=tablist]::-webkit-scrollbar { display: none; }
.xm-tabs [role=tab] { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--mut); font-weight: 500; font-size: .92rem; white-space: nowrap; transition: background .2s, color .2s; }
.xm-tabs [role=tab]:hover { color: var(--ink); }
.xm-tabs [role=tab].on { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1a1306; box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--gold) 90%, transparent); }
.xm-tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: .66rem; font-weight: 700; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-text); }
.xm-tabs [role=tab].on .xm-tab-n { background: rgba(26, 19, 6, .16); color: #1a1306; }
.xm-tab-n[hidden] { display: none; }
.xm-pane { outline: none; animation: xm-fade .4s var(--ease-out); }
@keyframes xm-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.xm-ph { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.xm-ph h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; align-items: center; gap: 12px; }
.xm-ph h2 i { font-size: .8em; color: var(--gold-text); }

/* overview */
.xm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.xm-tile { position: relative; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.xm-tile > i { position: absolute; right: 14px; top: 14px; font-size: 1.2rem; color: var(--gold-text); opacity: .8; }
.xm-tile-k { margin: 0 0 8px; font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.xm-tile-v { margin: 0 0 4px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; color: var(--ink); }
.xm-tile-s { margin: 0; font-size: .82rem; color: var(--mut); }
.xm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.xm-panel { padding: clamp(16px, 2.2vw, 24px); border-radius: var(--r-lg); background: color-mix(in srgb, var(--card) 82%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.xm-panel + .xm-panel { margin-top: 0; }
.xm-panel .xm-ph h2 { font-size: 1.35rem; }
.xm-rsv-list { display: grid; gap: 10px; }
.xm-rsv { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.xm-rsv.live { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.xm-case { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: radial-gradient(70% 60% at 50% 0%, var(--spot), transparent 75%), linear-gradient(180deg, transparent, var(--bg2)); box-shadow: inset 0 0 0 1px var(--line); }
.xm-case img, .xm-case svg { width: 62px; height: 62px; object-fit: contain; }
.xm-rsv-t h3, .xm-ord h3, .xm-dsn h3, .xm-wc h3 { font-family: var(--sans); font-weight: 550; font-size: 1rem; line-height: 1.3; margin: 2px 0; letter-spacing: 0; }
.xm-count { margin: 4px 0 0; font-family: var(--mono); font-size: .8rem; color: var(--gold-text); }
.xm-count.soon { color: var(--warn); }
.xm-count.over { color: var(--mut); }
.xm-rsv-a { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 6px; }
.xm-apts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xm-apt { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.xm-apt.past { opacity: .62; }
.xm-apt p { margin: 0; font-size: .92rem; }
.xm-apt-d { display: grid; place-items: center; width: 52px; height: 56px; border-radius: 14px; background: linear-gradient(160deg, var(--gold-hi), var(--gold)); color: #1a1306; line-height: 1; }
.xm-apt.past .xm-apt-d { background: var(--bg2); color: var(--mut); }
.xm-apt-d b { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.xm-apt-d small { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }

/* orders */
.xm-ords { display: grid; gap: 14px; }
.xm-ord { padding: clamp(16px, 2.2vw, 24px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.xm-ord.ready { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 9%, var(--card)), var(--card) 60%); }
.xm-ord.cancelled { opacity: .6; }
.xm-ord-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.xm-ord-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 1.15rem; color: var(--gold-text); background: color-mix(in srgb, var(--gold) 13%, transparent); }
.xm-tl { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.xm-tl li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 4px; }
.xm-tl li::before { content: ""; position: absolute; top: 19px; left: -50%; width: 100%; height: 2px; background: var(--line2); z-index: 0; }
.xm-tl li:first-child::before { display: none; }
.xm-tl li.done::before, .xm-tl li.now::before { background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.xm-tl-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line2); color: var(--faint); font-size: .95rem; }
.xm-tl li.done .xm-tl-dot { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border-color: transparent; color: #1a1306; }
.xm-tl li.now .xm-tl-dot { border-color: var(--gold); color: var(--gold-text); background: color-mix(in srgb, var(--gold) 14%, var(--card)); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 50%, transparent); animation: xm-now 2s ease-out infinite; }
@keyframes xm-now { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.xm-ord.ready .xm-tl li.now .xm-tl-dot { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1a1306; }
.xm-tl b { font-weight: 550; font-size: .86rem; line-height: 1.25; color: var(--ink); margin-top: 4px; }
.xm-tl li:not(.done):not(.now) b { color: var(--mut); font-weight: 450; }
.xm-tl small { font-size: .72rem; color: var(--mut); }
.xm-ord-f { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line2); font-size: .86rem; color: var(--ink2); }
.xm-ord-f i { color: var(--gold-text); }
.xm-ord-pick { color: var(--gold-text); font-weight: 500; }
.xm-ord-f .xm-link { margin-left: auto; }
.xm-trackf#xmTrack2 { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 20px; padding: 18px; border-radius: 18px; border: 1px dashed var(--line2); }
.xm-trackf#xmTrack2 label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }

/* Gold Saver */
.xm-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; border-radius: 18px; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--card)); }
.xm-banner > i { font-size: 1.4rem; color: var(--warn); }
.xm-banner > div { flex: 1; min-width: 220px; font-size: .94rem; color: var(--ink2); }
.xm-banner b { color: var(--ink); }
.xm-banner.gold { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 16%, var(--card)), var(--card)); }
.xm-banner.gold > i { color: var(--gold-text); }
.xm-saver { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-lg); margin-bottom: 16px;
  color: #f3ecdc; background: radial-gradient(80% 80% at 100% 0%, rgba(243, 220, 158, .16), transparent 70%), linear-gradient(150deg, #141c45, #070b1c 75%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(243, 220, 158, .22); }
.xm-sv-ring { position: relative; width: 180px; height: 180px; }
.xm-sv-ring svg { width: 100%; height: 100%; }
.xm-ring-bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.xm-ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease-out); filter: drop-shadow(0 0 6px rgba(243, 220, 158, .35)); }
.xm-sv-ring-t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.xm-sv-ring-t b { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1; color: #fff; }
.xm-sv-ring-t b small { font-size: 1.1rem; color: #a7abbf; }
.xm-sv-ring-t span { font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: #a7abbf; }
.xm-sv-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.xm-sv-stats div.wide { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid rgba(243, 220, 158, .14); }
.xm-sv-stats dt { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: #a7abbf; margin-bottom: 3px; }
.xm-sv-stats dd { margin: 0; font-size: 1.1rem; color: #fff; }
.xm-sv-stats dd small { font-size: .74rem; color: #a7abbf; }
.xm-sv-stats .xm-red { color: #f08c84; }
.xm-grams { font-family: var(--serif); font-size: 1.8rem; background: linear-gradient(100deg, #c9a154, #fff1c7 45%, #c9a154); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xm-cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.xm-cell { position: relative; display: grid; gap: 2px; align-content: start; min-height: 112px; padding: 12px; border-radius: 16px; border: 1px dashed var(--line2); background: color-mix(in srgb, var(--card) 70%, transparent); overflow: hidden; }
.xm-cell-n { font-family: var(--mono); font-size: .66rem; color: var(--mut); letter-spacing: .1em; }
.xm-cell b { font-weight: 550; font-size: .95rem; color: var(--ink); }
.xm-cell small { font-size: .72rem; color: var(--mut); line-height: 1.35; }
.xm-cell.paid { border-style: solid; border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 14%, var(--card)), var(--card)); }
.xm-stamp { position: absolute; right: 8px; bottom: 10px; transform: rotate(-14deg); font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .18em; padding: 3px 7px; border-radius: 6px; border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); color: var(--gold-text); opacity: .85; }
.xm-cell.paid.just { animation: xm-stampin .9s var(--ease-out); }
@keyframes xm-stampin { 0% { transform: scale(1.12); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 100% { transform: none; box-shadow: 0 0 0 16px transparent; } }
.xm-cell.next { border-style: solid; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent); }
.xm-cell.next.over { border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 15%, transparent); }
.xm-cell.next .btn { margin-top: 8px; justify-self: start; }
.xm-cell.bonus { border-style: solid; border-color: transparent; background: linear-gradient(150deg, #19225a, #0b1230); }
.xm-cell.bonus b { color: #fff; } .xm-cell.bonus small, .xm-cell.bonus .xm-cell-n { color: #a7abbf; }
.xm-cell.bonus.paid { background: linear-gradient(150deg, #8a6420, #19225a); }
.xm-voucher { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; margin: 16px 0; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); background: var(--card); }
.xm-voucher h3 { font-size: 1.2rem; margin: 2px 0; }
.xm-qr { width: 88px; height: 88px; padding: 6px; border-radius: 12px; background: #fbf7ef; color: #0b1230; flex: none; display: grid; place-items: center; }
.xm-qr svg { width: 100%; height: 100%; display: block; }
.xm-qr.big { width: 180px; height: 180px; padding: 12px; }

/* designs */
.xm-dsns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.xm-dsn { padding: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.xm-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.xm-specs li { display: grid; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 9%, transparent); font-size: .84rem; line-height: 1.25; }
.xm-specs small { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.xm-dsn-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line2); font-size: .9rem; }
.xm-mini { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.xm-mini li { font-size: .66rem; padding: 3px 8px; border-radius: 99px; background: var(--bg2); color: var(--mut); white-space: nowrap; }
.xm-mini li.done { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold-text); }
.xm-mini li.now { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1a1306; font-weight: 600; }

/* invoices */
.xm-invs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xm-inv { width: 100%; display: grid; grid-template-columns: 100px 130px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: border-color .2s; }
.xm-inv:hover { border-color: var(--gold); }
.xm-inv .xm-mono { color: var(--gold-text); }
.xm-inv span { font-size: .88rem; color: var(--ink2); }
.xm-inv-i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xm-inv b { font-family: var(--mono); font-weight: 500; }
.xm-inv i { color: var(--mut); }

.xm-invoice { color: var(--ink); }
.xm-iv-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.xm-iv-h h2 { font-size: 1.7rem; margin-bottom: 6px; outline: none; }
.xm-iv-h p { margin: 0; font-size: .8rem; color: var(--mut); }
.xm-iv-meta { text-align: right; margin-right: 46px; }
.xm-iv-meta .xm-kick { margin-bottom: 4px; }
.xm-iv-to { font-size: .9rem; margin: 0 0 12px; }
.xm-iv-to small { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.xm-iv-scroll { overflow-x: auto; }
.xm-iv-t { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 640px; }
.xm-iv-t th { text-align: left; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); font-weight: 500; padding: 8px 6px; border-bottom: 1px solid var(--line2); }
.xm-iv-t td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.xm-iv-t td small { display: block; color: var(--mut); font-size: .7rem; font-family: var(--mono); }
.xm-iv-t .n { text-align: right; font-family: var(--mono); white-space: nowrap; }
.xm-iv-sum { margin: 14px 0 0 auto; max-width: 360px; display: grid; gap: 4px; font-size: .88rem; }
.xm-iv-sum div { display: flex; justify-content: space-between; gap: 16px; }
.xm-iv-sum dt { color: var(--mut); }
.xm-iv-sum dd { margin: 0; font-family: var(--mono); }
.xm-iv-sum .tot { padding-top: 8px; margin-top: 4px; border-top: 2px solid var(--ink); font-size: 1.1rem; font-weight: 600; }
.xm-iv-sum .tot dt { color: var(--ink); }
.xm-iv-pay { font-size: .84rem; color: var(--ink2); margin: 12px 0 0; }

/* wishlist */
.xm-wish { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.xm-wc { display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); }
.xm-wc.sold { opacity: .6; }
.xm-wc-art { position: relative; display: grid; place-items: center; height: 170px; overflow: hidden; background: radial-gradient(60% 70% at 50% 0%, var(--spot), transparent 75%), linear-gradient(180deg, transparent, var(--bg2)); }
.xm-wc-art img, .xm-wc-art svg { width: 130px; height: 130px; object-fit: contain; transition: transform .6s var(--ease-out); }
.xm-wc-art:hover img, .xm-wc-art:hover svg { transform: scale(1.06) rotate(-3deg); }
.xm-wc-beam { position: absolute; top: -10%; bottom: -10%; width: 40%; left: -60%; z-index: 2; background: linear-gradient(100deg, transparent, rgba(255, 252, 240, .5), transparent); transform: skewX(-18deg); transition: left 1s var(--ease); }
.xm-wc-art:hover .xm-wc-beam { left: 130%; }
.xm-wc-t { padding: 14px 16px 6px; }
.xm-wc-p { margin: 6px 0 0; font-family: var(--mono); font-size: 1.05rem; color: var(--gold-text); }
.xm-wc-p small { font-family: var(--sans); font-size: .72rem; color: var(--mut); }
.xm-wc-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px 16px; }
.xm-wc-a .xm-ico { margin-left: auto; }

/* modal */
.xm-modal { position: fixed; inset: 0; z-index: 125; display: grid; place-items: center; padding: 20px; background: rgba(5, 8, 20, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.xm-modal[hidden] { display: none; }
.xm-modal-box { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; background: var(--bg); color: var(--ink); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line2); animation: xm-up .4s var(--ease-out); }
.xm-modal-box.wide { width: min(900px, 100%); }
@keyframes xm-up { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.xm-modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); display: grid; place-items: center; z-index: 3; }
.xm-modal-x:hover { border-color: var(--gold); }
html.xm-lock { overflow: hidden; }
.xm-pay h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 18px; outline: none; }
.xm-pay-qr { display: flex; align-items: center; gap: 20px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.xm-pay-qr p { margin: 0 0 4px; }
.xm-pay-qr .xm-mono { color: var(--gold-text); font-size: .86rem; text-transform: none; letter-spacing: .02em; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .xm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xm-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .xm-gate-in, .xm-top { grid-template-columns: 1fr; }
  .xm-cardwrap { max-width: 400px; }
  .xm-cols { grid-template-columns: 1fr; }
  .xm-trackf { grid-template-columns: 1fr; }
  .xm-saver { grid-template-columns: 1fr; justify-items: center; }
  .xm-sv-stats { width: 100%; }
  .xm-inv { grid-template-columns: 90px minmax(0, 1fr) auto 16px; }
  .xm-inv > span:nth-child(2) { display: none; }
}
@media (max-width: 640px) {
  .xm-feats { grid-template-columns: 1fr; }
  .xm-vault { padding: 0; }
  .xm-vault-ring { display: none; }
  .xm-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .xm-tile { padding: 14px; }
  .xm-tile-v { font-size: 1.1rem; }
  .xm-tile > i { display: none; }
  .xm-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xm-tl b { font-size: .74rem; }
  .xm-tl small { display: none; }
  .xm-tl-dot { width: 34px; height: 34px; font-size: .85rem; }
  .xm-tl li::before { top: 16px; }
  .xm-ord-h { grid-template-columns: auto minmax(0, 1fr); }
  .xm-ord-h > .xm-pill { grid-column: 2; justify-self: start; }
  .xm-apt { grid-template-columns: 48px minmax(0, 1fr); }
  .xm-apt > .btn, .xm-apt > .xm-pill { grid-column: 2; justify-self: start; }
  .xm-inv { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .xm-inv-i { grid-column: 1 / -1; grid-row: 2; }
  .xm-inv > i { display: none; }
  .xm-pay-qr { flex-direction: column; text-align: center; }
  .xm-dsns, .xm-wish { grid-template-columns: 1fr; }
  .xm-sv-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .xm-modal { padding: 0; place-items: end stretch; }
  .xm-modal-box, .xm-modal-box.wide { width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; }
  .xm-mcard { padding: 16px 18px; aspect-ratio: auto; min-height: 200px; }
  .xm-mcard-no { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .xm-vault-ring span, .xm-mcard-sheen, .xm-pulse, .xm-tl li.now .xm-tl-dot, .xm-pane, .xm-modal-box, .xm-cell.paid.just { animation: none !important; }
}

/* ---------- print: only the invoice ---------- */
@media print {
  html.xm-printing body > *:not(main), html.xm-printing #xmGate, html.xm-printing #xmDash, html.xm-printing .xm-modal-x, html.xm-printing .no-print, html.xm-printing #toast { display: none !important; }
  html.xm-printing body { background: #fff !important; color: #000; }
  html.xm-printing body::before { display: none; }
  html.xm-printing .xm-modal { position: static; display: block; padding: 0; background: none; backdrop-filter: none; }
  html.xm-printing .xm-modal-box { width: 100%; max-height: none; box-shadow: none; padding: 0; background: #fff; animation: none; }
  html.xm-printing .xm-invoice, html.xm-printing .xm-invoice * { color: #000 !important; }
  html.xm-printing .xm-iv-t { min-width: 0; }
}
