/* ===== Tokens ===== */
:root{
  --bg: #1F1F1F;
  --surface-1: #292929;
  --surface-2: #2C2C2C;
  --surface-tile: #262626;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --text: #ffffff;
  --text-secondary: rgba(255,255,255,0.62);
  --text-muted: rgba(255,255,255,0.38);
  --accent: #693AE1;
  --accent-hover: #7c50e8;
  --accent-text: #ffffff;
  --success: #2FD97A;
  --error: #FF5A6E;
  --white-panel: #ffffff;
  --white-panel-text: #16151b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --header-h: 217px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; height:100%; background:#000; }
body{
  font-family:'Poppins', -apple-system, sans-serif;
  color: var(--text);
  overflow: hidden;
}

#viewport{
  position: fixed;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
}

#stage{
  width: 1920px;
  height: 1080px;
  transform-origin: center center;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.kiosk{
  width: 1920px;
  height: 1080px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ===== Screens ===== */
.screen{
  position:absolute;
  inset:0;
  display:none;
  flex-direction:column;
  background: var(--bg);
}
.screen.active{ display:flex; }
.screen-scroll{
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
}
.screen-scroll::-webkit-scrollbar{ width:10px; }
.screen-scroll::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius:8px; }

/* ===== Header / chrome ===== */
.kiosk-header{
  height: var(--header-h);
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 40px;
  position: relative;
  z-index: 5;
}
.kiosk-header.on-dark{ color:#fff; }
.kiosk-header.on-light{ color:#16151b; }

.pill-btn{
  height:59px;
  padding:0 28px;
  border-radius:999px;
  border:none;
  background:#ffffff;
  color: var(--accent);
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  letter-spacing:0.02em;
  text-transform:uppercase;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: background .15s var(--ease), opacity .15s var(--ease), transform .1s var(--ease);
}
.pill-btn svg{ width:9px; height:14px; flex-shrink:0; }
.pill-btn:hover{ background: #f0edfc; }
.pill-btn:active{ transform: translateY(1px); }
.pill-btn[disabled]{ opacity:.35; cursor:not-allowed; }
.pill-btn:disabled:hover{ background:#ffffff; }

.header-side{ display:flex; align-items:center; gap:14px; min-width: 220px; }
.header-side.right{ justify-content:flex-end; }

.icon-btn{
  width:44px; height:44px; border-radius:50%;
  border:1.5px solid currentColor;
  background:transparent;
  color:inherit;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.icon-btn:hover{ background: rgba(255,255,255,0.08); }
.on-light .icon-btn:hover{ background: rgba(0,0,0,0.06); }

.icon-btn-bell{
  width:52px; height:52px; border-radius:50%; border:none; background:transparent;
  padding:0; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: transform .15s var(--ease);
}
.icon-btn-bell img{ width:100%; height:100%; display:block; }
.icon-btn-bell:active{ transform: scale(0.92); }

.brand-lockup{
  display:flex; align-items:center; justify-content:center;
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
}
.brand-lockup .brand-logo{ height:72px; width:auto; display:block; }

/* ===== Buttons ===== */
.btn{
  height:56px;
  padding:0 32px;
  border-radius:999px;
  border:none;
  font-family:inherit;
  font-size:14px;
  font-weight:800;
  letter-spacing:0.05em;
  text-transform:uppercase;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition: background .15s var(--ease), opacity .15s var(--ease), transform .1s var(--ease);
}
.btn-primary{ background: var(--accent); color:#fff; }
.btn-primary:hover{ background: var(--accent-hover); }
.btn-primary:active{ transform: translateY(1px); }
.btn-primary[disabled]{ background: rgba(255,255,255,0.10); color: var(--text-muted); cursor:not-allowed; }
.sign-panel .btn-primary[disabled]{ background: rgba(22,21,27,0.12); color: rgba(22,21,27,0.4); }
.btn-primary.is-incomplete{ background: rgba(255,255,255,0.10); color: var(--text-muted); }
.btn-primary.is-incomplete:hover{ background: rgba(255,255,255,0.10); }
.btn-ghost{ background:transparent; color:#fff; border:1.5px solid var(--border-strong); }
.btn-ghost:hover{ background: rgba(255,255,255,0.06); }
.btn-full{ width:100%; }

.text-link{
  background:none; border:none; color: #fff;
  font-family:inherit; font-size:14px; font-weight:700; cursor:pointer;
  text-decoration:underline; text-underline-offset:3px; padding:0;
}
.text-link:hover{ color: var(--accent-hover); }

/* ===== Welcome ===== */
.screen-welcome .screen-body{
  flex:1; position:relative; display:flex; align-items:center; justify-content:center;
  text-align:center; overflow:hidden;
}
.venue-bg{ position:absolute; inset:0; z-index:0; background-size:cover; background-position:center; }
.venue-bg.sydney{ background-image: url('assets/Kiosk - Welcome screen.png'); }

.welcome-content{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:32px; }
.welcome-eyebrow{ font-size:28px; font-weight:500; color: #ffffff; }
.welcome-logo{ width:520px; height:auto; }
.welcome-cta{ margin-top:8px; }

.screen-hub > .kiosk-header, .screen-hub > .screen-scroll{ position:relative; z-index:1; }

/* ===== Hub ===== */
.hub-title{ text-align:center; font-size:36px; font-weight:500; margin: 29px 0 62px; }
.hub-grid{ display:flex; gap:55px; justify-content:center; }
.hub-tile{
  width: 396px;
  background: var(--accent);
  border-radius: 24px;
  padding: 37px 40px 32px;
  display:flex; flex-direction:column;
  cursor:pointer; border:none; color:#fff; text-align:left;
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.hub-tile:active{ background: var(--accent-hover); transform: scale(0.97); }
.hub-tile[disabled]{ opacity:0.65; cursor:not-allowed; }
.hub-tile[disabled]:active{ background: var(--accent); transform:none; }
.hub-tile-headblock{ min-height:156px; }
.hub-tile-title{ font-size:32px; font-weight:700; text-transform:uppercase; }
.hub-tile-eyebrow{ font-size:18px; font-weight:700; margin-top:16px; text-transform:uppercase; }
.hub-tile-desc{ font-size:17px; line-height:1.55; color: rgba(255,255,255,0.92); }
.hub-tile-time{ font-size:17px; font-weight:600; margin-top:25px; }

/* ===== Legal / long-form pages ===== */
.legal-wrap{ max-width: 1200px; margin: 0 auto; padding: 20px 40px 80px; }
.legal-h1{ font-size:36px; font-weight:500; text-align:center; margin: 48px 0 20px; }
.legal-h1:first-child{ margin-top:0; }
.legal-intro{ text-align:center; max-width:760px; margin:0 auto; color: var(--text-secondary); font-size:16px; line-height:1.6; }
.legal-panel{
  border:1px solid var(--border); border-radius: var(--radius-md);
  padding:26px 30px; max-height: 280px; overflow-y:scroll;
  color: var(--text-secondary); font-size:14px; line-height:1.7;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.legal-panel::-webkit-scrollbar{ width:10px; }
.legal-panel::-webkit-scrollbar-track{ background:transparent; }
.legal-panel::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius:8px; }
.legal-panel p{ margin:0 0 14px; }
.legal-panel p:last-child{ margin-bottom:0; }
.legal-checks{ display:flex; flex-direction:column; gap:16px; margin-top:28px; }
.check-row{ display:flex; align-items:flex-start; gap:14px; font-size:14px; color:var(--text-secondary); line-height:1.6; }
.check-row input{ width:20px; height:20px; margin-top:2px; accent-color: var(--accent); flex-shrink:0; }

.consent-checkbox{ display:flex; align-items:flex-start; gap:14px; font-size:17px; font-weight:600; color: var(--text); cursor:pointer; }
.consent-checkbox input{ width:24px; height:24px; margin-top:2px; accent-color: var(--accent); flex-shrink:0; cursor:pointer; }
.consent-list{ margin: 20px 0 0; padding-left:26px; color: var(--text-secondary); font-size:15px; line-height:1.7; display:flex; flex-direction:column; gap:10px; }
.legal-footnote{ color: var(--text-secondary); font-size:15px; line-height:1.6; margin-top:24px; }

.signature-reveal{ margin-top:36px; }
.error-banner{
  display:flex; align-items:center; gap:10px; background:#fbdce1; color:#9c1f2e;
  border-radius: var(--radius-sm); padding:14px 18px; font-size:14px; font-weight:700; margin:20px 0 16px;
}
.sign-clear-dark{
  display:block; margin-left:auto; margin-top:8px; background:none; border:none; cursor:pointer;
  color: var(--text-muted); font-size:13px; font-weight:700;
}
.agree-footer{
  flex-shrink:0; padding: 20px 40px 40px; display:flex; justify-content:center;
  background: linear-gradient(to bottom, transparent, var(--bg) 45%);
}
.btn-agree{ width:400px; background:transparent; border:1.5px solid var(--border-strong); color:#fff; }
.btn-agree:hover{ background: rgba(255,255,255,0.06); }
.btn-agree.is-active{ background: var(--accent); border-color: var(--accent); }
.btn-agree.is-active:hover{ background: var(--accent-hover); }

.form-footer{
  flex-shrink:0; padding: 20px 80px 40px;
  background: linear-gradient(to bottom, transparent, var(--bg) 45%);
}
.form-footer-inner{ max-width:900px; margin:0 auto; }

.sign-panel{
  background:#fff; color: var(--white-panel-text);
  padding:24px 40px; flex-shrink:0;
  display:flex; align-items:center; justify-content:space-between; gap:40px;
  border-top:1px solid rgba(0,0,0,0.08);
}
.sign-instruction{ font-size:13px; font-weight:700; color: rgba(22,21,27,0.55); }
.sign-pad-wrap{ flex:1; display:flex; align-items:center; gap:24px; }
canvas.sign-pad{ width:100%; height:120px; background:#fafafa; border:1px dashed rgba(0,0,0,0.2); border-radius:8px; touch-action:none; }
.sign-clear{ font-size:12px; font-weight:800; letter-spacing:0.08em; text-transform:uppercase; color:rgba(22,21,27,0.5); background:none; border:none; cursor:pointer; white-space:nowrap; }

/* ===== Forms ===== */
.form-shell{ display:flex; flex:1; }

/* ===== Horizontal progress tabs (multi-screen sub-flow indicator) ===== */
.progress-tabs{ display:flex; justify-content:center; gap:16px; padding: 8px 56px 24px; flex-shrink:0; }
.progress-tab{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.progress-tab-label{ font-size:15px; font-weight:400; color: var(--text-muted); }
.progress-tab.done .progress-tab-label{ color: var(--text-secondary); }
.progress-tab.current .progress-tab-label{ color:#fff; font-weight:600; }
.progress-tab-bar{ width:280px; height:2px; border-radius:0; background: var(--border-strong); }
.progress-tab.done .progress-tab-bar, .progress-tab.current .progress-tab-bar{ background: var(--accent); }

/* ===== ID verification intro ===== */
.id-intro-inner{ width:100%; max-width:1200px; text-align:center; }
.id-intro-inner .legal-h1{ text-align:center; }
.id-intro-steps{ display:flex; margin: 56px 0 48px; text-align:left; }
.id-intro-step{ display:flex; gap:16px; flex:1; padding: 0 32px; }
.id-intro-step:first-child{ padding-left:0; }
.id-intro-step:last-child{ padding-right:0; }
.id-intro-step:not(:last-child){ border-right:1px solid var(--border); }
.id-intro-num{ font-size:52px; font-weight:300; color: var(--text-muted); line-height:1; flex-shrink:0; }
.id-intro-step p{ font-size:15px; line-height:1.6; color: var(--text-secondary); margin:0; }
.id-intro-step p strong{ color:#fff; font-weight:700; }
.id-intro-inner .btn-primary{ height:68px; padding:0 56px; font-size:16px; }

.form-main{ flex:1; padding: 44px 80px 60px; max-width: 900px; margin: 0 auto; }
.form-title{ font-size:36px; font-weight:500; margin-bottom:20px; text-align:center; }
.form-note{
  background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-md);
  padding:16px 20px; font-size:13px; color: var(--text-secondary); line-height:1.6; margin-bottom:28px;
}
.form-note strong{ color:#fff; text-transform:uppercase; letter-spacing:0.04em; font-size:12px; }
.form-note-list{ margin:10px 0 0; padding-left:20px; }
.form-note-list li{ margin-bottom:6px; }
.form-note-list li:last-child{ margin-bottom:0; }
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:12px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; color: rgba(255,255,255,0.8); }
.field-label{ display:block; font-size:12px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; color: rgba(255,255,255,0.8); margin-bottom:10px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select{
  height:52px; border-radius: var(--radius-sm); border:1px solid var(--border-strong);
  background: var(--surface-1); color:#fff; padding:0 16px; font-family:inherit; font-size:15px;
}
.field input::placeholder{ color: rgba(255,255,255,0.5); }
.field input:focus, .field select:focus{ outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent); }
.field-invalid{ outline:2px solid var(--accent) !important; outline-offset:1px; border-color:var(--accent) !important; transition: outline-color .15s var(--ease), border-color .15s var(--ease); }
.field input:disabled{ background: var(--surface-2); color: var(--text-secondary); cursor:not-allowed; }
.field select:disabled{ background-color: var(--surface-2); background-image:none; color: var(--text-secondary); cursor:not-allowed; }
.field-phone{ display:flex; gap:10px; }
.address-autocomplete{ position:relative; width:100%; }
.address-autocomplete input{ width:100%; }
.address-suggestions{
  position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:30;
  background: var(--surface-1); border:1px solid var(--border-strong); border-radius: var(--radius-sm);
  max-height:240px; overflow-y:auto; box-shadow:0 12px 30px rgba(0,0,0,0.4);
}
.address-suggestion-item{ padding:13px 16px; font-size:14px; color:#fff; cursor:pointer; border-bottom:1px solid var(--border); }
.address-suggestion-item:last-child{ border-bottom:none; }
.address-suggestion-item:hover{ background: var(--surface-2); }
.address-suggestion-item strong{ font-weight:700; }
.field-phone select{ width:90px; flex-shrink:0; }
.field-phone input{ flex:1; }
.field select{ appearance:none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 16px center; }
.field select:invalid{ color: rgba(255,255,255,0.5); }
.field select option{ color: var(--white-panel-text); }
.field input.field-date{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Crect x='1.5' y='3' width='15' height='13' rx='2' stroke='%23888' stroke-width='1.4'/%3E%3Cpath d='M1.5 7h15' stroke='%23888' stroke-width='1.4'/%3E%3Cpath d='M5 1.5v3M13 1.5v3' stroke='%23888' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M5.5 10.5l1.3 1.3L9.5 9' stroke='%23888' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right 16px center; padding-right:46px;
}

.toggle-row{ display:flex; align-items:center; gap:14px; }
.toggle-opt{
  height:44px; padding:0 22px; border-radius:999px; border:1.5px solid var(--border-strong);
  background:transparent; color: var(--text-secondary); font-family:inherit; font-weight:700; font-size:13px; cursor:pointer;
}
.toggle-opt.selected{ background: var(--accent); border-color: var(--accent); color:#fff; }

.form-actions{ margin-top:36px; display:flex; align-items:center; gap:20px; }
.form-hint{ font-size:12px; color: var(--text-muted); margin-top:10px; }
.form-hint-light{ font-size:14px; color: rgba(255,255,255,0.85); margin-top:32px; }

/* ===== ID method / instructions ===== */
.centered-card-wrap{ flex:1; display:flex; align-items:center; justify-content:center; }
.method-grid{ display:flex; gap:28px; }
.method-card{
  width: 340px; padding:36px 30px; border-radius: var(--radius-lg);
  background: var(--accent); border:1.5px solid var(--accent);
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:16px;
  cursor:pointer; color:#fff;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.method-card:active{ background: var(--accent-hover); border-color: var(--accent-hover); transform: scale(0.97); }
.method-icon{ width:56px; height:56px; }
.method-title{ font-size:18px; font-weight:800; }
.method-desc{ font-size:13px; color: rgba(255,255,255,0.7); line-height:1.5; }

/* ===== Account type chooser (persistent selection, not a one-shot navigation card) ===== */
.form-section-gap{ margin-top:48px; }
.method-card.choice{
  width:340px; min-height:240px; background: var(--surface-1); border-color: var(--border-strong);
  align-items:stretch; text-align:left; position:relative; padding:60px 30px 28px;
}
.method-card.choice.selected{ background: var(--accent); border-color: var(--accent); }
.method-card.choice.selected[data-type="club"]{ background: linear-gradient(135deg, #C53AE1 0%, #693AE1 97%); border-color: transparent; }
.method-card.choice.selected[data-type="card"]{ background: linear-gradient(135deg, #D71F28 0%, #842785 100%); border-color: transparent; }
.method-card.choice:active{ transform: scale(0.98); }
.choice-badge{
  position:absolute; top:22px; left:30px; background:#fff; color: var(--accent);
  font-size:11px; font-weight:800; letter-spacing:0.06em; text-transform:uppercase;
  padding:6px 14px; border-radius:999px;
}
.choice-tap-hint{
  position:absolute; top:24px; right:26px; font-size:11px; font-weight:800;
  letter-spacing:0.06em; text-transform:uppercase; color: rgba(255,255,255,0.5);
}
.method-card.choice.selected .choice-tap-hint{ display:none; }
.choice-sub{ font-size:13px; color: rgba(255,255,255,0.55); margin-top:4px; transition: color .15s var(--ease); }
.method-card.choice.selected .choice-sub{ color: rgba(255,255,255,0.85); }
.choice-benefits{ list-style:none; padding:0; margin:22px 0 0; display:flex; flex-direction:column; gap:10px; }
.choice-benefits li{
  display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600;
  color:#fff; opacity:0.4; transition: opacity .15s var(--ease);
}
.method-card.choice.selected .choice-benefits li{ opacity:1; }
.choice-benefits li::before{
  content:''; flex-shrink:0; width:16px; height:16px;
  background-repeat:no-repeat; background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.scan-frame{
  width:420px; padding:44px 40px; border-radius: var(--radius-lg);
  background:#fff; color: var(--white-panel-text); text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:24px;
}
.scan-frame .viewport-box{
  width:260px; height:170px; border:3px dashed rgba(22,21,27,0.25); border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 20px; flex-shrink:0; overflow:hidden;
}
.scan-frame .viewport-box.face{ width:180px; height:220px; border-radius:50%; }
.scan-frame .viewport-box img{ max-width:100%; max-height:100%; border-radius:8px; }
.viewport-doc-img, .viewport-face-img{ width:100%; height:100%; object-fit:cover; display:block; max-width:none; max-height:none; border-radius:0; }
.countdown-number{ font-size:68px; font-weight:800; color: var(--white-panel-text); font-family:inherit; }
.scan-msg{ font-size:15px; font-weight:700; }
.scan-sub{ font-size:13px; color:rgba(22,21,27,0.55); }
.progress-bar{ width:100%; height:6px; border-radius:4px; background: rgba(0,0,0,0.08); overflow:hidden; }
.progress-bar-fill{ height:100%; background: var(--success); width:0%; transition:width .3s linear; }
.check-badge{ width:56px; height:56px; border-radius:50%; background: var(--success); display:flex; align-items:center; justify-content:center; margin:0 auto; }
#takePhotoBtn{ margin-top:28px; }

/* ===== PIN ===== */
.pin-wrap{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:36px; }
.pin-title{ font-size:36px; font-weight:500; }
.pin-sub{ font-size:14px; color: var(--text-secondary); text-align:center; max-width:440px; line-height:1.6; }
.pin-dots{ display:flex; gap:18px; }
.pin-dot{ width:60px; height:60px; border-radius:10px; background: var(--surface-2); border:1.5px solid var(--border-strong); display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:800; }
.pin-dot.filled{ border-color: var(--accent); }
.pin-dot.error{ border-color: var(--error); animation: shake .3s; }
@keyframes shake{ 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.pin-error-msg{ color: var(--error); font-size:13px; font-weight:700; min-height:18px; }
.keypad{ display:grid; grid-template-columns: repeat(3, 80px); gap:16px; }
.key{ width:80px; height:80px; border-radius:50%; background: var(--surface-2); border:1px solid var(--border); color:#fff; font-size:24px; font-weight:700; cursor:pointer; }
.key:hover{ background: var(--surface-tile); }
.key.wide{ grid-column: 2; }

/* ===== Preferences ===== */
.pref-toggle-row{ display:flex; align-items:center; justify-content:space-between; }
.pref-field-reveal{ margin-top:12px; }
.pref-field-reveal input{ width:100%; }
.switch{ position:relative; display:inline-flex; align-items:center; cursor:pointer; flex-shrink:0; }
.switch input{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.switch-track{ width:52px; height:30px; background: var(--surface-2); border:1.5px solid var(--border-strong); border-radius:999px; position:relative; transition: background .15s var(--ease), border-color .15s var(--ease); }
.switch-knob{ position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:50%; background:#fff; transition: transform .15s var(--ease); }
.switch input:checked ~ .switch-track{ background: var(--accent); border-color: var(--accent); }
.switch input:checked ~ .switch-track .switch-knob{ transform: translateX(22px); }
.switch input:focus-visible ~ .switch-track{ outline:2px solid var(--accent); outline-offset:2px; }

/* ===== Success / card ===== */
.center-flex{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:26px; text-align:center; }
.countdown-ring{ position:relative; width:96px; height:96px; }
.countdown-ring svg{ transform: rotate(-90deg); }
.countdown-ring .num{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:30px; font-weight:800; }
.success-title{ font-size:36px; font-weight:500; }
.success-sub{ font-size:14px; color: var(--text-secondary); max-width:480px; line-height:1.6; }

.member-card{
  width:300px; height:190px; border-radius:16px; position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:flex-end; padding:22px;
  background-size:cover; background-position:center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.member-card.club{ background-image:url('assets/CardBronze.png'); }
.member-card.player{ background-image:url('assets/CardPlayer.png'); }
.qr-box{ width:120px; height:120px; background:#fff; border-radius:10px; display:flex; align-items:center; justify-content:center; padding:10px; }
.qr-box img{ width:100%; height:100%; object-fit:contain; }

/* ===== misc ===== */
.status-inline{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color: var(--success); }
.hidden{ display:none !important; }

/* ===== Modal overlay (help / confirm popups, white card) ===== */
.modal-overlay{
  position:absolute; inset:0; z-index:1000;
  background: rgba(0,0,0,0.6);
  display:flex; align-items:center; justify-content:center;
  animation: modal-fade-in .2s var(--ease);
}
@keyframes modal-fade-in{ from{ opacity:0; } to{ opacity:1; } }
.modal-card{
  width:460px; background:#fff;
  border-radius: var(--radius-lg); padding:48px 40px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.modal-icon{ width:72px; height:72px; }
.modal-icon img{ width:100%; height:100%; }
.modal-title{ font-size:22px; font-weight:700; color: var(--white-panel-text); }
.modal-text{ font-size:15px; color: rgba(22,21,27,0.55); line-height:1.6; max-width:340px; }
.modal-card > .btn{ margin-top:8px; min-width:160px; }
.modal-actions{ display:flex; gap:16px; width:100%; justify-content:center; margin-top:8px; }
.modal-actions .btn{ flex:1; max-width:180px; }
.btn-outline-accent{ background:#fff; color: var(--accent); border:1.5px solid var(--accent); }
.btn-outline-accent:hover{ background: rgba(105,58,225,0.06); }
.btn-outline-accent:active{ transform: translateY(1px); }
