:root {
  --ink: #171713;
  --paper: #fffdf5;
  --cream: #f2eddd;
  --accent: #d9ff43;
  --orange: #ff5a36;
  --purple: #8c5cff;
  --muted: #6d6a61;
  --line: #d8d3c5;
  --green: #1e7c4b;
  --red: #bd3b2d;
  --shadow: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header { height: 92px; padding: 0 clamp(22px, 5vw, 78px); display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: .82; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: var(--accent); font: 900 30px/1 Arial; transform: rotate(-4deg); }
.brand > span:last-child { display: flex; flex-direction: column; gap: 5px; }
.brand strong { font-size: 22px; letter-spacing: -.7px; }
.brand small { font-size: 11px; font-weight: 900; letter-spacing: 4px; }
.brand-light { color: var(--paper); }
.brand-light .brand-mark { color: var(--ink); background: var(--accent); }
.header-link { font-size: 13px; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--ink); padding-bottom: 5px; }
.header-link span { margin-left: 8px; }

.hero { min-height: 660px; display: grid; grid-template-columns: 1.05fr .95fr; border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-copy { padding: clamp(70px, 9vw, 130px) clamp(30px, 7vw, 110px); position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 4px; background: var(--orange); display: inline-block; }
.hero h1, .section-intro h2, .registration-aside h2 { margin: 28px 0; max-width: 690px; font-size: clamp(54px, 6vw, 91px); line-height: .91; letter-spacing: -5px; text-transform: uppercase; font-weight: 900; }
.hero h1 em, .section-intro h2 em, .registration-aside h2 em { font-family: Georgia, serif; font-weight: 400; text-transform: none; letter-spacing: -4px; }
.hero h1 em { color: var(--orange); }
.hero-lead { max-width: 540px; font-size: 18px; line-height: 1.6; color: #4b4942; margin: 0 0 34px; }
.button { min-height: 54px; padding: 0 22px; border: 2px solid var(--ink); display: inline-flex; justify-content: center; align-items: center; gap: 26px; font-weight: 900; text-decoration: none; cursor: pointer; text-transform: uppercase; letter-spacing: .6px; font-size: 12px; transition: transform .15s, box-shadow .15s, background .15s, opacity .15s; }
.button:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.button:active:not(:disabled) { transform: translate(0); box-shadow: none; }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-accent { background: var(--accent); color: var(--ink); }
.button-outline { background: transparent; color: var(--ink); }
.button-wide { width: 100%; min-height: 60px; margin-top: 24px; }

.hero-art { background: var(--purple); border-left: 2px solid var(--ink); position: relative; min-height: 600px; color: var(--ink); }
.hero-art svg { position: absolute; width: 105%; bottom: -4px; left: -2%; }
.sun { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: var(--accent); right: 8%; top: 14%; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.stamp { position: absolute; right: 9%; top: 11%; z-index: 2; border: 3px solid var(--ink); width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 16px; font-weight: 900; transform: rotate(12deg); }
.poster-card { position: absolute; left: 9%; top: 19%; width: 295px; min-height: 320px; padding: 28px; background: var(--orange); border: 2px solid var(--ink); box-shadow: var(--shadow); transform: rotate(-4deg); z-index: 3; }
.poster-number { font-weight: 900; font-size: 13px; border: 2px solid var(--ink); padding: 5px 8px; }
.poster-card p { margin-top: 78px; font-size: 35px; line-height: .99; text-transform: uppercase; font-weight: 900; letter-spacing: -2px; }
.poster-card strong { color: var(--paper); }
.marquee { overflow: hidden; white-space: nowrap; background: var(--accent); border-bottom: 2px solid var(--ink); padding: 16px 0; font-size: 13px; font-weight: 900; letter-spacing: 1.3px; }
.marquee div { width: max-content; animation: ticker 24s linear infinite; }
.marquee b { margin: 0 26px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.how { padding: 110px clamp(24px, 7vw, 105px) 130px; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.section-intro h2 { font-size: clamp(48px, 5.3vw, 76px); margin: 20px 0 50px; }
.section-intro h2 em { color: var(--purple); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); }
.steps-grid article { min-height: 330px; padding: 28px; position: relative; }
.steps-grid article + article { border-left: 2px solid var(--ink); }
.steps-grid article:nth-child(2) { background: var(--cream); }
.steps-grid article > span { font-size: 12px; font-weight: 900; }
.step-icon { width: 58px; height: 58px; display: grid; place-items: center; font-size: 30px; margin: 40px 0 24px; background: var(--accent); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.steps-grid article:nth-child(2) .step-icon { background: var(--orange); }
.steps-grid article:nth-child(3) .step-icon { background: var(--purple); color: white; }
.steps-grid h3 { font-size: 21px; text-transform: uppercase; letter-spacing: -.5px; margin: 0 0 14px; }
.steps-grid p { max-width: 330px; color: var(--muted); line-height: 1.55; margin: 0; }

.registration-section { display: grid; grid-template-columns: .72fr 1.28fr; background: var(--ink); padding: clamp(60px, 8vw, 120px) clamp(20px, 7vw, 105px); gap: clamp(35px, 7vw, 110px); align-items: start; }
.registration-aside { color: var(--paper); position: sticky; top: 35px; }
.eyebrow-light > span { background: var(--accent); }
.registration-aside h2 { font-size: clamp(52px, 5vw, 76px); margin: 30px 0; }
.registration-aside h2 em { color: var(--accent); }
.registration-aside > p:not(.eyebrow) { color: #bbb8ad; max-width: 390px; line-height: 1.6; }
.privacy-note { margin-top: 48px; padding-top: 26px; border-top: 1px solid #484840; display: flex; gap: 16px; align-items: flex-start; max-width: 420px; }
.privacy-note > span { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 900; }
.privacy-note p { margin: 0; font-size: 12px; line-height: 1.6; color: #bbb8ad; }
.privacy-note strong { color: var(--paper); }

.form-card { background: var(--paper); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--accent); min-width: 0; }
.device-blocked { min-height: 430px; padding: clamp(42px, 7vw, 76px) clamp(24px, 6vw, 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(145deg, #fffdf5 0 70%, #ffe7df 100%); }
.device-blocked[hidden] { display: none; }
.device-blocked-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: white; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); font-size: 50px; line-height: 1; font-weight: 900; margin-bottom: 28px; }
.device-blocked p { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: 1.8px; margin: 0 0 12px; }
.device-blocked h3 { max-width: 570px; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.02; letter-spacing: -1.5px; }
.device-blocked > span { max-width: 490px; color: var(--muted); line-height: 1.6; margin-top: 18px; }
.progress { display: flex; align-items: flex-start; padding: 26px 34px; border-bottom: 2px solid var(--ink); background: var(--cream); }
.progress-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; color: #99958b; }
.progress-item span { width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 900; font-size: 12px; background: var(--paper); }
.progress-item p { margin: 0; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.progress-item.active { color: var(--ink); }
.progress-item.active span { background: var(--accent); }
.progress-line { flex: 1; height: 2px; background: #c5c0b4; margin-top: 15px; }
.progress-line i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s; }
.progress-line.complete i { width: 100%; }
.form-step { display: none; padding: clamp(28px, 5vw, 54px); }
.form-step.active { display: block; animation: appear .25s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }
.form-heading { margin-bottom: 36px; }
.form-heading > p { color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: 1.8px; margin: 0 0 12px; }
.form-heading h3 { font-size: clamp(25px, 3vw, 36px); line-height: 1.08; letter-spacing: -1.2px; max-width: 530px; margin: 0; }
.form-heading > span { display: block; color: var(--muted); line-height: 1.6; max-width: 490px; margin: 15px auto 0; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; min-width: 0; }
.field label { display: block; margin-bottom: 8px; text-transform: uppercase; font-size: 10px; letter-spacing: 1px; font-weight: 900; }
.field label i { color: #969187; font-style: normal; font-weight: 500; text-transform: lowercase; }
.field input { width: 100%; height: 51px; border: 1.5px solid #b9b4a8; background: #fffefa; color: var(--ink); padding: 0 15px; outline: none; border-radius: 0; }
.field input:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.field.invalid input { border-color: var(--red); }
.field-error, .check-error { color: var(--red); min-height: 14px; display: block; font-size: 10px; padding-top: 4px; }
.input-prefix { display: flex; align-items: center; height: 51px; border: 1.5px solid #b9b4a8; background: #fffefa; }
.input-prefix:focus-within { border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.input-prefix span { font-weight: 900; color: var(--muted); padding-left: 15px; }
.input-prefix input { border: 0; box-shadow: none !important; padding-left: 5px; height: 48px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-top: 5px; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row > span { width: 20px; height: 20px; border: 2px solid var(--ink); flex: 0 0 auto; position: relative; }
.check-row input:checked + span { background: var(--accent); }
.check-row input:checked + span::after { content: '✓'; position: absolute; inset: -4px 0 0 2px; font-weight: 900; font-size: 20px; }
.check-row p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.back-button { background: transparent; border: 0; font-size: 11px; text-transform: uppercase; font-weight: 900; cursor: pointer; padding: 0 0 20px; }
.instagram-step { text-align: center; }
.insta-icon { margin: 0 auto 20px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, #753cd8, #f53270 55%, #ffbe46); color: white; font-size: 51px; line-height: 1; box-shadow: 5px 5px 0 var(--ink); }
.centered { text-align: center; }
.centered h3 { margin-inline: auto; }
.instagram-button { width: 100%; background: var(--ink); color: white; text-transform: none; font-size: 13px; margin-top: 5px; }
.timer-card { min-height: 90px; border: 1.5px solid var(--line); background: var(--cream); margin-top: 18px; padding: 15px 20px; display: flex; justify-content: center; align-items: center; gap: 18px; text-align: left; }
.timer-ring { width: 58px; height: 58px; flex: 0 0 auto; border: 4px solid var(--orange); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer-ring strong { line-height: .9; font-size: 20px; }
.timer-ring small { font-size: 8px; text-transform: uppercase; }
.timer-card p { margin: 0; line-height: 1.5; font-size: 12px; color: var(--muted); }
.timer-card p strong { color: var(--ink); }
.follow-check { border: 2px solid var(--ink); background: var(--accent); padding: 18px; margin-top: 18px; text-align: left; }
.follow-check > span { background: var(--paper); }
.follow-check p { color: var(--ink); font-weight: 700; }
.form-message { color: var(--red); min-height: 18px; font-size: 12px; text-align: center; }

.success-step { text-align: center; }
.success-badge { margin: 0 auto 22px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 30px; font-weight: 900; }
.ticket { max-width: 385px; margin: 30px auto; border: 2px solid var(--ink); background: white; box-shadow: 7px 7px 0 var(--ink); }
.ticket-top { display: flex; justify-content: space-between; padding: 13px 16px; background: var(--accent); border-bottom: 2px solid var(--ink); font-size: 10px; font-weight: 900; }
.qr-frame { padding: 22px 22px 10px; }
.qr-frame img { width: min(100%, 250px); display: block; margin: auto; image-rendering: pixelated; }
.ticket-info { padding: 8px 20px 18px; }
.ticket-info p { margin: 0 0 5px; text-transform: uppercase; font-weight: 900; font-size: 17px; }
.ticket-info span { font-size: 12px; color: var(--muted); }
.ticket-status { border-top: 2px dashed var(--ink); padding: 13px; font-size: 10px; text-transform: uppercase; font-weight: 900; }
.ticket-status i { display: inline-block; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; margin-right: 5px; }
.success-actions { display: flex; justify-content: center; gap: 12px; }
.screenshot-hint { color: var(--muted); font-size: 11px; margin-top: 20px; }

footer { min-height: 135px; padding: 30px clamp(24px, 7vw, 105px); background: var(--ink); color: #aaa79e; border-top: 1px solid #403f39; display: flex; align-items: center; justify-content: space-between; gap: 25px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
footer > a:last-child { color: #aaa79e; }

/* Public benefit lookup */
.dark-header { background: var(--ink); border-color: #3c3b35; }
.secure-label { color: #aaa79e; font-size: 10px; font-weight: 900; letter-spacing: 2px; }
.lookup-page { min-height: 100vh; background: var(--cream); display: flex; flex-direction: column; }
.lookup-main { flex: 1; display: grid; place-items: center; padding: 50px 18px; background-image: radial-gradient(#c7c0ae 1px, transparent 1px); background-size: 16px 16px; }
.lookup-card { width: min(100%, 630px); background: var(--paper); border: 2px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); text-align: center; }
#lookup-loading { padding: 60px; }
.loader { width: 44px; height: 44px; border: 5px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; margin: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.lookup-brand { background: var(--ink); color: var(--paper); padding: 13px; font-size: 10px; letter-spacing: 2px; font-weight: 900; }
.status-hero { padding: 42px 20px; background: var(--accent); border-bottom: 2px solid var(--ink); }
.status-hero.delivered { background: #a9e8c0; }
.status-hero > span { width: 58px; height: 58px; border: 2px solid var(--ink); background: var(--paper); border-radius: 50%; display: grid; place-items: center; margin: auto auto 18px; font-size: 25px; box-shadow: 4px 4px 0 var(--ink); }
.status-hero p { font-size: 9px; font-weight: 900; letter-spacing: 1.7px; margin: 0 0 8px; }
.status-hero h1 { font-size: clamp(27px, 6vw, 40px); text-transform: uppercase; letter-spacing: -1.5px; margin: 0 0 10px; }
.status-hero small { font-size: 12px; }
.beneficiary-details { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
.beneficiary-details > div { padding: 21px; border-bottom: 1px solid var(--line); }
.beneficiary-details > div:nth-child(odd) { border-right: 1px solid var(--line); }
.beneficiary-details span { display: block; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: 1.3px; margin-bottom: 7px; }
.beneficiary-details strong { font-size: 14px; overflow-wrap: anywhere; }
.privacy-foot { font-size: 10px; color: var(--muted); padding: 5px 20px 20px; }
.error-card { padding: 55px 30px; }
.error-symbol { margin: auto; width: 60px; height: 60px; border: 2px solid var(--ink); background: var(--orange); display: grid; place-items: center; font-size: 32px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); }
.error-card h1 { text-transform: uppercase; font-size: 30px; margin: 25px 0 10px; }
.error-card p { color: var(--muted); margin-bottom: 30px; }
.lookup-footer { display: block; min-height: auto; text-align: center; padding: 20px; }

/* Admin */
.admin-page { background: #eeece5; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: var(--ink); background-image: linear-gradient(135deg, transparent 75%, rgba(217,255,67,.13) 75%); }
.login-card { width: min(100%, 470px); padding: 45px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--accent); }
.login-card .brand { margin-bottom: 45px; }
.login-card h1 { font-size: 39px; line-height: 1; text-transform: uppercase; letter-spacing: -2px; margin: 20px 0 10px; }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; margin-bottom: 30px; }
.back-site { display: block; text-align: center; color: var(--muted); font-size: 11px; font-weight: 800; margin-top: 24px; }
.dashboard { min-height: 100vh; display: grid; grid-template-columns: 235px 1fr; }
.admin-sidebar { background: var(--ink); color: var(--paper); padding: 28px 22px; display: flex; flex-direction: column; position: sticky; height: 100vh; top: 0; }
.admin-sidebar nav { margin: 55px -8px 0; }
.admin-sidebar nav a { display: flex; gap: 13px; align-items: center; padding: 14px; text-decoration: none; text-transform: uppercase; font-size: 10px; letter-spacing: .8px; font-weight: 900; color: #aaa79e; border-left: 3px solid transparent; }
.admin-sidebar nav a.active { color: var(--ink); background: var(--accent); border-left-color: var(--paper); }
.admin-sidebar button { margin-top: auto; background: transparent; border: 0; border-top: 1px solid #3e3d37; color: #aaa79e; padding: 20px 5px 0; text-align: left; cursor: pointer; font-size: 11px; text-transform: uppercase; font-weight: 800; }
.admin-main { min-width: 0; padding: 0 clamp(20px, 4vw, 55px) 55px; }
.admin-topbar { min-height: 125px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d2cec4; }
.admin-topbar > div:first-child p, .modal-title p { font-size: 9px; font-weight: 900; letter-spacing: 1.5px; color: var(--orange); margin: 0 0 7px; }
.admin-topbar h1 { margin: 0; text-transform: uppercase; font-size: 35px; letter-spacing: -1.5px; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-user > span { width: 38px; height: 38px; display: grid; place-items: center; background: var(--purple); color: white; font-weight: 900; }
.admin-user p { display: flex; flex-direction: column; margin: 0; font-size: 11px; }
.admin-user small { color: var(--muted); margin-top: 3px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin: 30px 0; }
.stats-grid article { background: var(--paper); border: 1.5px solid var(--ink); padding: 20px; display: flex; align-items: center; gap: 15px; box-shadow: 3px 3px 0 #d4d0c6; }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; background: var(--purple); color: white; font-weight: 900; font-size: 22px; }
.stat-icon.pending { background: var(--orange); color: var(--ink); }
.stat-icon.delivered { background: var(--accent); color: var(--ink); }
.stats-grid p { margin: 0; color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 900; letter-spacing: .5px; }
.stats-grid strong { display: block; color: var(--ink); font-size: 29px; line-height: 1; margin-top: 6px; }
.table-card { border: 1.5px solid var(--ink); background: var(--paper); }
.table-tools { min-height: 77px; display: flex; gap: 18px; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-box { min-width: min(440px, 50%); display: flex; height: 43px; border: 1px solid #bcb8ad; align-items: center; background: white; }
.search-box span { font-size: 23px; padding-left: 13px; }
.search-box input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; padding: 0 12px; font-size: 12px; }
.filter-buttons { display: flex; border: 1px solid #bcb8ad; }
.filter-buttons button { height: 41px; border: 0; background: white; padding: 0 13px; font-size: 9px; text-transform: uppercase; font-weight: 900; cursor: pointer; }
.filter-buttons button + button { border-left: 1px solid #bcb8ad; }
.filter-buttons button.active { background: var(--ink); color: white; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th { padding: 14px 16px; background: var(--cream); color: var(--muted); text-align: left; font-size: 8px; letter-spacing: 1.1px; text-transform: uppercase; }
td { padding: 15px 16px; border-top: 1px solid #e1ded4; font-size: 11px; }
td strong { display: block; font-size: 12px; margin-bottom: 4px; }
td small { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; font-size: 8px; text-transform: uppercase; font-weight: 900; white-space: nowrap; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.pending { background: #ffe5d9; color: #9b351e; }
.status-pill.delivered { background: #d9f4df; color: var(--green); }
.details-button { border: 1px solid var(--ink); background: transparent; height: 33px; padding: 0 11px; cursor: pointer; font-size: 9px; text-transform: uppercase; font-weight: 900; }
.details-button:hover { background: var(--accent); }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state span { font-size: 42px; }
.empty-state h3 { text-transform: uppercase; margin: 12px 0 7px; }
.empty-state p { color: var(--muted); margin: 0; }
.admin-pagination { min-height: 72px; padding: 13px 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr); align-items: center; gap: 18px; }
.admin-pagination[hidden] { display: none; }
.admin-pagination button { min-height: 41px; width: fit-content; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); padding: 0 15px; text-transform: uppercase; font-size: 9px; font-weight: 900; letter-spacing: .45px; cursor: pointer; }
.admin-pagination button:last-child { justify-self: end; }
.admin-pagination button:not(:disabled):hover { background: var(--accent); }
.admin-pagination button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.admin-pagination button:disabled { border-color: #cbc7bc; color: #aaa69c; cursor: not-allowed; opacity: .7; }
.admin-pagination p { margin: 0; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.35; white-space: nowrap; }
.admin-pagination p strong { color: var(--ink); }
.admin-pagination p span { display: block; margin-top: 3px; text-transform: uppercase; font-size: 8px; font-weight: 900; letter-spacing: .75px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
dialog { width: min(92vw, 720px); padding: 0; border: 0; background: transparent; }
dialog::backdrop { background: rgba(16,16,13,.78); }
.modal-card { background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); padding: 35px; position: relative; }
.modal-close { position: absolute; right: 16px; top: 12px; font-size: 29px; border: 0; background: transparent; cursor: pointer; }
.modal-title { border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.modal-title h2 { margin: 0; text-transform: uppercase; letter-spacing: -1px; }
.modal-layout { display: grid; grid-template-columns: 190px 1fr; gap: 25px; padding: 25px 0; }
.modal-qr { border: 1px solid var(--line); padding: 12px; text-align: center; align-self: start; }
.modal-qr img { display: block; width: 100%; }
.modal-qr span { display: block; font-size: 9px; font-weight: 900; margin-top: 8px; }
.modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.modal-details div { border-bottom: 1px solid var(--line); padding-bottom: 8px; min-width: 0; }
.modal-details span { display: block; font-size: 8px; color: var(--muted); font-weight: 900; letter-spacing: 1px; margin-bottom: 6px; }
.modal-details strong { font-size: 11px; overflow-wrap: anywhere; }
.delivery-confirmation { min-height: 54px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; background: #fff3bd; border-left: 5px solid var(--orange); cursor: pointer; }
.delivery-confirmation[hidden] { display: none; }
.delivery-confirmation input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-confirmation > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); }
.delivery-confirmation input:checked + span { background: var(--accent); }
.delivery-confirmation input:checked + span::after { content: '✓'; font-weight: 900; }
.delivery-confirmation strong { font-size: 11px; line-height: 1.35; }
.modal-actions { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.button-delivered { background: var(--accent); }
.modal-message { min-height: 12px; color: var(--red); font-size: 11px; margin-bottom: 0; }
.toast { position: fixed; right: 25px; bottom: 25px; background: var(--ink); color: var(--paper); border-left: 6px solid var(--accent); padding: 15px 20px; font-size: 11px; font-weight: 800; opacity: 0; transform: translateY(20px); transition: .25s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 500px; border-left: 0; border-top: 2px solid var(--ink); }
  .registration-section { grid-template-columns: 1fr; }
  .registration-aside { position: static; }
  .dashboard { grid-template-columns: 76px 1fr; }
  .admin-sidebar { padding: 25px 12px; }
  .admin-sidebar .brand > span:last-child, .admin-sidebar nav a:not(.active) { overflow: hidden; }
  .admin-sidebar nav a { justify-content: center; font-size: 0; }
  .admin-sidebar nav a span { font-size: 18px; }
  .admin-sidebar button { font-size: 0; text-align: center; }
  .admin-sidebar button span { font-size: 22px; }
  .admin-sidebar .brand-mark { width: 42px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid article { padding: 13px 18px; }
}

@media (max-width: 680px) {
  .admin-page { max-width: 100%; overflow-x: hidden; }
  .site-header { height: 76px; }
  .brand-mark { width: 38px; height: 38px; font-size: 25px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 9px; }
  .header-link { font-size: 0; }
  .header-link span { font-size: 22px; }
  .hero-copy { padding: 70px 24px; }
  .hero h1 { letter-spacing: -3px; }
  .hero-art { min-height: 430px; }
  .poster-card { width: 245px; min-height: 285px; left: 7%; }
  .poster-card p { margin-top: 65px; font-size: 30px; }
  .sun { width: 155px; height: 155px; }
  .stamp { width: 80px; height: 80px; font-size: 12px; }
  .how { padding: 80px 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 280px; }
  .steps-grid article + article { border-left: 0; border-top: 2px solid var(--ink); }
  .registration-section { padding: 70px 16px 90px; }
  .form-card { box-shadow: 6px 6px 0 var(--accent); }
  .progress { padding: 20px 10px; }
  .progress-item { min-width: 61px; }
  .form-step { padding: 28px 20px; }
  .device-blocked { min-height: 390px; padding: 42px 20px; }
  .device-blocked-icon { width: 62px; height: 62px; font-size: 42px; box-shadow: 4px 4px 0 var(--ink); }
  .device-blocked h3 { font-size: 31px; }
  .device-blocked > span { font-size: 14px; }
  .fields-row { grid-template-columns: 1fr; gap: 0; }
  .success-actions, footer { flex-direction: column; }
  .success-actions .button { width: 100%; }
  footer { text-align: center; }
  .beneficiary-details { grid-template-columns: 1fr; }
  .beneficiary-details > div:nth-child(odd) { border-right: 0; }
  .dashboard { display: block; }
  .admin-sidebar { position: static; height: 68px; flex-direction: row; align-items: center; padding: 10px 15px; }
  .admin-sidebar nav { margin: 0 0 0 auto; }
  .admin-sidebar nav a { display: none; }
  .admin-sidebar nav a:nth-child(2) { display: flex; }
  .admin-sidebar button { margin: 0 0 0 5px; padding: 7px; border: 0; }
  .admin-main { padding: 0 14px 35px; }
  .admin-topbar { min-height: 105px; }
  .admin-user p { display: none; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 100%; }
  .filter-buttons button { flex: 1; }
  .admin-pagination { grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px; }
  .admin-pagination p { grid-column: 1 / -1; grid-row: 1; white-space: normal; }
  .admin-pagination button { width: 100%; min-height: 46px; }
  .admin-pagination button:last-child { justify-self: stretch; }
  dialog#details-modal { position: fixed; top: 0; left: 0; right: auto; bottom: auto; width: 100vw; width: 100dvw; max-width: 100dvw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; padding: 10px; overflow-x: hidden; overflow-y: auto; }
  dialog#details-modal[open] { display: flex; align-items: flex-start; justify-content: center; }
  #details-modal .modal-card { width: 100%; max-width: 430px; margin: auto 0; padding: 25px 16px 18px; box-shadow: 4px 4px 0 var(--accent); }
  #details-modal .modal-close { right: 9px; top: 7px; width: 42px; height: 42px; display: grid; place-items: center; font-size: 27px; }
  #details-modal .modal-title { padding: 0 40px 15px 0; }
  #details-modal .modal-title h2 { font-size: clamp(22px, 7vw, 30px); line-height: 1; overflow-wrap: anywhere; }
  #details-modal .modal-layout { grid-template-columns: 1fr; gap: 19px; padding: 20px 0; }
  #details-modal .modal-qr { width: min(54vw, 175px); margin: auto; padding: 10px; }
  #details-modal .modal-details { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  #details-modal .modal-details strong { font-size: 12px; line-height: 1.35; }
  #details-modal .modal-actions { flex-direction: column; gap: 8px; padding-top: 16px; }
  #details-modal .modal-actions .button { width: 100%; min-height: 54px; padding: 0 12px; font-size: 10px; line-height: 1.25; text-align: center; }
  #details-modal .modal-message { text-align: center; }
  .login-card { padding: 35px 24px; }
}

@media (max-width: 350px) {
  #details-modal .modal-details { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden; }
  .ticket, .ticket * { visibility: visible; }
  .ticket { position: fixed; left: 50%; top: 30px; transform: translateX(-50%); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
