:root {
  --ink: #090a0c;
  --ink-soft: #141519;
  --paper: #f4f1e9;
  --white: #fff;
  --gold: #e8b83f;
  --gold-soft: #f4d277;
  --red: #e43b32;
  --muted: #929399;
  --line: rgba(255,255,255,.11);
  --dark-line: #ddd8cd;
  --green: #237b42;
  --shadow: 0 28px 80px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body, button, input { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { height: 78px; max-width: 1440px; margin: 0 auto; padding: 0 52px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-size: 22px; font-weight: 1000; box-shadow: -5px 5px 0 var(--red); transform: skew(-7deg); }
.brand-name { font-size: 15px; font-weight: 950; letter-spacing: .06em; }
.brand-name small { display: block; margin-top: 1px; color: #777980; font-size: 7px; letter-spacing: .24em; }
.main-nav { display: flex; align-items: center; gap: 30px; color: #b8b9bd; font-size: 12px; font-weight: 650; }
.main-nav a:hover { color: var(--gold); }
.nav-button { padding: 10px 18px; border: 1px solid rgba(255,255,255,.28); color: white !important; }
.button { min-height: 48px; padding: 0 22px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 11px; cursor: pointer; font-weight: 850; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: var(--ink); box-shadow: 0 12px 35px rgba(232,184,63,.16); }
.button-primary:hover { background: var(--gold-soft); }
.button-light { background: white; color: var(--ink); }
.button-outline-dark { color: var(--ink); border: 1px solid #aaa69c; background: transparent; }
.full-button { width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.eyebrow i { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.dark-eyebrow { color: var(--red); }
.pale-eyebrow { color: #ffd7d4; }
.centered { justify-content: center; }
.flash { width: min(820px, calc(100% - 32px)); margin: 18px auto -2px; padding: 13px 17px; display: flex; gap: 10px; position: relative; z-index: 50; font-size: 12px; }
.flash-error { background: #fde4e1; color: #92241e; border-left: 4px solid var(--red); }
.flash-success { background: #ddf1e4; color: #1f6b39; border-left: 4px solid #319254; }

/* Landing */
.hero-section { min-height: 660px; max-width: 1440px; margin: 0 auto; padding: 68px 52px 72px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; position: relative; overflow: hidden; }
.hero-grid-pattern { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 50px 50px; mask-image: linear-gradient(90deg,#000,transparent 72%); }
.hero-content, .hero-visual { position: relative; z-index: 1; }
.hero-season { margin: 6px 0 7px; color: #b8b9bd; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.hero-content h1, .registration-intro h1, .login-promo h1, .admin-login-branding h1, .dashboard-welcome h1, .admin-heading h1 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(64px, 6.5vw, 98px); font-weight: 900; line-height: .86; letter-spacing: .005em; }
h1 em { color: var(--gold); font-style: normal; }
.hero-description { max-width: 520px; color: #aaaab0; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 29px; }
.text-link { padding-bottom: 3px; border-bottom: 1px solid #55565b; font-size: 12px; font-weight: 750; }
.trust-list { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 31px; color: #85868c; font-size: 10px; }
.trust-list b { color: var(--gold); }
.hero-visual { padding: 10px; border: 1px solid rgba(232,184,63,.25); background: #111216; box-shadow: var(--shadow); transform: rotate(.8deg); }
.hero-visual::before { content: ""; position: absolute; left: -9px; top: -8px; width: 45%; height: 4px; background: linear-gradient(90deg,var(--red) 32%,var(--gold) 32%); }
.hero-visual img { display: block; width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.grand-prize-label { position: absolute; z-index: 2; top: 23px; right: 23px; padding: 8px 11px; background: var(--gold); color: var(--ink); font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.hero-prize-footer { min-height: 68px; padding: 12px 14px 3px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }
.hero-prize-footer span { color: #74767c; font-size: 8px; letter-spacing: .18em; }
.hero-prize-footer strong { font-family: Impact,sans-serif; font-size: 25px; letter-spacing: .04em; }
.hero-prize-footer b { color: var(--gold); font-size: 30px; }
.running-line { height: 58px; padding: 0 20px; display: flex; justify-content: center; align-items: center; gap: 27px; overflow: hidden; white-space: nowrap; border-block: 1px solid rgba(232,184,63,.2); background: #0e0f12; color: #c9c9cc; font-family: Impact,sans-serif; font-size: 16px; letter-spacing: .15em; }
.running-line i { color: var(--gold); font-style: normal; }
.process-section { padding: 96px max(45px,calc((100vw - 1320px)/2)); background: var(--paper); color: var(--ink); }
.section-heading { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 55px; }
.section-heading h2, .home-cta h2 { margin: 0; font-family: Impact,sans-serif; font-size: clamp(50px,5vw,72px); line-height: .9; }
.section-heading > p { max-width: 500px; margin: 0; color: #65666b; font-size: 14px; line-height: 1.75; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; margin-top: 50px; }
.process-grid article { min-height: 255px; padding: 28px; background: white; border: 1px solid #dcd7cc; position: relative; }
.process-grid article > span { position: absolute; right: 22px; top: 15px; color: #e6e1d6; font-family: Impact,sans-serif; font-size: 48px; }
.process-grid article > b { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-size: 10px; letter-spacing: .08em; }
.process-grid h3 { margin: 35px 0 10px; font-size: 19px; }
.process-grid p { margin: 0; color: #74757a; font-size: 13px; line-height: 1.65; }
.home-cta { max-width: 1320px; min-height: 275px; margin: 85px auto; padding: 50px 62px; display: flex; align-items: center; justify-content: space-between; gap: 50px; background: var(--red); position: relative; overflow: hidden; }
.home-cta::after { content: "Z"; position: absolute; right: -25px; top: -130px; color: rgba(0,0,0,.09); font-family: Impact,sans-serif; font-size: 420px; transform: rotate(-8deg); }
.home-cta > * { position: relative; z-index: 1; }
.site-footer { min-height: 115px; max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: #77787d; font-size: 10px; }
.site-footer > a { color: #bbbcc0; font-weight: 750; }

/* Forms */
.form-page-shell { max-width: 1260px; margin: 0 auto; padding: 62px 38px 90px; display: grid; grid-template-columns: .68fr 1.32fr; gap: 70px; align-items: start; }
.registration-intro { position: sticky; top: 30px; padding-top: 17px; }
.registration-intro h1 { font-size: clamp(60px,5.8vw,86px); }
.registration-intro > p:not(.eyebrow) { max-width: 410px; color: #a1a2a7; font-size: 14px; line-height: 1.7; }
.small-prize { margin: 31px 0 23px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(232,184,63,.27); background: rgba(232,184,63,.05); }
.small-prize > b { width: 39px; height: 39px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(232,184,63,.35); font-size: 9px; }
.small-prize span { color: #75767c; font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.small-prize strong { display: block; margin-top: 3px; color: white; font-family: Impact,sans-serif; font-size: 23px; letter-spacing: .04em; }
.registration-intro ul { padding: 0; margin: 0; list-style: none; color: #9a9ba0; font-size: 11px; }
.registration-intro li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.registration-intro li span { margin-right: 8px; color: var(--gold); }
.form-card { background: #f7f5ef; color: var(--ink); border-top: 5px solid var(--gold); box-shadow: var(--shadow); }
.form-card-header { height: 65px; padding: 0 33px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--dark-line); }
.form-card-header span { font-size: 12px; font-weight: 900; letter-spacing: .11em; }
.form-card-header small { color: #8a8b8f; font-size: 9px; }
.registration-form { padding: 34px 33px 38px; }
.form-step { display: flex; gap: 13px; align-items: center; margin-bottom: 21px; }
.form-step > b { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-size: 9px; }
.form-step > span { display: flex; flex-direction: column; }
.form-step strong { font-size: 15px; }
.form-step small { margin-top: 2px; color: #85868a; font-size: 9px; }
.form-grid { display: grid; gap: 18px; }
.two-cols { grid-template-columns: 1fr 1fr; }
.input-group { display: block; }
.input-group > span { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 800; }
.input-group input { width: 100%; height: 47px; padding: 0 12px; border: 1px solid #c9c5ba; border-radius: 0; outline: 0; background: white; color: var(--ink); font-size: 12px; }
.input-group input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,184,63,.13); }
.input-group small { display: block; margin-top: 5px; color: #929398; font-size: 8px; line-height: 1.45; }
.password-input > div { position: relative; }
.password-input input { padding-right: 53px; }
.password-input button { position: absolute; top: 0; right: 0; width: 52px; height: 47px; border: 0; background: transparent; color: #77787c; font-size: 9px; font-weight: 750; cursor: pointer; }
.form-divider { height: 1px; margin: 29px 0; background: var(--dark-line); }
.photo-upload { display: flex; align-items: center; gap: 20px; }
.photo-preview-box { width: 105px; height: 128px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px dashed #aaa69b; background: #ece9e1; color: #9b9993; }
.photo-preview-box > div { text-align: center; }
.photo-preview-box b { display: block; font-size: 11px; }
.photo-preview-box span { display: block; margin-top: 3px; font-size: 8px; }
.photo-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.file-picker input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.file-picker strong { display: inline-flex; padding: 10px 15px; border: 1px solid #b9b5aa; background: white; font-size: 10px; cursor: pointer; }
.file-picker small { display: block; margin-top: 8px; color: #88898d; font-size: 8px; }
.checkbox-row { margin: 26px 0 17px; display: grid; grid-template-columns: auto 18px 1fr; gap: 0 8px; align-items: start; color: #6b6c70; cursor: pointer; }
.checkbox-row input { position: absolute; opacity: 0; }
.checkbox-row > span { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #aaa69b; color: transparent; font-size: 10px; }
.checkbox-row input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.checkbox-row p { margin: 0; font-size: 9px; line-height: 1.5; }
.form-switch { margin: 16px 0 0; text-align: center; color: #85868a; font-size: 9px; }
.form-switch a, .login-bottom a { color: #9a6d0d; font-weight: 850; }

/* Login */
.login-page, .admin-login-page { background: radial-gradient(circle at 20% 50%,rgba(228,59,50,.13),transparent 34%),var(--ink); }
.login-shell, .admin-login-shell { max-width: 1160px; min-height: calc(100vh - 193px); margin: 0 auto; padding: 68px 42px 85px; display: grid; grid-template-columns: 1fr 455px; gap: 105px; align-items: center; }
.login-promo h1, .admin-login-branding h1 { font-size: clamp(58px,5.3vw,83px); }
.login-promo > p:not(.eyebrow), .admin-login-branding > p { max-width: 500px; color: #a2a3a8; font-size: 14px; line-height: 1.7; }
.login-points { max-width: 430px; margin-top: 25px; display: grid; }
.login-points span { padding: 14px 0; border-top: 1px solid var(--line); color: #999aa0; font-size: 10px; }
.login-points b { margin-right: 10px; color: var(--gold); }
.login-card { padding: 42px; background: #f7f5ef; color: var(--ink); border-top: 5px solid var(--gold); box-shadow: var(--shadow); text-align: center; }
.login-symbol { width: 45px; height: 45px; margin: 0 auto 22px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-size: 24px; font-weight: 950; box-shadow: -5px 5px 0 var(--red); }
.login-card h2 { margin: 0; font-size: 24px; }
.login-card > p:not(.eyebrow) { margin: 8px auto 26px; color: #86878b; font-size: 10px; }
.login-form { display: grid; gap: 18px; text-align: left; }
.login-bottom { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--dark-line); color: #77787d; font-size: 10px; }
.admin-label { display: inline-block; margin-bottom: 14px; padding: 7px 10px; border: 1px solid rgba(232,184,63,.3); color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.admin-security { max-width: 430px; margin-top: 30px; padding: 16px; display: flex; gap: 12px; border: 1px solid rgba(232,184,63,.23); color: var(--gold); }
.admin-security span { display: flex; flex-direction: column; }
.admin-security strong { color: white; font-size: 10px; }
.admin-security small { margin-top: 3px; color: #808187; font-size: 8px; }
.admin-login-note { margin-top: 22px; padding: 11px; background: #ece9e1; color: #737478; font-size: 9px; }

/* Dashboard and card preview */
.dashboard-page, .admin-dashboard-page { background: #f0eee7; color: var(--ink); }
.dashboard-page .topbar, .admin-dashboard-page .topbar { max-width: none; background: var(--ink); border-bottom: 3px solid var(--gold); }
.dashboard-shell, .admin-shell { max-width: 1320px; margin: 0 auto; padding: 55px 30px 80px; }
.dashboard-welcome, .admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.dashboard-welcome h1, .admin-heading h1 { font-size: clamp(50px,5vw,72px); }
.dashboard-welcome > div:first-child > p:last-child, .admin-heading > div:first-child > p:last-child { max-width: 590px; color: #6c6d72; font-size: 12px; line-height: 1.6; }
.active-status { min-width: 280px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid #b8dec3; background: #e0f2e5; color: var(--green); }
.active-status > b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: white; }
.active-status span { display: flex; flex-direction: column; font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.active-status strong { margin-top: 3px; font-size: 11px; letter-spacing: 0; }
.dashboard-grid { margin-top: 38px; display: grid; grid-template-columns: 1.36fr .64fr; gap: 24px; }
.dashboard-panel { padding: 27px; background: white; border: 1px solid #dcd7cc; }
.panel-heading { margin-bottom: 21px; display: flex; justify-content: space-between; align-items: center; }
.panel-heading > span { display: flex; flex-direction: column; }
.panel-heading small { color: var(--red); font-size: 7px; font-weight: 900; letter-spacing: .18em; }
.panel-heading strong { margin-top: 3px; font-size: 18px; }
.panel-heading em { color: #8b8c90; font-size: 7px; font-style: normal; letter-spacing: .12em; }
.id-card-preview { max-width: 730px; margin: 0 auto; padding: 20px 22px 13px; aspect-ratio: 1.586; position: relative; overflow: hidden; background: radial-gradient(circle at 86% 12%,rgba(232,184,63,.18),transparent 34%),linear-gradient(135deg,#08090b,#19140c); color: white; box-shadow: 0 22px 50px rgba(0,0,0,.25); }
.id-card-preview::after, .standard-id-card::after { content: "Z"; position: absolute; right: -12px; bottom: -85px; color: rgba(255,255,255,.035); font-family: Impact,sans-serif; font-size: 290px; transform: rotate(-8deg); }
.card-topline { position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--gold); }
.card-header, .standard-card-header { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.card-brand, .standard-brand { display: flex; align-items: center; gap: 8px; }
.card-brand > b, .standard-brand > b { color: var(--gold); font-size: 28px; }
.card-brand span, .standard-brand span { font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.card-brand small, .standard-brand small { display: block; margin-top: 2px; color: #74767c; font-size: 5px; letter-spacing: .16em; }
.card-header > em, .standard-card-header > em { padding: 4px 7px; border: 1px solid rgba(232,184,63,.32); color: var(--gold); font-size: 6px; font-style: normal; letter-spacing: .15em; }
.card-body { margin-top: 15px; display: grid; grid-template-columns: 135px 1fr; gap: 22px; position: relative; z-index: 1; }
.card-body > img { width: 135px; height: 162px; border: 2px solid var(--gold); object-fit: cover; }
.card-body small { display: block; margin-bottom: 3px; color: #777980; font-size: 5px; letter-spacing: .16em; }
.card-body h3 { max-width: 480px; margin: 0 0 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Impact,sans-serif; font-size: clamp(24px,3vw,34px); text-transform: uppercase; letter-spacing: .025em; }
.card-body p { margin: 0 0 13px; font-size: 10px; font-weight: 700; }
.card-body strong { color: var(--gold); font-family: ui-monospace,monospace; font-size: 16px; letter-spacing: .05em; }
.card-barcode { height: 68px; margin-top: 14px; padding: 7px 12px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1; background: white; color: var(--ink); }
.card-barcode svg { width: 100%; height: 40px; }
.card-barcode span { font-family: ui-monospace,monospace; font-size: 6px; letter-spacing: .18em; }
.card-footer { margin-top: 8px; display: flex; justify-content: space-between; position: relative; z-index: 1; color: #85868b; font-size: 6px; font-weight: 850; letter-spacing: .09em; }
.card-footer b { color: var(--gold); }
.print-link { max-width: 730px; margin: 21px auto 0; }
.print-note { margin: 9px 0 0; text-align: center; color: #999a9e; font-size: 8px; }
.profile-title { padding-bottom: 19px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--dark-line); }
.profile-title > span { width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-size: 19px; font-weight: 950; }
.profile-title small { color: var(--red); font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.profile-title h2 { margin: 3px 0 0; font-size: 17px; }
.profile-panel dl { margin: 7px 0 0; }
.profile-panel dl > div { padding: 15px 0; border-bottom: 1px solid #ebe7de; }
.profile-panel dt { color: #929398; font-size: 8px; }
.profile-panel dd { margin: 5px 0 0; font-size: 11px; font-weight: 750; line-height: 1.45; }
.privacy-note { margin-top: 20px; padding: 13px; display: flex; align-items: flex-start; gap: 9px; background: #f2efe7; color: #97701b; }
.privacy-note p { margin: 0; color: #77787c; font-size: 8px; line-height: 1.5; }
.privacy-note strong { color: #4f5054; }

/* Admin */
.admin-badge { min-width: 230px; padding: 14px; display: flex; gap: 10px; align-items: center; border: 1px solid #ccc7bb; background: white; }
.admin-badge > span { width: 37px; height: 37px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 950; }
.admin-badge div { display: flex; flex-direction: column; }
.admin-badge small { color: #929398; font-size: 7px; letter-spacing: .13em; }
.admin-badge strong { margin-top: 3px; font-size: 11px; }
.stats-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.stats-grid article { min-height: 132px; padding: 20px; display: flex; flex-direction: column; background: white; border: 1px solid #dcd7cc; }
.stats-grid small { color: #898a8f; font-size: 7px; font-weight: 850; letter-spacing: .15em; }
.stats-grid strong { margin: 7px 0 4px; font-family: Impact,sans-serif; font-size: 40px; }
.stats-grid span { margin-top: auto; color: #9a9b9f; font-size: 8px; }
.stats-grid .active-stat { background: var(--ink); color: white; border-color: var(--ink); }
.stats-grid .active-stat strong { color: var(--gold); }
.participant-table-panel { margin-top: 20px; background: white; border: 1px solid #dcd7cc; }
.table-toolbar { min-height: 80px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--dark-line); }
.table-toolbar > div { display: flex; flex-direction: column; }
.table-toolbar small { color: var(--red); font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.table-toolbar h2 { margin: 3px 0 0; font-size: 18px; }
.search-form { display: flex; min-width: 460px; }
.search-form input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #c9c5ba; outline: 0; font-size: 10px; }
.search-form button, .search-form a { height: 39px; padding: 0 15px; display: grid; place-items: center; border: 0; background: var(--ink); color: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.search-form a { background: #e8e5dd; color: #65666b; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 9px; }
th { padding: 11px 13px; background: #f2efe8; color: #85868a; text-align: left; font-size: 7px; letter-spacing: .1em; }
td { padding: 12px 13px; border-top: 1px solid #ece8df; vertical-align: middle; }
.participant-cell { min-width: 170px; display: flex; align-items: center; gap: 9px; }
.participant-cell img { width: 36px; height: 43px; object-fit: cover; background: #e8e5dd; }
.participant-cell span, .address-cell { display: flex; flex-direction: column; }
.participant-cell small, .address-cell small { margin-top: 3px; color: #96979b; font-size: 7px; }
.address-cell { min-width: 145px; max-width: 190px; }
.wa-number { white-space: nowrap; }
td code { padding: 5px 7px; background: #f3f0e8; color: #8b6514; font-size: 8px; white-space: nowrap; }
.status-pill { padding: 5px 7px; background: #dcf0e2; color: var(--green); font-size: 7px; font-weight: 900; }
.table-action { color: #9b6d0c; font-weight: 850; white-space: nowrap; }
.empty-table { padding: 45px; text-align: center; color: #929398; }
.pagination { padding: 15px 22px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; border-top: 1px solid var(--dark-line); color: #77787c; font-size: 8px; }
.pagination a { color: #8d650f; font-weight: 850; }

/* Installer and verification */
.install-page, .verification-page { background: radial-gradient(circle at 50% 20%,rgba(232,184,63,.14),transparent 30%),var(--ink); }
.install-shell, .verification-shell { min-height: 100vh; padding: 55px 18px; display: grid; place-items: center; }
.install-card, .verification-card { width: min(520px,100%); padding: 42px; background: var(--paper); color: var(--ink); border-top: 5px solid var(--gold); box-shadow: var(--shadow); text-align: center; }
.install-brand { margin-bottom: 28px; color: var(--ink); text-align: left; }
.install-card h1, .verification-card h1 { margin: 0; font-family: Impact,sans-serif; font-size: 40px; line-height: .95; }
.install-card > p:not(.eyebrow), .verification-card > p:not(.eyebrow) { color: #77787c; font-size: 11px; line-height: 1.6; }
.install-status, .verification-icon { width: 68px; height: 68px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; font-size: 30px; font-weight: 900; }
.success-mark, .verification-icon.valid { background: #dcefe2; color: var(--green); }
.verification-icon.invalid { background: #f8dedb; color: var(--red); }
.verification-icon.neutral { background: #ebe7dd; color: #77787c; }
.install-details, .verification-card dl { margin: 25px 0; text-align: left; }
.install-details > div, .verification-card dl > div { padding: 11px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dad5ca; }
.install-details dt, .verification-card dt { color: #898a8e; font-size: 9px; }
.install-details dd, .verification-card dd { margin: 0; font-size: 9px; font-weight: 850; }
.credential-box { margin: 24px 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; background: white; border: 1px solid #dcd7cc; }
.credential-box span { color: var(--red); font-size: 7px; font-weight: 900; letter-spacing: .17em; }
.credential-box strong { font-size: 11px; }
.install-help { margin-bottom: 0; }
.install-help code { color: #91660d; }
.alert { margin: 20px 0; padding: 12px; display: flex; flex-direction: column; text-align: left; font-size: 9px; }
.alert-error { background: #fbe3e0; color: #91261f; border-left: 3px solid var(--red); }
.dual-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.verified-person { margin: 24px 0 10px; padding: 17px; display: flex; align-items: center; gap: 12px; background: white; border: 1px solid #dcd7cc; text-align: left; }
.verified-person > span { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 950; }
.verified-person div { display: flex; flex-direction: column; }
.verified-person small { color: #929398; font-size: 7px; letter-spacing: .13em; }
.verified-person strong { margin-top: 3px; font-size: 11px; }
.valid-label { margin-top: 22px; padding: 11px; background: #dcefe2; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.verify-form { margin-top: 24px; display: flex; }
.verify-form input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid #c9c5ba; outline: 0; font-family: ui-monospace,monospace; }

/* Standard ID-1 card */
.print-page { background: #ece9e1; color: var(--ink); }
.print-shell { min-height: 100vh; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.print-toolbar { width: min(900px,100%); margin-bottom: 28px; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: white; border: 1px solid #d3cec3; box-shadow: 0 10px 35px rgba(0,0,0,.08); }
.print-toolbar > a { color: #68696e; font-size: 10px; font-weight: 800; }
.print-toolbar > div { display: flex; flex-direction: column; text-align: center; }
.print-toolbar span { color: #949599; font-size: 7px; letter-spacing: .13em; }
.print-toolbar strong { margin-top: 2px; font-size: 10px; }
.standard-id-card { width: 85.6mm; height: 53.98mm; padding: 5mm 5.5mm 3mm; position: relative; overflow: hidden; flex: 0 0 auto; background: radial-gradient(circle at 87% 10%,rgba(232,184,63,.2),transparent 35%),linear-gradient(135deg,#08090b,#18130c); color: white; box-shadow: 0 25px 70px rgba(0,0,0,.3); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.standard-card-accent { position: absolute; inset: 0 0 auto; height: 1.25mm; background: linear-gradient(90deg,var(--red) 24%,var(--gold) 24%); }
.standard-card-header { position: relative; z-index: 1; }
.standard-brand > b { font-size: 8mm; line-height: 1; }
.standard-brand span { font-size: 2.7mm; }
.standard-brand small { font-size: 1.25mm; }
.standard-card-header > em { font-size: 1.35mm; }
.standard-card-content { margin-top: 3mm; display: grid; grid-template-columns: 21mm 1fr; gap: 4mm; position: relative; z-index: 1; }
.standard-photo { width: 21mm; height: 25mm; border: .5mm solid var(--gold); overflow: hidden; }
.standard-photo img { width: 100%; height: 100%; object-fit: cover; }
.standard-data small { display: block; margin-bottom: .65mm; color: #85868c; font-size: 1.25mm; letter-spacing: .15em; }
.standard-data h1 { max-width: 47mm; margin: 0 0 2.2mm; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Impact,sans-serif; font-size: 7mm; line-height: 1; text-transform: uppercase; }
.standard-data p { margin: 0 0 2.2mm; font-size: 2.5mm; font-weight: 750; }
.standard-data strong { color: var(--gold); font-family: ui-monospace,monospace; font-size: 3mm; }
.standard-barcode { position: absolute; z-index: 2; left: 30.5mm; right: 5.5mm; bottom: 8mm; height: 11.5mm; padding: 1mm 2mm .6mm; display: flex; flex-direction: column; justify-content: center; align-items: center; background: white; color: var(--ink); }
.standard-barcode svg { width: 100%; height: 8mm; }
.standard-barcode span { font-family: ui-monospace,monospace; font-size: 1.25mm; letter-spacing: .15em; }
.standard-footer { position: absolute; z-index: 2; left: 5.5mm; right: 5.5mm; bottom: 3.1mm; display: flex; justify-content: space-between; color: #85868c; font-size: 1.25mm; font-weight: 850; letter-spacing: .08em; }
.standard-footer b { color: var(--gold); }
.print-instruction { color: #77787c; font-size: 9px; }

@media (max-width: 980px) {
  .topbar { padding: 0 24px; }
  .hero-section { grid-template-columns: 1fr; padding: 55px 28px 65px; gap: 46px; }
  .hero-content { max-width: 690px; }
  .form-page-shell { grid-template-columns: 1fr; gap: 35px; }
  .registration-intro { position: static; }
  .registration-intro ul { display: none; }
  .login-shell, .admin-login-shell { grid-template-columns: 1fr; gap: 42px; padding-top: 48px; }
  .login-card { max-width: 540px; width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .search-form { min-width: 0; width: 100%; }
}

@media (max-width: 650px) {
  .topbar { height: 68px; padding: 0 16px; }
  .main-nav { gap: 10px; }
  .main-nav > a:not(.nav-button) { display: none; }
  .nav-button { padding: 9px 12px; }
  .hero-section { min-height: auto; padding: 44px 18px 52px; }
  .hero-content h1 { font-size: 58px; }
  .hero-description { font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .text-link { align-self: flex-start; }
  .running-line { justify-content: flex-start; font-size: 13px; }
  .process-section { padding: 68px 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading h2, .home-cta h2 { font-size: 45px; }
  .process-grid { grid-template-columns: 1fr; }
  .home-cta { margin: 48px 16px; padding: 38px 23px; flex-direction: column; align-items: stretch; }
  .site-footer { margin: 0 18px; padding: 28px 0; align-items: flex-start; flex-direction: column; }
  .form-page-shell { padding: 40px 14px 65px; }
  .registration-intro h1 { font-size: 55px; }
  .form-card-header { padding: 0 19px; }
  .form-card-header small { display: none; }
  .registration-form { padding: 27px 19px 32px; }
  .two-cols { grid-template-columns: 1fr; }
  .login-shell, .admin-login-shell { padding: 40px 15px 65px; }
  .login-promo h1, .admin-login-branding h1 { font-size: 53px; }
  .login-card { padding: 35px 22px; }
  .dashboard-shell, .admin-shell { padding: 40px 13px 65px; }
  .dashboard-welcome, .admin-heading { align-items: stretch; flex-direction: column; }
  .dashboard-welcome h1, .admin-heading h1 { font-size: 47px; }
  .active-status, .admin-badge { min-width: 0; width: 100%; }
  .dashboard-panel { padding: 14px; }
  .panel-heading em { display: none; }
  .id-card-preview { padding: 10px 11px 7px; }
  .card-brand > b { font-size: 19px; }
  .card-brand span { font-size: 7px; }
  .card-body { margin-top: 7px; grid-template-columns: 72px 1fr; gap: 10px; }
  .card-body > img { width: 72px; height: 87px; }
  .card-body h3 { margin-bottom: 5px; font-size: 16px; }
  .card-body p { margin-bottom: 5px; font-size: 7px; }
  .card-body strong { font-size: 9px; }
  .card-barcode { height: 38px; margin-top: 6px; padding: 3px 6px; }
  .card-barcode svg { height: 27px; }
  .card-footer { font-size: 4px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid article { min-height: 115px; padding: 15px; }
  .stats-grid strong { font-size: 33px; }
  .install-card, .verification-card { padding: 34px 21px; }
  .dual-actions { grid-template-columns: 1fr; }
  .print-shell { padding: 12px; overflow-x: auto; align-items: flex-start; }
  .print-toolbar { width: 85.6mm; }
  .print-toolbar > div { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@page { size: 85.6mm 53.98mm; margin: 0; }
@media print {
  html, body { width: 85.6mm; height: 53.98mm; margin: 0 !important; padding: 0 !important; background: transparent !important; }
  .no-print { display: none !important; }
  .print-shell { width: 85.6mm; min-height: 53.98mm; margin: 0; padding: 0; display: block; }
  .standard-id-card { margin: 0; box-shadow: none; page-break-inside: avoid; }
}
