/* PROCIAS™ card pop-up ("View verified properties"), used on site and entrance pages */
.cmodal { --ease: cubic-bezier(.22, 1, .36, 1); --cm-ink: #14213d; --cm-ink2: #24365e; --cm-gold: #b08d4a; --cm-gold-l: #d9bf86; --cm-text: #3d4659; --cm-line: #e7e1d3;
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(8,10,14,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cmFade .25s; font-family: "Inter", system-ui, sans-serif; }
.cmodal[hidden] { display: none; }
@keyframes cmFade { from { opacity: 0; } }
@keyframes cmZoom { from { opacity: 0; transform: scale(.94); } }
.cmodal-box { position: relative; width: min(520px, 100%); padding: 30px 26px 28px; border-radius: 22px; text-align: center; background: #fbfaf7; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(217,191,134,.5), inset 0 0 0 6px #fbfaf7, inset 0 0 0 7px rgba(217,191,134,.35); animation: cmZoom .35s var(--ease); }
.cm-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cm-gold); letter-spacing: .26em; font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.cm-eyebrow::before, .cm-eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--cm-gold); }
.cmodal-box h2 { margin: 6px 0 22px; font-family: "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: .02em; font-size: clamp(1.5rem, 4.5vw, 1.9rem); color: var(--cm-ink); line-height: 1.15; }
.cmodal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cm-line); background: #fff; display: grid; place-items: center; color: var(--cm-ink); cursor: pointer; }
.cmodal-text { margin: 22px auto 18px; max-width: 34ch; color: var(--cm-text); line-height: 1.55; }
.cm-go { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-width: 220px; height: 54px; padding: 0 28px; border-radius: 999px; background: var(--cm-ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem;
  box-shadow: inset 0 0 0 3px var(--cm-ink), inset 0 0 0 4px rgba(217,191,134,.45); transition: background .2s, transform .25s var(--ease); }
.cm-go:hover { background: var(--cm-ink2); transform: translateY(-1px); }
.cmodal .pmark { font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: .06em; }
.cmodal h2 .pmark { font-size: .84em; }
.cmodal .pmark sup { font-size: .5em; vertical-align: super; line-height: 0; }

/* the card itself */
.pcard-wrap { perspective: 1200px; display: flex; justify-content: center; }
.pcard {
  --mx: 50%;
  position: relative; overflow: hidden; width: min(460px, 100%); aspect-ratio: 1.586; border-radius: 20px; padding: 20px 22px 0;
  display: flex; flex-direction: column; color: #e8eaec;
  background:
    radial-gradient(circle at 85% 0%, rgba(196,13,13,.28), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #2a2d31 0%, #0b0c0e 45%, #1b1d20 75%, #050506 100%);
  box-shadow: 0 2px 0 rgba(255,255,255,.12) inset, 0 40px 80px -30px rgba(10,12,16,.65), 0 14px 30px -14px rgba(0,0,0,.45);
  transform-style: preserve-3d; transition: transform .25s ease-out;
  animation: cardIn 1s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) rotateX(18deg) scale(.95); } }
.pcard-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.14) 48%, transparent 60%); background-size: 250% 100%; background-position: calc(var(--mx) * -1 + 100%) 0; animation: cardSheen 7s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes cardSheen { 0%, 20% { background-position: 150% 0; } 60%, 100% { background-position: -60% 0; } }
.pcard-top { display: flex; align-items: center; justify-content: space-between; }
.pcard-logo { height: clamp(16px, 4vw, 22px); width: auto; }
.pcard-type { font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: .28em; font-size: clamp(.68rem, 1.8vw, .82rem); background: linear-gradient(180deg, #ffffff, #9aa0a6 55%, #e6e8ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard-mid { display: flex; align-items: center; gap: 14px; margin-top: clamp(10px, 3vw, 22px); }
.pcard-chip { width: clamp(34px, 8vw, 46px); height: auto; }
.pcard-title { font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: .22em; font-size: clamp(.64rem, 1.7vw, .78rem); color: #b9bec4; }
.pcard-info { display: flex; gap: clamp(12px, 4vw, 26px); margin-top: auto; padding-bottom: 12px; font-family: "Inter", sans-serif; }
.pcard-info small { display: block; font-size: .56rem; letter-spacing: .16em; color: #8b9097; }
.pcard-info b { display: block; font-size: clamp(.72rem, 2vw, .9rem); font-weight: 600; letter-spacing: .06em; color: #f1f2f3; white-space: nowrap; }
.pcard-bar { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 -22px; padding: 8px 22px 9px; background: #fff; border: 0; cursor: pointer; transition: background .2s; }
.pcard-bar:hover { background: #f4f5f6; }
.pcard-bar:focus-visible { outline: 3px solid var(--brand-red, #c40d0d); outline-offset: -3px; }
.pcard-barcode { display: block; width: max(300px, 82%); height: clamp(34px, 7vw, 46px); }
.pcard-barcode svg { width: 100%; height: 100%; display: block; }
.pcard-bar-text { font-family: "Inter", sans-serif; font-size: .66rem; letter-spacing: .14em; color: #3b4148; text-transform: uppercase; }
.pcard-brand { font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: .08em; font-size: clamp(.95rem, 2.6vw, 1.25rem);
  background: linear-gradient(180deg, #ffffff 0%, #e2e5e8 30%, #8f959b 52%, #d9dcdf 62%, #f4f5f6 82%, #a9aeb4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.pcard-brand sup { font-size: .5em; vertical-align: .9em; line-height: 0; }
.pcard-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-bottom: 12px; }
.pcard-row .pcard-info { margin-top: 0; padding-bottom: 0; flex-wrap: wrap; row-gap: 6px; }
.pcard-qr { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 5px 3px; border: 0; border-radius: 10px; background: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.pcard-qr:hover { transform: scale(1.04); }
.pcard-qr span { display: block; width: clamp(64px, 17vw, 84px); height: clamp(64px, 17vw, 84px); }
.pcard-qr svg { width: 100%; height: 100%; display: block; }
.pcard-qr small { font-family: "Inter", sans-serif; font-size: .5rem; font-weight: 700; letter-spacing: .2em; color: #3b4148; }
.pcard-mid { margin-top: clamp(8px, 2vw, 16px); }
.pcard { aspect-ratio: auto; min-height: clamp(214px, 58vw, 290px); }

.rcard { perspective: 1400px; display: flex; justify-content: center; }
.rcard-in { position: relative; width: min(400px, 78vw); aspect-ratio: 1.586; transform-style: preserve-3d; animation: rcardSpin 9s cubic-bezier(.45,.05,.55,.95) infinite; }
.rcard-face { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; animation: none; padding: 18px 20px; text-align: left; }
.rcard-back { transform: rotateY(180deg); padding: 0; justify-content: space-between; }
.rcard-info { display: flex; gap: 28px; margin-top: auto; padding-bottom: 4px; }
.rcard-strip { height: 22%; margin-top: 9%; background: linear-gradient(180deg, #050506, #1c1e21); }
.rcard-back-row { display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.rcard-qr { flex-shrink: 0; width: 22%; padding: 5px; background: #fff; border-radius: 8px; line-height: 0; }
.rcard-qr svg { width: 100%; height: auto; display: block; }
.rcard-back-row p { margin: 0; font-size: clamp(.55rem, 1.9vw, .7rem); line-height: 1.45; color: #c9ccd0; }
.rcard-bar { margin: 0 18px 14px; padding: 6px 10px; background: #fff; border-radius: 6px; height: 16%; }
.rcard-bar svg { width: 100%; height: 100%; display: block; }
@keyframes rcardSpin {
  0%, 18% { transform: rotateY(-8deg) rotateX(4deg); }
  50%, 68% { transform: rotateY(172deg) rotateX(-4deg); }
  100% { transform: rotateY(352deg) rotateX(4deg); }
}
@media (prefers-reduced-motion: reduce) { .rcard-in { animation: none; } }
@media (max-width: 480px) { .cmodal-box { padding: 26px 16px 22px; } .rcard-info { gap: 16px; } }
