/* Ticket, gate-verification and organiser-control surfaces */

.portal-eyebrow {
    display: inline-block;
    color: var(--saffron-600);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.portal-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.portal-button:hover { transform: translateY(-1px); }
.portal-button:focus-visible { outline: 3px solid rgba(232, 117, 24, .3); outline-offset: 2px; }
.portal-button--primary { color: #fff; background: linear-gradient(135deg, var(--maroon-800), var(--maroon-950)); box-shadow: 0 8px 20px rgba(71, 13, 21, .16); }
.portal-button--light { border-color: #dfcdb6; color: var(--maroon-800); background: #fffdf8; }
.portal-button--ghost { border-color: transparent; color: var(--ink-700); background: transparent; }
.portal-button--success { color: #fff; background: linear-gradient(135deg, #238457, #11613c); }
.portal-button--danger { color: #fff; background: linear-gradient(135deg, #c23e32, #8b1f18); }
.portal-button--wide { width: 100%; }

.portal-alert {
    margin: 16px 0;
    padding: 13px 15px;
    border: 1px solid #ddc9b3;
    border-radius: 12px;
    color: var(--ink-700);
    background: #fffdf8;
    font-size: 13px;
    font-weight: 650;
}

.portal-alert:empty { display: none; }
.portal-alert--success { border-color: #9acbad; color: #135c38; background: #edfff4; }
.portal-alert--error { border-color: #edaca6; color: #8a1c13; background: #fff1ef; }
.portal-alert--warning { border-color: #e8c174; color: #6e480c; background: #fff7e3; }
.portal-alert--info { border-color: #cbb999; color: #604b39; background: #fffaf0; }

.status-pill {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill--paid,
.status-pill--attended,
.status-pill--active { color: #12603a; background: #dcf7e7; }
.status-pill--pending,
.status-pill--waiting { color: #7d4c00; background: #ffe7b5; }
.status-pill--inactive { color: #8a1c13; background: #ffe1de; }

/* Access code */
.access-page {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 26px;
    background:
        linear-gradient(112deg, rgba(255, 248, 232, .94), rgba(255, 253, 248, .84)),
        url("../images/rss-centenary-heritage-hero.webp") center / cover fixed;
}

.access-card {
    width: min(510px, 100%);
    padding: 34px;
    border: 1px solid rgba(200, 149, 61, .42);
    border-top: 5px solid var(--saffron-500);
    border-radius: 24px;
    background: rgba(255, 253, 248, .97);
    box-shadow: var(--shadow-lg);
}

.access-card--compact { text-align: center; }
.access-card h1 { margin: 7px 0 9px; color: var(--maroon-900); font-family: var(--font-serif); font-size: clamp(31px, 6vw, 42px); line-height: 1.05; }
.access-card > p { margin: 0 0 24px; color: var(--ink-700); font-size: 13px; }

.access-card__brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 21px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.access-card__centenary {
    color: var(--maroon-800);
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 800;
    line-height: .85;
    letter-spacing: -.08em;
}

.access-card__brand div { display: grid; }
.access-card__brand strong { color: var(--maroon-800); font-family: "Nirmala UI", var(--font-serif); font-size: 17px; }
.access-card__brand span:not(.access-card__centenary) { color: #8d3e20; font-family: "Nirmala UI", var(--font-serif); font-size: 14px; font-weight: 700; }

.access-card__date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 25px;
    padding: 11px 13px;
    border-radius: 11px;
    color: #fff8e8;
    background: linear-gradient(130deg, var(--maroon-800), var(--maroon-950));
}

.access-card__date span { font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.access-card__date strong { color: #ffc66f; font-size: 13px; }
.access-form { display: grid; }
.access-form label { margin-bottom: 7px; color: var(--ink-900); font-size: 12px; font-weight: 800; }
.access-form > .portal-button { margin-top: 14px; }

.access-code-control {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    border: 1px solid #d8c4aa;
    border-radius: 12px;
    background: #fff;
}

.access-code-control:focus-within { border-color: var(--saffron-500); box-shadow: 0 0 0 4px rgba(232, 117, 24, .12); }
.access-code-control input {
    min-width: 0;
    min-height: 54px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    color: #1f2937;
    caret-color: #681b24;
    background: transparent;
    font-size: 16px;
    -webkit-text-fill-color: #1f2937;
}
.access-code-control input::placeholder { color: #6b7280; opacity: 1; -webkit-text-fill-color: #6b7280; }
.access-code-control input:-webkit-autofill,
.access-code-control input:-webkit-autofill:hover,
.access-code-control input:-webkit-autofill:focus {
    color: #1f2937;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #1f2937;
    transition: background-color 9999s ease-out 0s;
}
.access-code-control button { padding: 0 13px; border: 0; color: var(--maroon-800); cursor: pointer; background: #fff7e8; font-size: 11px; font-weight: 850; }
.access-card__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.access-card__links a { color: var(--maroon-800); font-size: 11px; font-weight: 750; text-decoration: none; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.portal-actions--center { justify-content: center; }

/* Public seminar ticket */
.ticket-page {
    min-height: 100svh;
    padding: 46px 24px 38px;
    background:
        radial-gradient(circle at 15% 10%, rgba(232, 117, 24, .1), transparent 25rem),
        linear-gradient(145deg, #fff9eb, #f2e3cb);
}

.ticket-page__heading { width: min(1020px, 100%); margin: 0 auto 22px; text-align: center; }
.ticket-page__heading h1 { margin: 5px 0 5px; color: var(--maroon-900); font-family: var(--font-serif); font-size: clamp(31px, 5vw, 48px); line-height: 1.05; }
.ticket-page__heading p { margin: 0; color: var(--ink-700); font-size: 13px; }
.ticket-status-alert { width: min(1020px, 100%); margin: 0 auto 16px; text-align: center; }

.seminar-ticket {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    width: min(1020px, 100%);
    min-height: 470px;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(154, 99, 32, .35);
    border-radius: 25px;
    background: #fffdf8;
    box-shadow: 0 28px 70px rgba(71, 13, 21, .17);
}

.seminar-ticket::before { position: absolute; inset: 0 auto 0 0; width: 7px; content: ""; background: linear-gradient(var(--saffron-500), var(--maroon-800)); }

.seminar-ticket__main {
    position: relative;
    overflow: hidden;
    padding: 35px 38px 30px 44px;
    background:
        radial-gradient(circle at 100% 100%, rgba(232, 117, 24, .11), transparent 18rem),
        linear-gradient(135deg, #fffdf8, #fff5e3);
}

.seminar-ticket__main::after { position: absolute; right: -75px; bottom: -75px; width: 220px; height: 220px; border: 1px solid rgba(232, 117, 24, .18); border-radius: 50%; content: ""; box-shadow: 0 0 0 24px rgba(232, 117, 24, .05), 0 0 0 49px rgba(104, 27, 36, .035); }
.seminar-ticket__heritage { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.seminar-ticket__hundred { color: var(--maroon-800); font-family: var(--font-serif); font-size: 58px; font-weight: 800; line-height: .82; letter-spacing: -.08em; }
.seminar-ticket__heritage div { display: grid; padding-left: 13px; border-left: 2px solid var(--saffron-500); }
.seminar-ticket__heritage p { margin: 0; color: var(--maroon-800); font-family: "Nirmala UI", var(--font-serif); font-size: 12px; font-weight: 800; }

.seminar-ticket__title { position: relative; z-index: 1; margin: 42px 0 25px; }
.seminar-ticket__title > span { color: var(--saffron-600); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.seminar-ticket__title h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; margin: 4px 0 0; color: var(--maroon-900); font-family: "Nirmala UI", var(--font-serif); font-size: clamp(28px, 4vw, 43px); line-height: 1.05; }
.seminar-ticket__title h2 b { font-weight: 750; }
.seminar-ticket__title h2 i { color: var(--saffron-500); font-size: .5em; font-style: normal; }
.seminar-ticket__title h2 strong { color: var(--saffron-600); }

.seminar-ticket__date { position: absolute; z-index: 1; top: 34px; right: 35px; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid #ecd4ad; border-radius: 13px; background: rgba(255, 248, 232, .9); }
.seminar-ticket__date-day { color: var(--maroon-800); font-family: var(--font-serif); font-size: 32px; font-weight: 800; line-height: .85; }
.seminar-ticket__date > span:last-child { display: grid; }
.seminar-ticket__date b { color: var(--maroon-800); font-size: 12px; text-transform: uppercase; }
.seminar-ticket__date small { color: var(--ink-500); font-size: 9px; }

.seminar-ticket__details { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.seminar-ticket__details div { display: grid; gap: 2px; min-width: 0; }
.seminar-ticket__details dt { color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.seminar-ticket__details dd { min-width: 0; overflow-wrap: anywhere; margin: 0; color: var(--ink-900); font-size: 14px; font-weight: 800; }
.seminar-ticket__registration { position: relative; z-index: 1; margin-top: 28px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink-500); font-size: 9px; }
.seminar-ticket__registration strong { color: var(--maroon-800); font-size: 10px; letter-spacing: .04em; }

.seminar-ticket__stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 25px; border-left: 2px dashed #d7bc93; text-align: center; background: linear-gradient(155deg, #fff8e8, #f5e1bd); }
.seminar-ticket__stub::before,
.seminar-ticket__stub::after { position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; content: ""; background: #f5e8d3; }
.seminar-ticket__stub::before { top: -14px; }
.seminar-ticket__stub::after { bottom: -14px; }
.seminar-ticket__admit { margin-bottom: 24px; padding: 6px 12px; border-radius: 999px; color: #fff; background: var(--maroon-800); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.seminar-ticket__stub > small { color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.seminar-ticket__number { margin: 3px 0 18px; color: var(--maroon-900); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 51px; line-height: 1; letter-spacing: .12em; }
.seminar-ticket__stub img { width: 100%; max-width: 230px; height: 104px; object-fit: contain; mix-blend-mode: multiply; }
.seminar-ticket__qr {
    display: grid;
    width: 188px;
    height: auto;
    aspect-ratio: 1;
    place-items: center;
    overflow: visible;
    padding: 10px;
    border: 1px solid #ddc39b;
    border-radius: 15px;
    background: #fffdf8;
    box-shadow: 0 8px 20px rgba(71, 13, 21, .09);
}
.seminar-ticket__qr canvas { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 5px; }
.seminar-ticket__qr noscript { display: block; width: 100%; }
.seminar-ticket__qr noscript img { height: auto; }
.seminar-ticket__instruction { margin-top: 15px; color: var(--maroon-800); font-size: 10px; font-weight: 800; }
.ticket-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(1020px, 100%); margin: 22px auto 0; }
.ticket-page__note { margin: 20px auto 0; color: var(--ink-500); font-size: 11px; text-align: center; }

/* Shared protected portal */
.portal-shell { min-height: 100svh; color: #e9eef8; background: #111823; }
.portal-shell--verification { background: radial-gradient(circle at 50% -10%, #253140, #111823 55%); }
.portal-header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px max(24px, calc((100% - 1380px) / 2)); border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(14, 21, 31, .9); backdrop-filter: blur(14px); }
.portal-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.portal-brand > span { color: #ffac3d; font-family: var(--font-serif); font-size: 35px; font-weight: 800; line-height: .8; letter-spacing: -.08em; }
.portal-brand > div { display: grid; }
.portal-brand strong { font-size: 14px; }
.portal-brand small { color: #8fa0b7; font-size: 10px; }
.portal-header__actions { display: flex; align-items: center; gap: 9px; }
.portal-header__actions form { margin: 0; }
.portal-link { display: inline-flex; min-height: 38px; align-items: center; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; color: #ced7e6; background: rgba(255, 255, 255, .035); font-size: 11px; font-weight: 750; text-decoration: none; }
.portal-link--button { cursor: pointer; font: inherit; }

/* Gate checker */
.verifier-main { width: min(760px, calc(100% - 28px)); margin: 0 auto; padding: 48px 0 60px; }
.verifier-intro { text-align: center; }
.verifier-intro h1 { margin: 6px 0 6px; color: #fff; font-family: var(--font-serif); font-size: clamp(34px, 7vw, 52px); line-height: 1.05; }
.verifier-intro p { max-width: 600px; margin: 0 auto; color: #9ba9bd; font-size: 13px; }
.ticket-search { margin: 28px 0 0; }
.ticket-search__control { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(255, 172, 61, .5); border-radius: 15px; background: #fff; box-shadow: 0 18px 45px rgba(0, 0, 0, .22); }
.ticket-search__control > span { display: grid; place-items: center; color: var(--maroon-800); background: #fff3dd; font-size: 22px; font-weight: 800; }
.ticket-search__control input { min-width: 0; min-height: 62px; padding: 0 15px; border: 0; outline: 0; color: #17202c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 20px; font-weight: 750; letter-spacing: .04em; }
.ticket-search__control button { padding: 0 22px; border: 0; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--saffron-500), var(--saffron-600)); font-size: 13px; font-weight: 850; }
.verifier-message { margin-top: 18px; font-size: 15px; text-align: center; }

.verification-result { margin-top: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; color: #1b2532; background: #f8fbff; box-shadow: 0 24px 60px rgba(0, 0, 0, .23); }
.verification-result--notfound { padding: 42px 25px; color: #d5deeb; background: rgba(255, 255, 255, .04); text-align: center; }
.verification-result--notfound h2 { margin: 13px 0 4px; color: #fff; }
.verification-result--notfound p { margin: 0; color: #9daabd; font-size: 13px; }
.verification-result__icon { display: grid; width: 60px; height: 60px; margin: 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #b42318; font-size: 32px; }
.verification-person { display: grid; grid-template-columns: 105px 1fr; gap: 18px; align-items: center; padding: 25px; border-bottom: 1px solid #dfe7ef; }
.verification-person h2 { margin: 4px 0 3px; color: #17202c; font-family: var(--font-serif); font-size: 30px; line-height: 1.05; }
.verification-person p { margin: 0; color: #68778b; font-size: 12px; }
.verification-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid #dfe7ef; }
.verification-facts div { display: grid; min-width: 0; gap: 4px; padding: 16px 25px; border-right: 1px solid #dfe7ef; border-bottom: 1px solid #dfe7ef; }
.verification-facts div:nth-child(even) { border-right: 0; }
.verification-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.verification-facts span { color: #8290a2; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.verification-facts strong { min-width: 0; overflow-wrap: anywhere; color: #263447; font-size: 13px; }
.verification-result > .portal-alert { margin: 18px 22px 0; }
.grant-form { padding: 20px 22px 24px; }
.grant-access-button { width: 100%; min-height: 64px; border: 0; border-radius: 14px; color: #fff; cursor: pointer; background: linear-gradient(135deg, #239161, #126b43); box-shadow: 0 12px 25px rgba(23, 114, 69, .22); font-size: 17px; font-weight: 850; }
.entry-state { display: grid; gap: 3px; margin: 20px; padding: 18px; border-radius: 13px; text-align: center; }
.entry-state--used { color: #8a1c13; background: #ffe7e4; }
.entry-state--success { color: #135c38; background: #e3faed; }
.entry-state--blocked { color: #7a330d; background: #fff0d6; }
.entry-state strong { font-size: 17px; }
.entry-state span { font-size: 12px; }
.verifier-tip { margin: 23px auto 0; color: #8493a8; font-size: 10px; text-align: center; }

/* Admin dashboard */
.admin-main { width: min(1380px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 60px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-heading h1 { margin: 5px 0 0; color: #fff; font-family: var(--font-serif); font-size: clamp(29px, 4vw, 42px); line-height: 1.05; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-grid article { position: relative; overflow: hidden; padding: 18px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: linear-gradient(145deg, #1a2431, #151e2a); }
.metric-grid article::after { position: absolute; top: -18px; right: -18px; width: 70px; height: 70px; border: 1px solid rgba(255, 172, 61, .14); border-radius: 50%; content: ""; }
.metric-grid span { display: block; color: #8fa0b7; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.metric-grid strong { display: block; margin: 5px 0 2px; color: #fff; font-size: 31px; line-height: 1; }
.metric-grid small { color: #718198; font-size: 9px; }
.metric-card--success strong { color: #57d294; }

.admin-panel { margin-top: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); border-radius: 15px; background: #18222f; box-shadow: 0 12px 34px rgba(0, 0, 0, .13); }
.admin-panel__heading { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-panel__heading h2 { margin: 0; color: #f5f8fc; font-size: 15px; }
.admin-panel__heading span { display: block; margin-top: 2px; color: #8190a5; font-size: 9px; }

.admin-filters { display: grid; grid-template-columns: minmax(260px, 1fr) 145px 155px 120px auto auto; gap: 9px; padding: 14px 17px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: #151e2a; }
.admin-filters input,
.admin-filters select { width: 100%; min-height: 43px; padding: 0 11px; border: 1px solid #344254; border-radius: 9px; outline: 0; color: #e7edf6; background: #111923; font-size: 11px; }
.admin-filters input:focus,
.admin-filters select:focus { border-color: #e87518; box-shadow: 0 0 0 3px rgba(232, 117, 24, .12); }
.admin-filters .portal-button { min-height: 43px; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th { padding: 11px 13px; color: #7f8ea3; background: #141d28; font-size: 9px; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 13px; border-top: 1px solid rgba(255, 255, 255, .055); color: #cbd5e3; vertical-align: middle; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.admin-table td > strong { display: block; color: #f4f7fb; font-size: 12px; }
.admin-table td > small { display: block; max-width: 240px; margin-top: 3px; overflow: hidden; color: #8090a5; font-size: 9px; text-overflow: ellipsis; }
.table-ticket { color: #ffb452 !important; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px !important; letter-spacing: .06em; }
.table-action { display: inline-flex; min-height: 31px; align-items: center; padding: 0 10px; border: 1px solid #3a485a; border-radius: 7px; color: #e2e8f1; font-size: 9px; font-weight: 800; text-decoration: none; }
.empty-cell { padding: 32px !important; color: #8290a4 !important; text-align: center; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 13px; padding: 13px 17px; border-top: 1px solid rgba(255, 255, 255, .06); color: #8190a5; font-size: 10px; }
.pagination a { color: #e4eaf3; text-decoration: none; }
.pagination a[aria-disabled="True"] { opacity: .35; pointer-events: none; }

.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 17px; border-top: 1px solid rgba(255, 255, 255, .055); color: inherit; text-decoration: none; }
.activity-item:first-child { border-top: 0; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: #7c8b9e; }
.activity-dot--granted { background: #4ed08a; box-shadow: 0 0 0 4px rgba(78, 208, 138, .08); }
.activity-dot--duplicatedenied { background: #ff6d5f; }
.activity-dot--attendancereset { background: #ffb452; }
.activity-item div { display: grid; }
.activity-item strong { color: #dbe3ee; font-size: 11px; }
.activity-item small { color: #75859a; font-size: 9px; }
.activity-item time { color: #77869a; font-size: 9px; white-space: nowrap; }
.empty-state { margin: 0; padding: 26px; color: #7f8fa4; font-size: 11px; text-align: center; }

/* Admin record details */
.admin-details-main { width: min(1160px, calc(100% - 40px)); }
.details-hero { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 23px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: linear-gradient(145deg, #1c2735, #151f2b); }
.details-hero h1 { margin: 4px 0 2px; color: #fff; font-family: var(--font-serif); font-size: 35px; line-height: 1.05; }
.details-hero p { margin: 0; color: #8fa0b5; font-size: 11px; }
.details-statuses { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.details-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }
.details-card,
.action-card { margin-top: 16px; }
.details-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.details-list div { padding: 15px 18px; border-right: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.details-list div:nth-child(even) { border-right: 0; }
.details-list dt { color: #7f8fa4; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.details-list dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #dce4ef; font-size: 11px; }
.action-card { align-self: start; padding-bottom: 16px; }
.action-card form,
.action-card > .portal-button { display: flex; margin: 10px 16px 0; width: calc(100% - 32px); }
.history-card { margin-top: 16px; }

@media (max-width: 1080px) {
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-filters { grid-template-columns: minmax(240px, 1fr) repeat(3, 125px); }
    .admin-filters .portal-button { grid-column: auto; }
    .details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .portal-header { align-items: flex-start; padding: 13px 15px; }
    .portal-header__actions { flex-wrap: wrap; justify-content: flex-end; }
    .portal-link { min-height: 34px; padding: 0 9px; font-size: 9px; }
    .portal-brand small { display: none; }
    .verifier-main { padding-top: 32px; }
    .ticket-search__control { grid-template-columns: 48px minmax(0, 1fr); }
    .ticket-search__control button { grid-column: 1 / -1; min-height: 50px; }
    .seminar-ticket { grid-template-columns: 1fr; min-height: 0; }
    .seminar-ticket__stub {
        display: grid;
        grid-template:
            "admit qr" auto
            "label qr" auto
            "number qr" 1fr
            "instruction qr" auto
            / minmax(0, 1fr) 150px;
        min-height: 0;
        gap: 2px 14px;
        padding: 20px 22px;
        border-top: 2px dashed #d7bc93;
        border-left: 0;
        text-align: left;
    }
    .seminar-ticket__stub::before,
    .seminar-ticket__stub::after { top: -15px; bottom: auto; }
    .seminar-ticket__stub::before { left: -14px; }
    .seminar-ticket__stub::after { right: -14px; left: auto; }
    .seminar-ticket__admit { grid-area: admit; justify-self: start; margin: 0 0 8px; }
    .seminar-ticket__stub > small { grid-area: label; align-self: end; }
    .seminar-ticket__number { grid-area: number; align-self: start; margin: 3px 0 0; font-size: 43px; letter-spacing: .08em; }
    .seminar-ticket__qr { grid-area: qr; align-self: center; width: 150px; height: auto; padding: 9px; }
    .seminar-ticket__qr canvas { width: 100%; height: auto; }
    .seminar-ticket__instruction { grid-area: instruction; align-self: end; margin: 8px 0 2px; }
    .admin-main { width: min(100% - 24px, 1380px); padding-top: 25px; }
    .admin-heading { align-items: stretch; flex-direction: column; }
    .admin-heading .portal-button { align-self: flex-start; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-search { grid-column: 1 / -1; }
    .details-hero { grid-template-columns: 90px 1fr; }
    .details-hero > .portal-button { grid-column: 1 / -1; }
    .details-list { grid-template-columns: 1fr; }
    .details-list div { border-right: 0; }
}

@media (max-width: 520px) {
    .access-page { align-items: start; padding: 14px; }
    .access-card { margin-top: 2vh; padding: 25px 19px; border-radius: 19px; }
    .access-card__date { align-items: flex-start; flex-direction: column; gap: 2px; }
    .ticket-page { min-height: 100svh; padding: 18px 10px 24px; }
    .ticket-page__heading { margin-bottom: 13px; padding: 0 7px; }
    .ticket-page__heading .portal-eyebrow { font-size: 9px; }
    .ticket-page__heading h1 { margin: 3px 0 3px; font-size: 29px; }
    .ticket-page__heading p { font-size: 10px; line-height: 1.35; }
    .seminar-ticket { border-radius: 18px; box-shadow: 0 16px 38px rgba(71, 13, 21, .16); }
    .seminar-ticket::before { width: 5px; }
    .seminar-ticket__main { padding: 18px 16px 15px 20px; }
    .seminar-ticket__main::after { right: -105px; bottom: -105px; }
    .seminar-ticket__heritage { align-items: center; gap: 10px; }
    .seminar-ticket__hundred { font-size: 40px; }
    .seminar-ticket__heritage div { padding-left: 9px; }
    .seminar-ticket__heritage p { font-size: 9px; line-height: 1.25; }
    .seminar-ticket__date { top: 17px; right: 15px; gap: 6px; margin: 0; padding: 6px 8px; }
    .seminar-ticket__date-day { font-size: 25px; }
    .seminar-ticket__date b { font-size: 9px; }
    .seminar-ticket__date small { font-size: 7px; }
    .seminar-ticket__title { margin: 15px 0 13px; padding-right: 0; }
    .seminar-ticket__title > span { font-size: 8px; }
    .seminar-ticket__title h2 { display: flex; gap: 1px 6px; font-size: 22px; line-height: 1.03; }
    .seminar-ticket__title h2 i { display: inline; }
    .seminar-ticket__details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
    .seminar-ticket__details dt { font-size: 7px; }
    .seminar-ticket__details dd { font-size: 12px; }
    .seminar-ticket__registration { overflow: hidden; margin-top: 12px; padding-top: 9px; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
    .seminar-ticket__registration strong { font-size: 8px; }
    .seminar-ticket__stub {
        grid-template:
            "admit qr" auto
            "label qr" auto
            "number qr" 1fr
            "instruction qr" auto
            / minmax(0, 1fr) 128px;
        gap: 1px 9px;
        padding: 14px 14px 14px 18px;
    }
    .seminar-ticket__admit { margin-bottom: 5px; padding: 4px 8px; font-size: 8px; }
    .seminar-ticket__stub > small { font-size: 7px; }
    .seminar-ticket__number { margin-top: 2px; font-size: clamp(31px, 10vw, 38px); letter-spacing: .055em; }
    .seminar-ticket__qr { width: 124px; height: auto; justify-self: end; padding: 7px; border-radius: 11px; }
    .seminar-ticket__qr canvas { width: 100%; height: auto; border-radius: 3px; }
    .seminar-ticket__instruction { margin-top: 5px; font-size: 8px; }
    .ticket-page__actions { display: grid; grid-template-columns: 1fr; padding: 0 8px; }
    .ticket-page__note { margin-top: 14px; font-size: 9px; }
    .portal-header { min-height: 64px; }
    .portal-brand > span { font-size: 30px; }
    .portal-brand strong { font-size: 11px; }
    .portal-header__actions .portal-link:first-child { display: none; }
    .verifier-intro p { font-size: 11px; }
    .ticket-search__control input { min-height: 58px; padding: 0 8px; font-size: 16px; }
    .verification-person { grid-template-columns: 1fr; gap: 13px; padding: 18px; }
    .verification-person h2 { font-size: 23px; }
    .verification-facts { grid-template-columns: 1fr; }
    .verification-facts div,
    .verification-facts div:nth-child(even) { border-right: 0; border-bottom: 1px solid #dfe7ef; }
    .verification-facts div:last-child { border-bottom: 0; }
    .grant-access-button { min-height: 62px; font-size: 14px; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .metric-grid article { padding: 14px; }
    .metric-grid article:last-child { grid-column: 1 / -1; }
    .metric-grid strong { font-size: 26px; }
    .admin-filters { grid-template-columns: 1fr; }
    .admin-search { grid-column: auto; }
    .admin-filters .portal-button { width: 100%; }
    .activity-item { grid-template-columns: 9px 1fr; }
    .activity-item time { grid-column: 2; }
    .details-hero { grid-template-columns: 72px 1fr; gap: 13px; padding: 17px; }
    .details-hero__ticket { width: 72px; height: 72px; }
    .details-hero h1 { font-size: 25px; }
}

@media print {
    @page { size: A4 landscape; margin: 10mm; }
    body { background: #fff !important; }
    .no-print,
    .ticket-page__heading,
    .ticket-page__note,
    .ticket-status-alert { display: none !important; }
    .ticket-page { display: grid; min-height: 0; place-items: center; padding: 0; background: #fff !important; }
    .seminar-ticket { width: 100%; min-height: 135mm; border: 1px solid #b88b55; border-radius: 0; box-shadow: none; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Heritage portal redesign — admin and gate verification */
.portal-shell {
    --portal-card: rgba(255, 253, 248, .96);
    --portal-border: rgba(200, 149, 61, .29);
    --portal-muted: #7b625a;
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    overflow: hidden;
    color: var(--ink-900);
    background:
        radial-gradient(circle at 8% 8%, rgba(232, 117, 24, .11), transparent 23rem),
        radial-gradient(circle at 95% 22%, rgba(104, 27, 36, .075), transparent 28rem),
        linear-gradient(180deg, #fffaf0 0%, #f7ead4 52%, #fffaf3 100%);
}

.portal-shell::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 560px;
    content: "";
    opacity: .035;
    background: url("../images/rss-centenary-approved-hero-v3.webp") center top / cover no-repeat;
    filter: sepia(.25);
    pointer-events: none;
}

.portal-shell--verification {
    background:
        radial-gradient(circle at 50% -8%, rgba(240, 163, 58, .20), transparent 30rem),
        radial-gradient(circle at 92% 42%, rgba(104, 27, 36, .07), transparent 25rem),
        linear-gradient(180deg, #fff9ec, #f5e5cc 62%, #fffaf2);
}

.portal-header {
    position: relative;
    z-index: 20;
    min-height: 78px;
    padding: 12px max(24px, calc((100% - 1380px) / 2));
    border-top: 5px solid var(--saffron-500);
    border-bottom: 1px solid rgba(200, 149, 61, .32);
    color: var(--ink-900);
    background: rgba(255, 253, 248, .94);
    box-shadow: 0 8px 30px rgba(71, 13, 21, .07);
    backdrop-filter: blur(16px);
}

.portal-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--saffron-500), transparent);
    opacity: .45;
}

.portal-brand { gap: 14px; color: var(--maroon-900); }
.portal-brand__mark,
.portal-brand > span {
    display: grid;
    min-width: 66px;
    min-height: 49px;
    place-items: center;
    padding: 0 9px;
    border: 1px solid rgba(200, 149, 61, .38);
    border-radius: 15px 5px 15px 5px;
    color: var(--maroon-800);
    background: linear-gradient(145deg, #fff9ea, #f4ddb5);
    font-size: 34px;
    letter-spacing: -.07em;
    box-shadow: inset 0 0 0 3px rgba(255, 253, 248, .55);
}

.portal-brand strong { color: var(--maroon-900); font-family: "Nirmala UI", var(--font-serif); font-size: 15px; }
.portal-brand small { color: var(--portal-muted); font-size: 10px; }
.portal-header__actions { gap: 10px; }
.portal-link {
    min-height: 42px;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid #ddc6a6;
    border-radius: 11px;
    color: var(--maroon-800);
    background: rgba(255, 253, 248, .85);
    box-shadow: 0 4px 12px rgba(71, 13, 21, .04);
    transition: color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.portal-link:hover { color: #fff; background: var(--maroon-800); box-shadow: 0 8px 18px rgba(104, 27, 36, .16); transform: translateY(-1px); }
.portal-link--button { color: #795750; }

/* Admin dashboard */
.admin-main { width: min(1380px, calc(100% - 40px)); padding: 30px 0 66px; }
.admin-heading--heritage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    align-items: center;
    min-height: 176px;
    margin-bottom: 20px;
    padding: 30px 34px;
    border: 1px solid rgba(200, 149, 61, .42);
    border-left: 7px solid var(--saffron-500);
    border-radius: 23px;
    background:
        linear-gradient(100deg, rgba(71, 13, 21, .97) 0%, rgba(104, 27, 36, .93) 54%, rgba(127, 37, 48, .82) 100%),
        url("../images/rss-centenary-approved-hero-v3.webp") center 40% / cover;
    box-shadow: 0 20px 48px rgba(71, 13, 21, .16);
}
.admin-heading--heritage::before,
.admin-heading--heritage::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 198, 111, .18);
    border-radius: 50%;
    content: "";
}
.admin-heading--heritage::before { right: 11%; width: 210px; height: 210px; }
.admin-heading--heritage::after { right: 5%; width: 105px; height: 105px; box-shadow: 0 0 0 28px rgba(255, 198, 111, .035); }
.admin-heading__copy { position: relative; z-index: 1; }
.admin-heading .portal-eyebrow { color: #ffc66f; }
.admin-heading h1 { margin: 6px 0 5px; color: #fffdf8; font-size: clamp(30px, 4vw, 46px); }
.admin-heading p { margin: 0; color: #e7cfc9; font-size: 12px; }
.admin-heading--heritage > .portal-button { position: relative; z-index: 1; border-color: rgba(255,255,255,.7); background: #fffdf8; box-shadow: 0 12px 28px rgba(40, 5, 10, .18); }

.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 21px; }
.metric-grid .metric-card {
    display: flex;
    min-height: 126px;
    align-items: center;
    gap: 14px;
    padding: 19px;
    border: 1px solid var(--portal-border);
    border-top: 4px solid var(--saffron-500);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255,253,248,.98), rgba(255,248,232,.94));
    box-shadow: 0 10px 25px rgba(83, 39, 24, .075);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.metric-grid .metric-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(83, 39, 24, .12); }
.metric-grid .metric-card::after { display: none; }
.metric-card__icon {
    display: grid !important;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: var(--maroon-800) !important;
    background: #f8e4c2;
    font-size: 21px !important;
    font-weight: 900 !important;
}
.metric-grid .metric-card > div { min-width: 0; }
.metric-grid .metric-card span:not(.metric-card__icon) { color: #765c54; font-size: 9px; letter-spacing: .04em; }
.metric-grid .metric-card strong { margin: 5px 0 3px; color: var(--maroon-900); font-size: 31px; }
.metric-grid .metric-card small { color: #90786f; }
.metric-card--payment { border-top-color: #d69b27 !important; }
.metric-card--payment .metric-card__icon { color: #8a5900 !important; background: #fff0c9; }
.metric-card--success { border-top-color: #299166 !important; }
.metric-card--success .metric-card__icon { color: #176a46 !important; background: #ddf6e8; }
.metric-grid .metric-card--success strong { color: #177245; }
.metric-card--waiting { border-top-color: #d6682e !important; }
.metric-card--waiting .metric-card__icon { color: #98400e !important; background: #ffead8; }
.metric-card--wards { border-top-color: var(--maroon-700) !important; }
.metric-card--wards .metric-card__icon { color: var(--maroon-800) !important; background: #f6dde0; }

.admin-panel {
    margin-top: 17px;
    border: 1px solid var(--portal-border);
    border-radius: 19px;
    color: var(--ink-900);
    background: var(--portal-card);
    box-shadow: 0 14px 35px rgba(83, 39, 24, .08);
}
.admin-panel__heading {
    min-height: 76px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #fffdf8, #fff7e8);
}
.admin-panel__heading h2 { margin: 1px 0 0; color: var(--maroon-900); font-size: 17px; }
.admin-panel__heading span { color: #8b7169; font-size: 10px; }
.admin-panel__kicker { color: var(--saffron-600) !important; font-size: 8px !important; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.admin-panel__count { display: inline-flex !important; min-height: 31px; align-items: center; padding: 0 11px; border: 1px solid #e8cfaa; border-radius: 999px; color: var(--maroon-800) !important; background: #fff8e8; font-weight: 800; }

.admin-filters { grid-template-columns: minmax(280px, 1fr) 145px 155px 125px auto auto; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fff9ed; }
.admin-search { position: relative; }
.admin-search > span { position: absolute; z-index: 1; top: 50%; left: 14px; color: var(--maroon-700); font-size: 20px; transform: translateY(-53%); }
.admin-search input { padding-left: 40px !important; }
.admin-filters input,
.admin-filters select { min-height: 46px; border: 1px solid #ddc7a8; border-radius: 11px; color: var(--ink-900); background: #fff; box-shadow: 0 3px 10px rgba(71, 13, 21, .025); }
.admin-filters input::placeholder { color: #a58f87; }
.admin-filters input:focus,
.admin-filters select:focus { border-color: var(--saffron-500); background: #fffdf8; }
.admin-filters .portal-button { min-height: 46px; }
.admin-table { color: var(--ink-900); font-size: 11px; }
.admin-table th { padding: 13px 15px; color: var(--maroon-800); background: #fbebd1; font-size: 9px; letter-spacing: .08em; }
.admin-table td { padding: 15px; border-top: 1px solid #f0e0c7; color: #5d4640; }
.admin-table tbody tr { transition: background 140ms ease, box-shadow 140ms ease; }
.admin-table tbody tr:hover { background: #fff9eb; box-shadow: inset 4px 0 var(--saffron-500); }
.admin-table td > strong { color: var(--ink-900); font-size: 12px; }
.admin-table td > small { color: #8c736b; font-size: 9px; }
.table-ticket { color: var(--maroon-800) !important; font-size: 16px !important; }
.table-action { min-height: 34px; gap: 7px; border-color: #d7b987; color: var(--maroon-800); background: #fff8e8; }
.table-action:hover { color: #fff; background: var(--maroon-800); }
.empty-cell { color: #927a71 !important; }
.pagination { border-top-color: var(--line); color: #8c736b; background: #fff9ec; }
.pagination a { color: var(--maroon-800); font-weight: 800; }
.activity-item { border-top-color: #f0e0c7; color: var(--ink-900); }
.activity-item:hover { background: #fff9eb; }
.activity-dot { background: #ae978f; }
.activity-dot--granted { background: #299166; box-shadow: 0 0 0 4px rgba(41,145,102,.1); }
.activity-dot--duplicatedenied { background: #c2473d; }
.activity-dot--attendancereset { background: #e59728; }
.activity-item strong { color: var(--ink-900); }
.activity-item small,
.activity-item time { color: #8d756d; }
.empty-state { color: #8d756d; }

/* Admin registration detail view */
.details-hero {
    border: 1px solid var(--portal-border);
    border-left: 6px solid var(--saffron-500);
    border-radius: 19px;
    background:
        linear-gradient(95deg, rgba(255,253,248,.98), rgba(255,247,232,.93)),
        url("../images/rss-centenary-approved-hero-v3.webp") center / cover;
    box-shadow: 0 14px 35px rgba(83, 39, 24, .09);
}
.details-hero__ticket {
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, var(--saffron-500), var(--maroon-800));
    box-shadow: 0 0 0 2px var(--saffron-500), 0 8px 18px rgba(71,13,21,.13);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 900;
    text-align: center;
}
.details-hero__ticket small { font-family: var(--font-sans); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.details-hero__ticket strong { font-size: 25px; letter-spacing: .08em; }
.details-hero h1 { color: var(--maroon-900); }
.details-hero p { color: #7e655d; }
.details-list div { border-right-color: #f0e0c7; border-bottom-color: #f0e0c7; }
.details-list dt { color: #927a71; }
.details-list dd { color: #513a35; }

/* Ticket verifier */
.verifier-main { width: min(880px, calc(100% - 30px)); padding: 34px 0 66px; }
.verifier-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    text-align: left;
}
.verifier-intro__mark {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    border: 1px solid #e1bd82;
    border-radius: 18px 6px 18px 6px;
    color: #fff;
    background: linear-gradient(145deg, var(--saffron-500), var(--maroon-800));
    box-shadow: 0 12px 24px rgba(104, 27, 36, .17);
    font-size: 29px;
    font-weight: 900;
}
.verifier-intro h1 { margin: 4px 0 3px; color: var(--maroon-900); font-size: clamp(32px, 6vw, 49px); }
.verifier-intro p { max-width: none; color: #79615a; font-size: 12px; }
.ticket-search { margin-top: 23px; }
.ticket-search__control { border: 1px solid rgba(200,149,61,.55); border-radius: 17px; box-shadow: 0 14px 35px rgba(71, 13, 21, .12); }
.ticket-search__control > span { color: var(--maroon-800); background: #fff1d5; }
.ticket-search__control input { min-height: 66px; color: var(--maroon-950); background: #fffdf9; }
.ticket-search__control button { display: inline-flex; align-items: center; gap: 8px; padding: 0 25px; background: linear-gradient(135deg, var(--maroon-800), var(--maroon-950)); box-shadow: inset 4px 0 rgba(232,117,24,.65); }
.qr-scan-button {
    display: flex;
    width: min(420px, 100%);
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 13px auto 0;
    padding: 9px 19px;
    border: 1px solid #d6a962;
    border-radius: 15px;
    color: var(--maroon-900);
    cursor: pointer;
    background: linear-gradient(145deg, #fffdf8, #fff0d5);
    box-shadow: 0 9px 22px rgba(71, 13, 21, .08);
    transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}
.qr-scan-button:hover,
.qr-scan-button.is-active { color: #fff; background: linear-gradient(135deg, var(--saffron-500), var(--maroon-800)); box-shadow: 0 13px 26px rgba(104, 27, 36, .18); transform: translateY(-1px); }
.qr-scan-button__icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid currentColor; border-radius: 11px 4px 11px 4px; font-size: 22px; font-weight: 900; }
.qr-scan-button > span:last-child { display: grid; text-align: left; }
.qr-scan-button strong { font-size: 13px; }
.qr-scan-button small { color: #8c7067; font-size: 9px; font-weight: 650; }
.qr-scan-button:hover small,
.qr-scan-button.is-active small { color: #ffe5bc; }

.qr-scanner {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid rgba(200,149,61,.48);
    border-radius: 22px;
    color: var(--ink-900);
    background: #fffdf8;
    box-shadow: 0 22px 50px rgba(71,13,21,.14);
}
.qr-scanner[hidden] { display: none; }
.qr-scanner__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 21px 17px; border-bottom: 1px solid #ead8bc; background: linear-gradient(90deg, #fff6e6, #fffdf8); }
.qr-scanner__heading h2 { margin: 3px 0 2px; color: var(--maroon-900); font-family: var(--font-serif); font-size: 25px; }
.qr-scanner__heading p { margin: 0; color: #80675f; font-size: 10px; }
.qr-scanner__close { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #d9bf99; border-radius: 11px; color: var(--maroon-800); cursor: pointer; background: #fff; font-size: 24px; line-height: 1; }
.qr-scanner__viewport { position: relative; width: min(560px, calc(100% - 34px)); aspect-ratio: 4 / 3; overflow: hidden; margin: 18px auto 0; border: 5px solid #fff; border-radius: 21px; background: #2b211e; box-shadow: 0 0 0 1px #d7b77f, 0 14px 30px rgba(71,13,21,.2); }
.qr-scanner__viewport video { width: 100%; height: 100%; object-fit: cover; }
.qr-scanner__shade { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0 32%, rgba(26,13,14,.36) 59%, rgba(26,13,14,.58)); pointer-events: none; }
.qr-scanner__frame { position: absolute; top: 50%; left: 50%; width: min(62%, 285px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.qr-scanner__frame i { position: absolute; width: 43px; height: 43px; border-color: #ffad37; border-style: solid; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.qr-scanner__frame i:nth-child(1) { top: 0; left: 0; border-width: 5px 0 0 5px; border-radius: 12px 0 0; }
.qr-scanner__frame i:nth-child(2) { top: 0; right: 0; border-width: 5px 5px 0 0; border-radius: 0 12px 0 0; }
.qr-scanner__frame i:nth-child(3) { right: 0; bottom: 0; border-width: 0 5px 5px 0; border-radius: 0 0 12px; }
.qr-scanner__frame i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 5px 5px; border-radius: 0 0 0 12px; }
.qr-scanner__frame span { position: absolute; top: 5px; right: 13px; left: 13px; height: 2px; background: linear-gradient(90deg, transparent, #ffbd5c, transparent); box-shadow: 0 0 10px #ff9d14; animation: qr-scan-line 2s ease-in-out infinite alternate; }
.qr-scanner__success { position: absolute; z-index: 3; top: 50%; left: 50%; display: none; width: 82px; height: 82px; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: #218a5d; box-shadow: 0 12px 30px rgba(0,0,0,.28); font-size: 44px; font-weight: 900; transform: translate(-50%, -50%); }
.qr-scanner__success.is-visible { display: grid; }
.qr-scanner__status { margin: 15px 18px 0; padding: 11px 14px; border: 1px solid #ead4b0; border-radius: 11px; color: #765d55; background: #fff8e9; font-size: 11px; font-weight: 700; text-align: center; }
.qr-scanner__status[data-state="working"] { color: #7a4a05; border-color: #e9c575; background: #fff2cd; }
.qr-scanner__status[data-state="success"] { color: #13633e; border-color: #a6d8bc; background: #e8faef; }
.qr-scanner__status[data-state="error"] { color: #8a2119; border-color: #e3aea7; background: #fff0ed; }
.qr-scanner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding: 14px 18px 0; }
.qr-image-upload { position: relative; overflow: hidden; cursor: pointer; }
.qr-image-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.qr-scanner__privacy { margin: 11px 18px 17px; color: #9a8078; font-size: 8px; text-align: center; }
@keyframes qr-scan-line { from { transform: translateY(6px); } to { transform: translateY(246px); } }
.verifier-message { box-shadow: 0 7px 18px rgba(71,13,21,.06); }

.verification-result {
    margin-top: 19px;
    border: 1px solid rgba(200,149,61,.42);
    border-radius: 22px;
    color: var(--ink-900);
    background: #fffdf8;
    box-shadow: 0 23px 55px rgba(71, 13, 21, .14);
}
.verification-result--notfound { padding: 38px 25px; border-color: #e4b2ac; color: #76534f; background: #fff7f5; }
.verification-result--notfound h2 { color: #8a1c13; }
.verification-result--notfound p { color: #80655f; }
.verification-result__icon { background: linear-gradient(145deg, #c8473c, #8a1c13); }
.verification-decision {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    min-height: 102px;
    padding: 18px 21px;
    border-bottom: 1px solid transparent;
}
.verification-decision__icon {
    display: grid;
    width: 55px;
    height: 55px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 27px;
    font-weight: 900;
}
.verification-decision > div { display: grid; }
.verification-decision small { font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.verification-decision strong { font-family: var(--font-serif); font-size: 24px; line-height: 1.15; }
.verification-decision span:not(.verification-decision__icon) { font-size: 11px; }
.verification-decision > b { padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.verification-decision--success { color: #10613c; border-bottom-color: #a9d7bd; background: linear-gradient(90deg, #e4f9ed, #f5fff9); }
.verification-decision--admitted { color: #82500b; border-bottom-color: #e6c17d; background: linear-gradient(90deg, #fff0c9, #fffaf0); }
.verification-decision--duplicate { color: #8b2018; border-bottom-color: #e5afa9; background: linear-gradient(90deg, #ffe7e3, #fff7f5); }
.verification-decision--blocked { color: #883b0d; border-bottom-color: #e8bd82; background: linear-gradient(90deg, #ffedd2, #fff8ed); }
.verification-decision--review { color: var(--maroon-800); border-bottom-color: #e8c99a; background: linear-gradient(90deg, #fff0d4, #fffaf0); }
.verification-person { grid-template-columns: minmax(0, 1fr) auto; gap: 19px; padding: 22px 24px; border-bottom: 1px solid #ead8bc; background: #fffdf8; }
.verification-person h2 { color: var(--maroon-900); font-size: 31px; }
.verification-person p { color: #7e655d; }
.verification-ticket-number { min-width: 132px; padding: 12px 14px; border: 1px solid #e2c391; border-radius: 14px; text-align: center; background: #fff5e1; }
.verification-ticket-number small { display: block; color: #8c736b; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.verification-ticket-number strong { display: block; margin-top: 2px; color: var(--maroon-900); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 24px; letter-spacing: .09em; }
.verification-facts { gap: 10px; padding: 14px 18px; border-bottom: 1px solid #ead8bc; background: #fff9ed; }
.verification-facts div { min-height: 66px; justify-content: center; padding: 11px 14px; border: 1px solid #ead7b9 !important; border-radius: 12px; background: #fffdf8; }
.verification-facts span { color: #92786f; }
.verification-facts strong { color: #4b332e; }
.verification-result > .portal-alert { margin: 16px 18px 0; }
.verification-payment-warning { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.verification-payment-warning strong { font-size: 12px; }
.verification-payment-warning span { font-size: 10px; font-weight: 600; }
.grant-form { padding: 18px; }
.grant-access-button { display: flex; min-height: 70px; align-items: center; justify-content: center; gap: 14px; border: 1px solid #1b7c50; border-radius: 16px; background: linear-gradient(135deg, #278e61, #0e623d); box-shadow: 0 13px 27px rgba(23,114,69,.2); }
.grant-access-button > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 19px; }
.grant-access-button > span:last-child { display: grid; text-align: left; }
.grant-access-button strong { font-size: 16px; }
.grant-access-button small { color: #c8f0d9; font-size: 9px; font-weight: 650; }
.verification-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 19px; border-top: 1px solid #ead8bc; background: #fff9ed; }
.verification-next small { color: #897169; font-size: 9px; }
.verifier-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 20px; }
.verifier-guide article { display: flex; min-height: 92px; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--portal-border); border-radius: 15px; background: rgba(255,253,248,.82); box-shadow: 0 8px 22px rgba(83,39,24,.05); }
.verifier-guide article > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--maroon-800); font-size: 12px; font-weight: 900; }
.verifier-guide article div { display: grid; }
.verifier-guide strong { color: var(--maroon-900); font-size: 11px; }
.verifier-guide small { color: #897169; font-size: 9px; }
.verifier-tip { color: #806961; }

@media (max-width: 1080px) {
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-filters { grid-template-columns: minmax(240px, 1fr) repeat(3, 125px); }
}

@media (max-width: 760px) {
    .portal-header { padding: 11px 14px; }
    .portal-brand__mark,
    .portal-brand > span { min-width: 54px; min-height: 43px; font-size: 28px; }
    .portal-link { min-height: 38px; }
    .admin-main { width: min(100% - 22px, 1380px); padding-top: 20px; }
    .admin-heading--heritage { min-height: 0; align-items: stretch; padding: 24px; }
    .admin-heading--heritage > .portal-button { align-self: flex-start; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-grid .metric-card { min-height: 112px; padding: 15px; }
    .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-search { grid-column: 1 / -1; }
    .details-hero__ticket { width: 90px; height: 90px; }
    .verifier-main { padding-top: 24px; }
    .verification-person { grid-template-columns: minmax(0, 1fr); }
    .verification-ticket-number { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
    .verification-decision { grid-template-columns: 49px 1fr; }
    .verification-decision > b { grid-column: 2; justify-self: start; }
}

@media (max-width: 620px) {
    .portal-header { align-items: center; }
    .portal-brand strong { font-size: 11px; }
    .portal-header__actions .portal-link:first-child { display: inline-flex; }
    .portal-link { width: 42px; overflow: hidden; justify-content: center; padding: 0; color: transparent; white-space: nowrap; }
    .portal-link span { flex: 0 0 auto; color: var(--maroon-800); font-size: 15px; }
    .portal-link:hover span { color: #fff; }
    .admin-heading--heritage { border-left-width: 5px; border-radius: 18px; }
    .admin-heading h1 { font-size: 30px; }
    .admin-heading p { font-size: 10px; }
    .metric-grid { gap: 8px; }
    .metric-grid .metric-card { min-height: 100px; gap: 10px; padding: 13px; }
    .metric-card__icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; font-size: 17px !important; }
    .metric-grid .metric-card strong { font-size: 26px; }
    .metric-grid .metric-card:last-child { grid-column: 1 / -1; }
    .admin-filters { grid-template-columns: 1fr; }
    .admin-search { grid-column: auto; }
    .table-scroll { overflow: visible; padding: 11px; }
    .admin-table,
    .admin-table tbody { display: block; }
    .admin-table thead { display: none; }
    .admin-table tbody { display: grid; gap: 11px; }
    .admin-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e8d2af; border-radius: 14px; background: #fffdf8; box-shadow: 0 7px 17px rgba(83,39,24,.05); }
    .admin-table td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid #f0e0c7; }
    .admin-table td::before { color: #9a7d73; content: attr(data-label); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
    .admin-table td[data-label="Yuva"] { grid-column: 1 / -1; order: -1; padding: 14px; border-top: 0; background: #fff6e7; }
    .admin-table td[data-label="Yuva"]::before { display: none; }
    .admin-table td[data-label="Yuva"] strong { color: var(--maroon-900); font-size: 14px; }
    .admin-table td[data-label="Action"] { grid-column: 1 / -1; }
    .admin-table td[data-label="Action"] .table-action { width: 100%; justify-content: center; }
    .admin-table .empty-cell { display: block; grid-column: 1 / -1; }
    .activity-item { grid-template-columns: 9px 1fr; }
    .activity-item time { grid-column: 2; }
    .details-hero__ticket { width: 72px; height: 72px; }
    .verifier-intro { align-items: flex-start; }
    .verifier-intro__mark { width: 51px; height: 51px; flex-basis: 51px; border-radius: 14px 5px 14px 5px; font-size: 23px; }
    .verifier-intro h1 { font-size: 29px; }
    .ticket-search__control { grid-template-columns: 46px minmax(0, 1fr); }
    .ticket-search__control button { grid-column: 1 / -1; min-height: 52px; justify-content: center; }
    .qr-scan-button { width: 100%; }
    .qr-scanner { border-radius: 18px; }
    .qr-scanner__heading { padding: 16px; }
    .qr-scanner__heading h2 { font-size: 22px; }
    .qr-scanner__viewport { width: calc(100% - 24px); margin-top: 12px; border-width: 4px; border-radius: 16px; }
    .qr-scanner__actions { display: grid; grid-template-columns: 1fr; padding-inline: 12px; }
    .qr-scanner__actions .portal-button { width: 100%; }
    @keyframes qr-scan-line { from { transform: translateY(6px); } to { transform: translateY(190px); } }
    .verification-result { border-radius: 18px; }
    .verification-decision { grid-template-columns: 44px 1fr; gap: 12px; min-height: 0; padding: 16px; }
    .verification-decision__icon { width: 44px; height: 44px; font-size: 21px; }
    .verification-decision strong { font-size: 20px; }
    .verification-person { grid-template-columns: 1fr; gap: 13px; padding: 17px; }
    .verification-person h2 { font-size: 23px; }
    .verification-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 11px; }
    .verification-facts div,
    .verification-facts div:nth-child(even),
    .verification-facts div:last-child { min-height: 61px; border: 1px solid #ead7b9 !important; }
    .verification-payment-warning { align-items: flex-start; flex-direction: column; }
    .grant-access-button strong { font-size: 13px; }
    .verification-next { align-items: stretch; flex-direction: column; }
    .verification-next .portal-button { width: 100%; }
    .verifier-guide { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
    .portal-brand small { display: none; }
    .portal-brand__mark,
    .portal-brand > span { min-width: 47px; min-height: 39px; font-size: 24px; }
    .portal-header__actions { gap: 6px; }
    .portal-link { width: 38px; min-height: 36px; }
    .metric-grid .metric-card { display: block; }
    .metric-card__icon { margin-bottom: 8px; }
    .verification-decision > b { grid-column: 1 / -1; }
    .verification-person { grid-template-columns: 1fr; }
    .verification-facts { grid-template-columns: 1fr; }
}

/* Admin Control Centre v3 */
.admin-app { min-height: 100svh; color: #3f2e2a; background: #f6f1e8; }
.admin-topbar { position: sticky; z-index: 40; top: 0; display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 24px; border-bottom: 1px solid #e4d7c5; background: rgba(255,253,248,.95); box-shadow: 0 5px 22px rgba(86,49,31,.06); backdrop-filter: blur(16px); }
.admin-logo { display: flex; align-items: center; gap: 12px; color: #681b24; text-decoration: none; }
.admin-logo__mark { display: grid; width: 48px; height: 42px; place-items: center; border-radius: 13px 5px 13px 5px; color: #fff; background: linear-gradient(145deg,#e87518,#9f311b); box-shadow: 0 7px 16px rgba(159,49,27,.2); font-family: var(--font-serif); font-size: 24px; font-weight: 900; letter-spacing: -.07em; }
.admin-logo > span:last-child { display: grid; }
.admin-logo strong { font-size: 14px; }
.admin-logo small { margin-top: 2px; color: #92766e; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.admin-topbar__right { display: flex; align-items: center; gap: 9px; }
.admin-topbar__right form { margin: 0; }
.admin-live { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; color: #5d6f62; font-size: 10px; font-weight: 800; }
.admin-live i { width: 8px; height: 8px; border-radius: 50%; background: #20a463; box-shadow: 0 0 0 5px rgba(32,164,99,.1); }
.admin-top-action { display: inline-flex; min-height: 38px; align-items: center; padding: 0 13px; border: 1px solid #d8c5a8; border-radius: 10px; color: #681b24; background: #fffaf1; font-size: 10px; font-weight: 850; text-decoration: none; cursor: pointer; }
.admin-top-action--muted { color: #765f58; border-color: #e5d8c7; background: #fff; font: inherit; }
.admin-frame { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: calc(100svh - 68px); }
.admin-sidebar { position: sticky; top: 68px; align-self: start; height: calc(100svh - 68px); padding: 19px 13px; border-right: 1px solid #e3d7c7; background: #fffaf2; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a { display: grid; grid-template-columns: 34px 1fr; min-height: 43px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid transparent; border-radius: 11px; color: #765f58; font-size: 11px; text-decoration: none; transition: 140ms ease; }
.admin-nav a span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #8d5a3f; background: #f7ead6; font-size: 14px; }
.admin-nav a b { font-weight: 800; }
.admin-nav a:hover { color: #681b24; background: #fff2dd; }
.admin-nav a.is-active { border-color: #e6c999; color: #681b24; background: linear-gradient(135deg,#fff1d7,#fffaf1); box-shadow: 0 6px 16px rgba(112,47,28,.07); }
.admin-nav a.is-active span { color: #fff; background: linear-gradient(145deg,#e87518,#a43a22); }
.admin-sidebar__event { position: absolute; right: 13px; bottom: 18px; left: 13px; display: grid; padding: 15px; border: 1px solid #e4c99d; border-radius: 13px; background: linear-gradient(145deg,#fff4df,#fffbf4); }
.admin-sidebar__event small { color: #a45a24; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.admin-sidebar__event strong { margin-top: 4px; color: #681b24; font-size: 12px; }
.admin-sidebar__event span { color: #8c7066; font-size: 9px; }
.admin-content { width: 100%; max-width: 1540px; min-width: 0; margin: 0 auto; padding: 27px 28px 60px; }
.admin-flash { margin: 0 0 17px; }
.admin-page-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 21px; }
.admin-page-head--compact { align-items: center; }
.admin-kicker { color: #d5661b; font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.admin-page-head h1,.admin-record-hero h1 { margin: 5px 0 4px; color: #54141d; font-family: var(--font-serif); font-size: clamp(29px,3vw,42px); line-height: 1.06; }
.admin-page-head p,.admin-record-hero p { margin: 0; color: #876f67; font-size: 11px; }
.admin-page-head__actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.admin-btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; color: #5e191f; background: transparent; font-size: 10px; font-weight: 850; text-decoration: none; cursor: pointer; transition: 140ms ease; }
.admin-btn:hover { transform: translateY(-1px); }
.admin-btn--primary { color: #fff; background: linear-gradient(135deg,#7b202a,#4f1119); box-shadow: 0 8px 18px rgba(79,17,25,.15); }
.admin-btn--light { border-color: #ddc7a5; background: #fffaf1; }
.admin-btn--ghost { color: #826e67; }
.admin-btn--success { color: #fff; background: linear-gradient(135deg,#27895d,#17633f); }
.admin-btn--danger { color: #fff; background: linear-gradient(135deg,#c64639,#90271f); }
.admin-btn--wide { width: 100%; }
.admin-metrics { display: grid; gap: 11px; margin-bottom: 18px; }
.admin-metrics--six { grid-template-columns: repeat(6,minmax(0,1fr)); }
.admin-metrics--five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.admin-stat { display: flex; min-width: 0; min-height: 102px; align-items: center; gap: 12px; padding: 15px; border: 1px solid #e4d4bd; border-top: 3px solid #e5a340; border-radius: 14px; color: inherit; background: #fffdf9; box-shadow: 0 8px 22px rgba(92,55,33,.05); text-decoration: none; }
.admin-stat__icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 12px; font-size: 17px; font-style: normal; font-weight: 900; }
.admin-stat__icon--saffron { color: #9c4d13; background: #ffebca; }
.admin-stat__icon--green { color: #176d47; background: #def5e8; }
.admin-stat__icon--amber { color: #915a00; background: #fff0bf; }
.admin-stat__icon--red { color: #9b3128; background: #fde2df; }
.admin-stat__icon--maroon { color: #681b24; background: #f2dde0; }
.admin-stat > div { min-width: 0; }
.admin-stat small { display: block; color: #8b746c; font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.admin-stat strong { display: block; margin: 4px 0 2px; overflow: hidden; color: #54141d; font-size: 25px; line-height: 1; text-overflow: ellipsis; }
.admin-stat em { display: block; overflow: hidden; color: #a0877e; font-size: 8px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.admin-alert-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.admin-alert { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e5c782; border-radius: 12px; background: #fff8e4; }
.admin-alert > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #8d5300; background: #ffe7ac; font-weight: 900; }
.admin-alert strong { color: #65451d; font-size: 11px; }
.admin-alert p { margin: 2px 0 0; color: #8a6f4d; font-size: 9px; }
.admin-alert a,.admin-inline-button { color: #681b24; font-size: 9px; font-weight: 900; text-decoration: none; }
.admin-alert form { margin: 0; }
.admin-inline-button { padding: 8px 11px; border: 1px solid #d9b46a; border-radius: 8px; background: #fffdf8; cursor: pointer; }
.admin-alert--danger { border-color: #e3a09a; background: #fff1ef; }
.admin-alert--danger > span { color: #9c2e25; background: #ffdbd7; }
.admin-alert--warning { border-color: #e5c782; background: #fff8e4; }
.admin-alert--info { border-color: #b9cfe0; background: #eff8ff; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(360px,.75fr); gap: 15px; margin-top: 15px; }
.admin-dashboard-grid--equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.admin-card { min-width: 0; overflow: hidden; border: 1px solid #e4d4bd; border-radius: 15px; background: #fffdf9; box-shadow: 0 9px 26px rgba(92,55,33,.05); }
.admin-card__head { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; border-bottom: 1px solid #eee0cc; background: linear-gradient(180deg,#fffdf9,#fffaf2); }
.admin-card__head span { color: #c46922; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.admin-card__head h2 { margin: 3px 0 0; color: #54141d; font-size: 15px; }
.admin-card__head a { color: #7b202a; font-size: 9px; font-weight: 850; text-decoration: none; }
.trend-chart { display: grid; grid-template-columns: repeat(7,minmax(32px,1fr)); gap: 10px; height: 235px; align-items: end; padding: 21px 22px 10px; }
.trend-day { display: grid; min-width: 0; justify-items: center; }
.trend-bars { display: flex; width: 100%; height: 164px; align-items: end; justify-content: center; gap: 4px; border-bottom: 1px solid #e5d6c1; background: repeating-linear-gradient(to top,transparent 0,transparent 39px,#f2e8da 40px); }
.trend-bars i,.trend-bars b { display: block; width: min(16px,38%); min-height: 4px; border-radius: 5px 5px 1px 1px; }
.trend-bars i { background: linear-gradient(#e9903f,#d26a1f); }
.trend-bars b { background: linear-gradient(#55ad80,#24754d); }
.trend-day > strong { margin-top: 6px; color: #6d5148; font-size: 8px; }
.trend-day > small { color: #9b847b; font-size: 8px; }
.chart-legend { display: flex; justify-content: center; gap: 17px; padding: 0 0 17px; color: #8e766d; font-size: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; }
.legend-registration { background: #db7328; }.legend-paid { background: #31835b; }
.rank-list,.compact-performance { display: grid; }
.rank-list > a,.compact-performance > div { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px 15px; border-top: 1px solid #f0e3d0; color: inherit; text-decoration: none; }
.rank-list > a:first-child,.compact-performance > div:first-child { border-top: 0; }
.rank-code { display: grid; min-height: 31px; place-items: center; overflow: hidden; padding: 0 5px; border-radius: 8px; color: #7b202a; background: #fae9cd; font-size: 8px; font-weight: 900; text-overflow: ellipsis; }
.rank-list strong,.compact-performance strong { color: #5b332d; font-size: 10px; }
.rank-list small,.compact-performance small { display: block; margin-top: 3px; color: #9a837a; font-size: 8px; }
.rank-list i { display: block; height: 4px; margin-top: 5px; overflow: hidden; border-radius: 3px; background: #f0e4d4; }
.rank-list i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#d96d22,#efa141); }
.rank-list em,.compact-performance em { color: #27734f; font-size: 10px; font-style: normal; font-weight: 900; }
.admin-feed { display: grid; }
.admin-feed > a,.admin-feed__row { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 15px; border-top: 1px solid #f0e3d0; color: inherit; text-decoration: none; }
.admin-feed > a:first-child,.admin-feed__row:first-child { border-top: 0; }
.admin-feed strong { color: #5b332d; font-size: 10px; }
.admin-feed small { display: block; margin-top: 2px; color: #9a837a; font-size: 8px; line-height: 1.45; }
.admin-feed > a > span:last-child,.admin-feed__row > span:last-child { text-align: right; }
.admin-feed > a > span:last-child b { color: #6f564f; font-size: 8px; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: #b8a69f; }
.feed-dot--verified,.feed-dot--granted { background: #2c9a67; box-shadow: 0 0 0 4px rgba(44,154,103,.09); }
.feed-dot--failed,.feed-dot--hashrejected,.feed-dot--duplicatedenied { background: #cc493c; }
.feed-dot--verificationpending,.feed-dot--successreturned,.feed-dot--created,.feed-dot--attendancereset { background: #e09a2d; }
.admin-empty,.admin-empty-cell { padding: 22px; color: #a28a81; font-size: 10px; text-align: center; }
.admin-card--table { margin-top: 14px; }
.admin-filterbar { display: grid; gap: 8px; padding: 14px; border-bottom: 1px solid #e9dbc7; background: #fff8ed; }
.admin-filterbar--registrations { grid-template-columns: minmax(260px,1fr) 125px 135px 130px 105px auto auto; }
.admin-filterbar--payments { grid-template-columns: minmax(260px,1fr) 145px 135px 135px auto auto; }
.admin-filterbar--tickets { grid-template-columns: minmax(260px,1fr) 155px 145px auto auto; }
.admin-filterbar--referrers { grid-template-columns: minmax(260px,1fr) minmax(220px,320px) 120px auto auto; }
.admin-filterbar--audit { grid-template-columns: minmax(260px,1fr) 210px auto auto; }
.admin-filterbar input,.admin-filterbar select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #ddc9ab; border-radius: 9px; outline: 0; color: #4b3732; background: #fff; font-size: 10px; }
.admin-searchbox { position: relative; }
.admin-searchbox span { position: absolute; top: 50%; left: 12px; color: #8c5b3e; transform: translateY(-50%); }
.admin-searchbox input { padding-left: 35px; }
.admin-filterbar input:focus,.admin-filterbar select:focus { border-color: #dd7a2b; box-shadow: 0 0 0 3px rgba(221,122,43,.1); }
.admin-table-summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 15px; border-bottom: 1px solid #eee0cc; color: #9a8178; font-size: 9px; }
.admin-table-summary strong { color: #671d25; font-size: 10px; }
.admin-data-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.admin-data-table th { padding: 11px 12px; color: #74232b; background: #f9e8ce; font-size: 8px; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-data-table td { padding: 12px; border-top: 1px solid #f0e2cf; color: #644c45; vertical-align: middle; }
.admin-data-table tbody tr:hover { background: #fff8eb; box-shadow: inset 3px 0 #e77b2b; }
.admin-data-table tr.admin-row--attention { background: #fff8e3; }
.admin-data-table td > strong { display: block; color: #533530; font-size: 10px; }
.admin-data-table td > small { display: block; max-width: 260px; margin-top: 3px; overflow-wrap: anywhere; color: #9b837a; font-size: 8px; line-height: 1.45; }
.admin-ticket { color: #7b202a !important; font-family: ui-monospace,Consolas,monospace; font-size: 14px !important; letter-spacing: .04em; }
.admin-mono { font-family: ui-monospace,Consolas,monospace; font-size: 9px !important; }
.admin-status { display: inline-flex; min-height: 22px; align-items: center; padding: 0 7px; border-radius: 999px; color: #775719; background: #fff0c7; font-size: 7px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.admin-status--paid,.admin-status--verified,.admin-status--active { color: #176743; background: #dcf4e7; }
.admin-status--pending,.admin-status--created,.admin-status--successreturned,.admin-status--verificationpending,.admin-status--hashrejected { color: #815310; background: #ffedbe; }
.admin-status--failed,.admin-status--inactive { color: #95342c; background: #fde1de; }
.admin-row-action { display: inline-flex; min-height: 30px; align-items: center; padding: 0 9px; border: 1px solid #d8ba89; border-radius: 8px; color: #681b24; background: #fff9ed; font-size: 8px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.admin-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 15px; padding: 12px 15px; border-top: 1px solid #e9dbc7; color: #977f76; background: #fffaf1; font-size: 9px; }
.admin-pagination a { color: #681b24; font-weight: 850; text-decoration: none; }
.admin-pagination a[aria-disabled="True"] { opacity: .35; pointer-events: none; }
.admin-rule-note { display: flex; align-items: center; gap: 12px; margin: 11px 0 15px; padding: 12px 14px; border: 1px solid #e5c98f; border-radius: 11px; background: #fff8e7; }
.admin-rule-note span { flex: 0 0 auto; color: #8f4e18; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.admin-rule-note p { margin: 0; color: #795f45; font-size: 9px; }
.admin-form-card { width: min(850px,100%); padding: 22px; border: 1px solid #e4d4bd; border-radius: 15px; background: #fffdf9; box-shadow: 0 9px 26px rgba(92,55,33,.05); }
.admin-form-card--wide { width: 100%; }
.admin-readonly-field { display: inline-grid; margin-bottom: 17px; padding: 10px 13px; border: 1px solid #e5d2b5; border-radius: 10px; background: #fff7e8; }
.admin-readonly-field small { color: #987b6f; font-size: 8px; text-transform: uppercase; }.admin-readonly-field strong { color: #681b24; font-family: ui-monospace,Consolas,monospace; font-size: 11px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.admin-form-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-form-grid label { display: grid; align-content: start; gap: 5px; }
.admin-form-grid label > span,.admin-action-form label > span { color: #72584f; font-size: 9px; font-weight: 850; }
.admin-form-grid input,.admin-form-grid select,.admin-form-grid textarea,.admin-action-form input { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #d9c5a8; border-radius: 9px; outline: 0; color: #49342f; background: #fff; font: inherit; font-size: 10px; }
.admin-form-grid textarea { resize: vertical; }
.admin-form-grid input:focus,.admin-form-grid select:focus,.admin-form-grid textarea:focus,.admin-action-form input:focus { border-color: #dc782a; box-shadow: 0 0 0 3px rgba(220,120,42,.1); }
.admin-form-grid label > small { color: #ae332a; font-size: 8px; }
.admin-field--wide { grid-column: span 2; }.admin-field--full { grid-column: 1 / -1; }
.admin-switch { grid-template-columns: auto 1fr; align-items: center; align-self: end; min-height: 43px; padding: 0 12px; border: 1px solid #e1cfb5; border-radius: 9px; background: #fff9ef; }
.admin-switch input { width: 16px; min-height: 16px; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 17px; border-top: 1px solid #eee0cc; }
.admin-record-hero { display: grid; grid-template-columns: 105px minmax(0,1fr) auto; align-items: center; gap: 18px; margin-bottom: 15px; padding: 20px; border: 1px solid #e2ccb0; border-radius: 16px; background: linear-gradient(135deg,#fff2db,#fffdf9); box-shadow: 0 9px 24px rgba(92,55,33,.06); }
.admin-record-ticket { display: grid; width: 82px; height: 82px; place-content: center; text-align: center; border: 1px solid #e7bd78; border-radius: 24px 7px 24px 7px; color: #fff; background: linear-gradient(145deg,#d86a21,#7e2228); box-shadow: 0 10px 20px rgba(125,40,36,.18); }
.admin-record-ticket small { font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }.admin-record-ticket strong { font-size: 23px; letter-spacing: .06em; }
.admin-record-statuses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.admin-record-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 15px; margin-top: 15px; }.admin-record-grid--equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.admin-detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.admin-detail-list div { padding: 14px 17px; border-right: 1px solid #eee0cc; border-bottom: 1px solid #eee0cc; }.admin-detail-list div:nth-child(even){border-right:0}
.admin-detail-list dt { color: #957a70; font-size: 8px; font-weight: 850; text-transform: uppercase; }.admin-detail-list dd { margin: 4px 0 0; color: #523832; font-size: 10px; }
.admin-control-card__body { display: grid; gap: 11px; padding: 14px; }.admin-control-card__body form { margin: 0; }
.admin-action-form { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid #eee0cc; }.admin-action-form label { display: grid; gap: 5px; }
.report-download-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin: 15px 0; }
.report-download-grid > a { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 82px; padding: 14px; border: 1px solid #e1cfb5; border-radius: 13px; color: inherit; background: #fffdf9; box-shadow: 0 7px 18px rgba(92,55,33,.04); text-decoration: none; }
.report-download-grid > a > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; color: #7b202a; background: #f6e1d7; font-size: 17px; font-weight: 900; }.report-download-grid strong { color: #5b342e; font-size: 11px; }.report-download-grid small { display:block;margin-top:3px;color:#9a837a;font-size:8px }.report-download-grid b { color:#7b202a;font-size:9px }.report-download--warning{border-color:#e7b4ae!important;background:#fff5f3!important}

@media (max-width: 1260px) {
    .admin-metrics--six { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .admin-metrics--five { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .admin-filterbar--registrations { grid-template-columns: minmax(240px,1fr) repeat(2,125px) repeat(2,110px); }.admin-filterbar--registrations .admin-btn { grid-row: 2; }
}
@media (max-width: 1040px) {
    .admin-frame { grid-template-columns: 76px minmax(0,1fr); }.admin-sidebar { padding-inline: 10px; }.admin-nav a { grid-template-columns: 1fr; justify-items:center;padding:6px 4px; }.admin-nav a b { font-size:7px;text-align:center }.admin-sidebar__event { display:none }.admin-dashboard-grid { grid-template-columns:1fr }.admin-record-grid { grid-template-columns:1fr }.admin-filterbar { grid-template-columns:repeat(2,minmax(0,1fr)) }.admin-searchbox { grid-column:1/-1 }.admin-filterbar .admin-btn { grid-row:auto }.admin-content { padding-inline:20px }
}
@media (max-width: 720px) {
    .admin-topbar { padding-inline:13px }.admin-logo strong { font-size:10px }.admin-logo small,.admin-live { display:none }.admin-top-action { width:38px;overflow:hidden;padding:0;color:transparent }.admin-top-action:first-of-type::before { content:"✓";color:#681b24 }.admin-top-action--muted::before { content:"↗";color:#765f58 }.admin-frame { display:block }.admin-sidebar { position:sticky;z-index:35;top:68px;width:100%;height:auto;padding:7px 9px;overflow-x:auto;border-right:0;border-bottom:1px solid #e3d7c7 }.admin-nav { display:flex;min-width:max-content }.admin-nav a { grid-template-columns:25px auto;min-height:36px;padding:0 9px }.admin-nav a span { width:24px;height:24px }.admin-nav a b { font-size:8px }.admin-content { padding:18px 12px 50px }.admin-page-head,.admin-record-hero { align-items:flex-start;flex-direction:column }.admin-page-head { display:flex }.admin-page-head__actions { width:100% }.admin-page-head__actions .admin-btn { flex:1 }.admin-metrics--six,.admin-metrics--five { grid-template-columns:repeat(2,minmax(0,1fr)) }.admin-stat { min-height:88px;padding:11px }.admin-stat__icon { flex-basis:34px;width:34px;height:34px }.admin-stat strong { font-size:20px }.admin-dashboard-grid--equal,.admin-record-grid--equal,.report-download-grid { grid-template-columns:1fr }.admin-record-hero { display:flex }.admin-record-ticket { width:68px;height:68px }.admin-form-grid,.admin-form-grid--three { grid-template-columns:1fr }.admin-field--wide,.admin-field--full { grid-column:auto }.admin-detail-list { grid-template-columns:1fr }.admin-detail-list div { border-right:0 }.admin-filterbar { grid-template-columns:1fr }.admin-searchbox { grid-column:auto }.admin-table-summary { align-items:flex-start;flex-direction:column;gap:2px }.trend-chart { gap:4px;padding-inline:10px }.trend-bars { height:135px }.table-scroll { padding:9px;overflow:visible }.admin-data-table,.admin-data-table tbody { display:block }.admin-data-table thead { display:none }.admin-data-table tbody { display:grid;gap:9px }.admin-data-table tr { display:grid;overflow:hidden;border:1px solid #e4d2b8;border-radius:12px;background:#fff }.admin-data-table td { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px }.admin-data-table td::before { color:#9a7e73;content:attr(data-label);font-size:7px;font-weight:900;text-transform:uppercase }.admin-data-table td:not([data-label])::before { content:"" }.admin-data-table .admin-empty-cell { display:block }.admin-pagination { justify-content:center }.admin-alert { grid-template-columns:31px minmax(0,1fr) }.admin-alert > a,.admin-alert > form { grid-column:2 }.admin-rule-note { align-items:flex-start;flex-direction:column }.admin-form-card { padding:15px }.report-download-grid > a { grid-template-columns:38px minmax(0,1fr) auto }
}
@media (max-width: 430px) {
    .admin-logo__mark { width:42px;height:38px;font-size:21px }.admin-metrics--six,.admin-metrics--five { grid-template-columns:1fr }.admin-stat { min-height:76px }.admin-page-head h1,.admin-record-hero h1 { font-size:27px }.admin-nav a b { display:none }.admin-nav a { grid-template-columns:1fr }.admin-record-statuses { gap:4px }.rank-list > a,.compact-performance > div { grid-template-columns:40px minmax(0,1fr) }
}
