/* DIGITAL RIDER CARD (Rider Perks top + /card). Black glass, brushed-chrome border, neon-green edge glow, glare sweep, holographic shimmer
   (driven by --hx/--hy from device tilt or pointer; slow auto shimmer otherwise). No libraries. prefers-reduced-motion = static. */
.rc-wrap { max-width: 440px; margin: 0 auto 1.25rem; }
.rc-scene { perspective: 1200px; }
.rc { --hx: 50%; --hy: 50%; position: relative; width: 100%; aspect-ratio: 1.586; cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); border-radius: 20px; outline: none; -webkit-tap-highlight-color: transparent; }
.rc.is-flipped { transform: rotateY(180deg); }
.rc:focus-visible { box-shadow: 0 0 0 3px #1ea0ff; }
.rc-face { position: absolute; inset: 0; border-radius: 20px; padding: 3px; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: linear-gradient(135deg, #f4f6f8 0%, #8d949b 18%, #e9ecef 32%, #5c636a 50%, #d9dde1 66%, #7a8188 82%, #f4f6f8 100%);
  box-shadow: 0 0 0 1px #000, 0 0 14px rgba(59,254,44,.55), 0 0 34px rgba(59,254,44,.22), 0 14px 30px rgba(0,0,0,.7); }
.rc-face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, rgba(0,0,0,.25) 1px 2px, rgba(255,255,255,.15) 2px 3px); }
.rc-back { transform: rotateY(180deg); }
.rc-in { position: relative; height: 100%; border-radius: 17px; overflow: hidden; isolation: isolate; color: #e9edf1;
  background: radial-gradient(ellipse at 20% 0%, rgba(59,254,44,.16), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(30,160,255,.14), transparent 50%), linear-gradient(160deg, #15191d 0%, #050607 55%, #0b0e10 100%);
  box-shadow: inset 0 0 0 1px rgba(59,254,44,.55), inset 0 0 18px rgba(59,254,44,.18), inset 0 1px 0 rgba(255,255,255,.25); }
/* holographic shimmer */
.rc-holo { position: absolute; inset: -20%; z-index: 0; pointer-events: none; opacity: .22; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 20%, #ff4fd8 30%, #3bfe2c 40%, #1ea0ff 50%, #ffe14f 60%, #ff4fd8 70%, transparent 80%);
  background-size: 220% 220%; background-position: var(--hx) var(--hy); transition: background-position .15s linear; }
.rc.rc-auto .rc-holo { animation: rc-holo 9s ease-in-out infinite alternate; }
@keyframes rc-holo { 0% { background-position: 0% 30%; } 100% { background-position: 100% 70%; } }
/* periodic glare sweep */
.rc-glare { position: absolute; top: -30%; bottom: -30%; left: 0; width: 35%; z-index: 4; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0) 25%, rgba(255,255,255,.38) 50%, rgba(255,255,255,0) 75%, transparent);
  transform: translateX(-180%) skewX(-18deg); animation: rc-glare 6s ease-in-out infinite; }
@keyframes rc-glare { 0%, 62% { transform: translateX(-180%) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }
.rc-c { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 4.5% 5%; box-sizing: border-box; }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.rc-plate { display: block; width: 52%; max-width: 210px; padding: 3px; border-radius: 6px; background: linear-gradient(135deg, #f4f6f8, #7a8188 45%, #e9ecef 60%, #5c636a); box-shadow: 0 0 0 1px #000, 0 3px 8px rgba(0,0,0,.6); }
.rc-plate img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; border-radius: 4px; }
.rc-av { position: relative; flex: none; width: 23%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  border: 2px solid #d9dde1; box-shadow: 0 0 0 2px #000, 0 0 12px rgba(59,254,44,.6); background: linear-gradient(145deg, #f5f7fa, #8a9097 45%, #e6e9ec 60%, #5d636a);
  color: #0a0c0e; font: 900 clamp(1rem, 6vw, 1.6rem)/1 var(--font-body, system-ui), sans-serif; }
.rc-av img { width: 100%; height: 100%; object-fit: cover; }
.rc-pend { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); white-space: nowrap; padding: .08rem .35rem; border-radius: 999px; background: #000; border: 1px solid #ffb030; color: #ffcf70; font: 800 .5rem/1.3 system-ui, sans-serif; letter-spacing: .06em; }
.rc-mid { align-self: center; min-width: 0; }
.rc-name { margin: 0; font: 900 clamp(1.15rem, 6.2vw, 1.75rem)/1.1 var(--font-display, var(--font-body, system-ui)), sans-serif; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #3bfe2c; background: linear-gradient(180deg, #eaffe6 0%, #9dff92 28%, #3bfe2c 52%, #1aa810 70%, #7dff70 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 6px rgba(59,254,44,.45)); }
.rc-id { margin: .25rem 0 0; font: 800 clamp(.85rem, 4.2vw, 1.1rem)/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; color: #bfe8ff;
  text-shadow: 0 0 4px #1ea0ff, 0 0 10px rgba(30,160,255,.8), 0 0 18px rgba(30,160,255,.45); }
.rc-meta { display: flex; gap: 1.1rem; margin-top: .45rem; font: 700 clamp(.66rem, 3vw, .8rem)/1.25 var(--font-body, system-ui), sans-serif; color: #e9edf1; }
.rc-meta small { display: block; font-size: .72em; letter-spacing: .12em; color: #8fe889; }
.rc-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; }
.rc-badges { display: flex; flex-wrap: wrap; gap: .3rem; min-width: 0; }
.rc-badge { max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .14rem .45rem; border-radius: 999px; border: 1px solid #3bfe2c; background: rgba(0,0,0,.55); color: #c9ffc4; font: 800 clamp(.56rem, 2.5vw, .68rem)/1.3 var(--font-body, system-ui), sans-serif; letter-spacing: .04em; box-shadow: 0 0 6px rgba(59,254,44,.35); }
.rc-emblem { display: block; width: clamp(2.1rem, 11vw, 2.9rem); height: auto; aspect-ratio: 1; filter: drop-shadow(0 0 4px rgba(59,254,44,.55)); }
.rc-badge--none { border-color: #5d636a; color: #9aa3ab; box-shadow: none; }
.rc-qrmini { flex: none; width: 18%; aspect-ratio: 1; padding: 3px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #000, 0 0 8px rgba(59,254,44,.5); }
.rc-qrmini svg, .rc-qrbig svg, .rc-fsq svg { display: block; width: 100%; height: 100%; }
/* back */
.rc-backc { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5%; padding: 5%; box-sizing: border-box; }
.rc-qrbig { height: 88%; aspect-ratio: 1; padding: 4px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 2px #000, 0 0 14px rgba(59,254,44,.55); }
.rc-backt p { margin: 0 0 .4rem; } .rc-hint { color: #9aa3ab; font: 600 clamp(.62rem, 2.8vw, .78rem)/1.35 var(--font-body, system-ui), sans-serif; }
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid #3bfe2c; color: #3bfe2c; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 50%), #050607; font: 800 .72rem/1 var(--font-body, system-ui), sans-serif; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 8px rgba(59,254,44,.35); text-decoration: none; }
.rc-btn:hover, .rc-btn:focus-visible { color: #fff; border-color: #fff; }
.rc-btn--blue { border-color: #1ea0ff; color: #8fd3ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 8px rgba(30,160,255,.4); }
.rc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .9rem; }
.rc-note { text-align: center; font-size: .8rem; color: #9aa3ab; margin: .5rem 0 0; }
.rc-panel { margin-top: .9rem; padding: .9rem; border-radius: 16px; border: 1px solid rgba(59,254,44,.45); background: rgba(0,0,0,.45); }
.rc-panel h3 { margin: 0 0 .5rem; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.rc-panel label { display: block; font-size: .8rem; color: #c9d1d8; margin: .4rem 0 .2rem; }
.rc-panel input[type=text], .rc-panel select { width: 100%; box-sizing: border-box; min-height: 42px; padding: .45rem .6rem; border-radius: 10px; border: 1px solid #5d636a; background: #050607; color: #fff; font-size: 1rem; }
.rc-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; align-items: center; }
.rc-msg { min-height: 1.2em; font-size: .85rem; margin: .5rem 0 0; } .rc-msg.ok { color: #3bfe2c; } .rc-msg.bad { color: #ff7070; }
.rs-upload-ok { margin: .45rem 0 0; font-weight: 700; color: #3bfe2c; } .rs-upload-ok[hidden] { display: none; }
/* avatar crop */
.rc-crop { position: relative; width: min(280px, 78vw); aspect-ratio: 1; margin: .6rem auto; border-radius: 14px; overflow: hidden; background: #000; touch-action: none; cursor: grab; }
.rc-crop canvas { display: block; width: 100%; height: 100%; }
.rc-crop::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 14px; background: radial-gradient(circle at 50% 50%, transparent 0 69.5%, rgba(0,0,0,.65) 70%); box-shadow: inset 0 0 0 2px rgba(59,254,44,.6); }
.rc-crop input[type=range] { width: 100%; }
.rc-zoom { display: block; width: min(280px, 78vw); margin: 0 auto; accent-color: #3bfe2c; }
.rc-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rc-pendrow { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; } .rc-pendrow img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #ffb030; }
/* full-screen scan mode */
.rc-fsv { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; background: #000; color: #fff; text-align: center; }
.rc-fsq { width: min(82vw, 62vh, 460px); aspect-ratio: 1; padding: 14px; border-radius: 14px; background: #000; border: 2px solid #3bfe2c; box-shadow: 0 0 18px rgba(59,254,44,.5); }
.rc-fsq.inv svg { filter: invert(1); }          /* white modules on black (default) */
.rc-fsq:not(.inv) { background: #fff; }
.rc-fsv .rc-name { font-size: 1.5rem; } .rc-fsv .rc-id { font-size: 1.15rem; }
.rc-signin { text-align: center; padding: 1.2rem; border: 1px solid rgba(59,254,44,.45); border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { .rc, .rc-holo { transition: none; } .rc-glare, .rc.rc-auto .rc-holo { animation: none; } .rc-glare { display: none; } }

/* layout v2: fits 356 px wide cards (390 px phones) - QR mini pinned bottom-right, avatar wrapper so the Pending tag is not clipped */
.rc-c { grid-template-rows: auto minmax(0, 1fr) auto; padding: 4% 5% 4.5%; }
.rc-plate { width: 46%; }
.rc-avw { position: relative; flex: none; width: 21%; }
.rc-avw .rc-av { width: 100%; }
.rc-pend { bottom: -7px; z-index: 3; }
.rc-mid { padding-right: 20%; }
.rc-name { font-size: clamp(1rem, 5.4vw, 1.6rem); }
.rc-meta { margin-top: .3rem; }
.rc-bot { padding-right: 21%; }
.rc-qrmini { position: absolute; right: 5%; bottom: 5.5%; width: 17%; }

.rc-id--hint{font-size:.72rem;letter-spacing:.12em;opacity:.75;text-transform:uppercase}
