/* Membership, events, wallet and ticket pages. Loaded only on those pages; uses the theme's colour variables. */
.member-page { max-width: var(--page-width); margin: 0 auto; padding: 3.6rem 1.5rem 6rem; }
@media screen and (min-width: 750px) { .member-page { padding: 5rem 5rem 8rem; } }
.member-page--narrow { max-width: 78rem; }
.member-page a:not(.button) { color: rgb(var(--color-link)); text-decoration: underline; text-underline-offset: 0.3rem; }
.member-page h1 { margin: 0 0 1.5rem; }
.member-page .lead { font-size: 1.7rem; margin-bottom: 3rem; }
.tier-grid { display: grid; gap: 1.5rem; margin: 3rem 0; }
@media screen and (min-width: 750px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier-card { border: 0.1rem solid rgba(var(--color-foreground), 0.2); padding: 2rem; }
.tier-card h2 { margin: 0 0 0.8rem; font-size: 2rem; }
.tier-card ul { margin: 1rem 0 0; padding-left: 1.8rem; }
.member-box { border: 0.1rem solid rgba(var(--color-foreground), 0.2); padding: 2rem; margin: 2rem 0; }
.member-box h2, .member-box h3 { margin: 0 0 1rem; }
.member-badge { display: inline-block; border: 0.1rem solid rgba(var(--color-foreground), 0.5); padding: 0.2rem 1rem; font-size: 1.2rem; letter-spacing: 0.1rem; margin-left: 0.8rem; vertical-align: middle; }
.member-badge--ok { background: rgb(var(--color-foreground)); color: rgb(var(--color-background)); }
.member-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; }
.member-form .field { margin-bottom: 2rem; }
.member-form .member-file { margin-bottom: 2rem; }
.member-form .member-file label { display: block; margin-bottom: 0.6rem; }
.member-form input[type=file] { width: 100%; padding: 1rem; border: 0.1rem dashed rgba(var(--color-foreground), 0.5); background: transparent; color: inherit; font: inherit; }
.member-form .hint { font-size: 1.3rem; opacity: 0.75; margin-top: 0.4rem; }
.member-error { color: #ff6b6b; font-size: 1.4rem; margin-top: 0.6rem; display: block; }
.member-notice { border: 0.1rem solid rgba(var(--color-foreground), 0.5); padding: 1.2rem 1.6rem; margin-bottom: 2rem; }
.wallet-balances { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.5rem 0; }
.wallet-balance { border: 0.1rem solid rgba(var(--color-foreground), 0.2); padding: 1.2rem 1.6rem; }
.wallet-balance strong { display: block; font-size: 2.4rem; line-height: 1.2; }
.wallet-balance span { font-size: 1.2rem; opacity: 0.8; }
.member-table { width: 100%; border-collapse: collapse; font-size: 1.4rem; }
.member-table th, .member-table td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.15); }
.member-table .num { text-align: right; white-space: nowrap; }
.invite-url { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.invite-url input { flex: 1; min-width: 20rem; background: transparent; color: inherit; border: 0.1rem solid rgba(var(--color-foreground), 0.4); padding: 0.8rem 1rem; font: inherit; font-size: 1.2rem; }
.event-blocked { margin: 2rem 0; padding: 1.5rem 1.8rem; border: 0.1rem solid rgba(var(--color-foreground), 0.4); }
.event-blocked p { margin: 0 0 1rem; }
.event-blocked p:last-child { margin: 0; }
.event-card-meta { padding: 1rem 0 0; font-size: 1.3rem; }
.event-card-meta p { margin: 0 0 0.4rem; }
.ticket { max-width: 42rem; margin: 0 auto; border: 0.2rem solid rgb(var(--color-foreground)); padding: 3rem; text-align: center; }
.ticket h1 { font-size: 2.4rem; }
.ticket .qr { position: relative; background: #fff; display: inline-block; padding: 1.6rem; margin: 2rem 0 1rem; line-height: 0; }
.ticket .qr svg { display: block; width: 24rem; height: 24rem; shape-rendering: crispEdges; }

/* The TWR logo sits in the middle of the code (the code uses level-H error correction, so it still scans) with a
   holographic shimmer: a rainbow foil and a light sweep, both masked to the logo's own shape. */
.qr-logo { position: absolute; left: 50%; top: 50%; width: 5.2rem; height: 5.2rem; transform: translate(-50%, -50%); border-radius: 50%;
  background: #060606 var(--logo) center / 128% no-repeat; border: 0.5rem solid #fff; box-sizing: content-box;
  box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.25), 0 0 0.8rem rgba(90, 255, 220, 0.5); overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: holo-glow 5s linear infinite; }
.qr-logo .holo { display: none; }
@supports ((mask-image: url(x)) or (-webkit-mask-image: url(x))) {
  .qr-logo .holo { display: block; position: absolute; inset: 0;
    -webkit-mask: var(--logo) center / 128% no-repeat; mask: var(--logo) center / 128% no-repeat;
    background-image:
      linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 50%, transparent 62%),
      repeating-linear-gradient(115deg, #00f5c4 0, #4f8bff 0.55rem, #c15bff 1.1rem, #ff5bd1 1.6rem, #ffd84f 2.1rem, #00f5c4 2.6rem);
    background-size: 300% 100%, auto; background-position: 150% 0, 0 0; filter: saturate(1.4) brightness(1.15);
    animation: holo-foil 3.2s linear infinite; }
}
@keyframes holo-foil { to { background-position: -50% 0, 2.36rem 1.1rem; } }
@keyframes holo-glow {
  0%, 100% { box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.25), 0 0 0.8rem rgba(90, 255, 220, 0.55); }
  33% { box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.25), 0 0 0.8rem rgba(120, 140, 255, 0.55); }
  66% { box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.25), 0 0 0.8rem rgba(255, 110, 220, 0.55); }
}
@media (prefers-reduced-motion: reduce) { .qr-logo, .qr-logo .holo { animation: none; } }
@media print { .qr-logo { animation: none; box-shadow: none; } .qr-logo .holo { display: none; } }
.ticket .code { font-size: 2.2rem; letter-spacing: 0.2rem; font-weight: 700; margin: 0.5rem 0 2rem; }
.ticket .status { display: inline-block; padding: 0.3rem 1.2rem; border: 0.1rem solid; margin-bottom: 1rem; }
.checkout-credit { border: 1px solid #dedede; border-radius: 5px; padding: 14px; margin-top: 8px; }
@media print { .header-wrapper, .announcement-bar-section, footer, .no-print { display: none !important; } body { background: #fff; color: #000; } .ticket { border-color: #000; } }

.event-card { display: block; height: 100%; color: inherit !important; text-decoration: none !important; border: 0.1rem solid rgba(var(--color-foreground), 0.15); background: rgb(var(--color-background)); }
.event-card:hover .card__heading { text-decoration: underline; text-underline-offset: 0.3rem; }
.event-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(var(--color-foreground), 0.05); }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__badge { position: absolute; left: 1rem; bottom: 1rem; }
.event-card__body { padding: 1.6rem; }
.event-card__body p { margin: 0 0 0.4rem; font-size: 1.4rem; }
.event-card__body .card__heading { margin-bottom: 0.8rem; }
.event-card__price { margin-top: 0.8rem !important; }
.event-card__note { opacity: 0.7; font-size: 1.2rem !important; }
.member-form .field { display: block; }
.member-form .field .field__input { width: 100%; }
