/* ================================================================
   GLAD Code — gate-side proof of ticket ownership
   Used in two very different frames: the dark member panel and the
   public site. Everything below is scoped under .gl- so neither
   stylesheet has to know about the other.
   ================================================================ */

:root {
    --gl-pass:  #16a34a;
    --gl-fail:  #dc2626;
    --gl-warn:  #b45309;
    --gl-gold:  #b8860b;
    --gl-ink:   #14161d;
    --gl-soft:  #5b6272;
    --gl-line:  #e3e6ee;
}

/* ── the code itself ─────────────────────────────────────── */

.gl-code {
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.25;
    word-break: break-all;   /* never let it push a phone's layout sideways */
}

.gl-code--sm { font-size: 15px; letter-spacing: 1.5px; }

/* ── member panel: the one-time reveal ───────────────────── */

.gl-reveal {
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.03));
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px;
}

.gl-reveal__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #4ade80;
    margin: 0 0 10px;
}

.gl-reveal__code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.gl-reveal__code .gl-code { color: #fff; }

.gl-reveal__warn {
    margin: 0;
    font-size: 13px;
    color: var(--p-text-soft, #9aa3b2);
    line-height: 1.6;
}

/* ── member panel: list of codes ─────────────────────────── */

.gl-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gl-list__actions form { margin: 0; }

/* ── member panel: Job 4 attachments ─────────────────────── */

.gl-docrow > td { background: rgba(255, 255, 255, 0.015); padding-top: 0 !important; }

.gl-docs__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p-text-muted, #6b7280);
    margin-bottom: 9px;
}

.gl-docs__list { margin: 0 0 10px; padding: 0; list-style: none; }

.gl-docs__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
}

.gl-docs__kind {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
}

.gl-docs__kind--invoice { background: rgba(184, 134, 11, 0.16); color: #d6a827; }
.gl-docs__kind--ticket  { background: rgba(123, 92, 245, 0.16); color: #a78bfa; }

.gl-docs__name {
    font-size: 13px;
    color: var(--p-text, #e5e7eb);
    word-break: break-all;
}

.gl-docs__size { font-size: 11px; color: var(--p-text-muted, #6b7280); }

.gl-docs__del { margin: 0; }

.gl-docs__del button {
    background: none;
    border: 0;
    padding: 2px 4px;
    color: var(--p-red, #ef4444);
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
}

.gl-docs__del button:hover { opacity: 1; }

.gl-docs__empty {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--p-text-muted, #6b7280);
}

.gl-docs__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.gl-docs__sel  { width: auto; min-width: 175px; padding: 6px 10px; font-size: 12.5px; }
.gl-docs__file { width: auto; flex: 1 1 190px; padding: 5px 10px; font-size: 12.5px; }

@media (max-width: 767px) {
    .gl-docs__form { flex-direction: column; align-items: stretch; }
    .gl-docs__sel, .gl-docs__file { width: 100%; min-width: 0; }
}

/* ── public pages ────────────────────────────────────────── */

.gl-page {
    background: #f7f8fb;
    padding: 60px 0 80px;
}

.gl-shell {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 18px;
}

.gl-head { text-align: center; margin-bottom: 26px; }

.gl-head__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gl-gold);
    margin-bottom: 10px;
}

.gl-head__title {
    font-size: 34px;
    font-weight: 800;
    color: var(--gl-ink);
    margin: 0 0 10px;
    line-height: 1.2;
}

.gl-head__sub {
    font-size: 15px;
    color: var(--gl-soft);
    margin: 0;
    line-height: 1.65;
}

.gl-card {
    background: #fff;
    border: 1px solid var(--gl-line);
    border-radius: 16px;
    box-shadow: 0 10px 34px rgba(20, 22, 29, 0.07);
    padding: 30px;
    margin-bottom: 20px;
}

/* ── the entry form ──────────────────────────────────────── */

.gl-form__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gl-soft);
    margin-bottom: 9px;
}

.gl-form__input {
    width: 100%;
    padding: 16px 18px;
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    color: var(--gl-ink);
    background: #fbfcfe;
    border: 2px solid var(--gl-line);
    border-radius: 11px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.gl-form__input:focus {
    border-color: var(--gl-gold);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.12);
}

.gl-form__btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 15px 22px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #fff;
    background: var(--gl-ink);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
}

.gl-form__btn:hover  { background: #23262f; }
.gl-form__btn:active { transform: translateY(1px); }

/* ── the verdict ─────────────────────────────────────────── */

.gl-verdict {
    border-radius: 16px;
    padding: 28px 30px;
    margin-bottom: 20px;
    color: #fff;
}

.gl-verdict--pass { background: linear-gradient(140deg, #16a34a, #12833c); }
.gl-verdict--fail { background: linear-gradient(140deg, #dc2626, #b31c1c); }
.gl-verdict--void { background: linear-gradient(140deg, #b45309, #92400e); }
.gl-verdict--expired { background: linear-gradient(140deg, #6b7280, #4b5563); }
.gl-verdict--throttled { background: linear-gradient(140deg, #475569, #334155); }

.gl-verdict__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.gl-verdict__mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.gl-verdict__heading {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.25;
}

.gl-verdict__body {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.93);
}

/* ── the four last-4s a guard compares ───────────────────── */

/* Exactly three last-4 values, always — so three columns, not auto-fit. auto-fit
   made a fourth column at wide widths and left it showing as a dead grey cell. */
.gl-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gl-line);
    border: 1px solid var(--gl-line);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0 0;
}

.gl-facts--onwhite { margin-top: 0; }

/* The name is the value a guard reads first and the one most likely to be long,
   so it gets its own row rather than a cramped quarter-column. */
.gl-fact--wide { grid-column: 1 / -1; }

.gl-fact { background: #fff; padding: 15px 17px; }

.gl-fact__label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--gl-soft);
    margin-bottom: 6px;
}

.gl-fact__value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--gl-ink);
    word-break: break-word;
}

.gl-fact__value--mono {
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;
    letter-spacing: 2px;
}

/* ── Secret Number: the transfer security key ────────────── */

/* Framed unlike anything else on the page, because its whole job is to be
   noticed on a credential a guard is comparing against documents. Digits only
   and a different colour so it can never be mistaken for the GLAD Code. */
.gl-secret {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #c7d2e8;
    border-left: 3px solid #3b5bdb;
    border-radius: 0 12px 12px 0;
    background: #f4f7fe;
}

.gl-secret__label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #3b5bdb;
    margin-bottom: 8px;
}

.gl-secret__value {
    display: block;
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gl-ink);
    word-break: break-all;
}

.gl-secret__note {
    margin: 9px 0 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: #4a5368;
}

/* ── Hold number and gate entry ──────────────────────────── */

/* Green, unlike the Secret Number's blue, because these are the two things a
   gate does rather than compares: write this down, then record the entry. */
.gl-hold {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #bfe3cd;
    border-left: 3px solid #16a34a;
    border-radius: 0 12px 12px 0;
    background: #f2fbf5;
}

.gl-hold__label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #12833c;
    margin-bottom: 8px;
}

.gl-hold__value {
    display: block;
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gl-ink);
    word-break: break-all;
}

.gl-hold__note {
    margin: 9px 0 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: #3c5245;
}

/* An earlier entry is amber, not red: the architecture is explicit that it is a
   dispute to resolve, not grounds to refuse a holder who checks out. */

/* ── GLAD™ Transfer Verification ─────────────────────────── */

/* Gold rail, matching the brand's caution colour: this is the block that tells
   a gate what the credential does and does not establish, so it must read as
   guidance rather than as another verdict. */
.gl-gladv {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #e4d5b0;
    border-left: 3px solid var(--gl-gold);
    border-radius: 0 12px 12px 0;
    background: #fffaf0;
}

.gl-gladv__title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--gl-gold);
}

.gl-gladv__body {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: #4a4235;
}

.gl-gladv__ok { color: #12833c; }
.gl-gladv__no { color: #b31c1c; }

.gl-gladv__link {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #6b6152;
}

.gl-gladv__link a {
    color: var(--gl-gold);
    font-weight: 700;
    word-break: break-all;
}
/* ── HOLD™ Entry Verification ────────────────────────────── */

/* The single-use entry credential. Neutral while unused; unmistakably red once
   spent, because "already used" is the one verdict a gate must never misread as
   a pass. */
.gl-holdv {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid var(--gl-line);
    border-left: 3px solid var(--gl-ink);
    border-radius: 0 12px 12px 0;
    background: #f7f8fb;
}

.gl-holdv__title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--gl-ink);
}

.gl-holdv__body {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #4a5368;
}

/* ── Transfer reference + Gate Security note ─────────────── */

.gl-refno {
    margin: 0 0 20px;
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gl-ink);
    word-break: break-all;
}

.gl-gatesec {
    padding: 16px 18px;
    border: 1px solid var(--gl-line);
    border-left: 3px solid var(--gl-ink);
    border-radius: 0 12px 12px 0;
    background: #f7f8fb;
}

.gl-gatesec__title {
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--gl-ink);
}

.gl-gatesec__body {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #4a5368;
}

.gl-gatesec__ok { color: #12833c; }
.gl-gatesec__no { color: #b31c1c; }

/* The reservation code in plain text above the bars, so it can be read as well
   as scanned — a scanner that refuses the symbol still leaves something usable. */
.gl-barcode__code {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--gl-soft);
    word-break: break-all;
}

.gl-barcode__code strong {
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;
    letter-spacing: 1.5px;
    color: var(--gl-ink);
}
/* ── Barcode 2: the INthe-Q Reservation Code ─────────────── */

.gl-barcode {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid var(--gl-line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.gl-barcode__label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--gl-soft);
    margin-bottom: 12px;
}

/* image-rendering keeps the bars crisp: a smoothed barcode is a barcode a
   scanner may refuse. */
.gl-barcode__img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    image-rendering: pixelated;
}

.gl-barcode__note {
    margin: 11px 0 0;
    font-size: 12.5px;
    color: var(--gl-soft);
    line-height: 1.6;
}

/* The claim the platform can actually stand behind, stated where nobody
   can miss it. A guard who reads the green check as "purchase verified"
   is the single largest risk in this feature. */
.gl-scope {
    border-left: 3px solid var(--gl-gold);
    background: #fffaf0;
    border-radius: 0 10px 10px 0;
    padding: 16px 18px;
    margin-top: 20px;
}

.gl-scope__title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gl-gold);
}

.gl-scope p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #4a4235;
}

/* ── escalation steps ────────────────────────────────────── */

.gl-steps { margin: 0; padding: 0; list-style: none; counter-reset: gl-step; }

.gl-steps__item {
    position: relative;
    padding: 0 0 18px 46px;
    counter-increment: gl-step;
}

.gl-steps__item:last-child { padding-bottom: 0; }

.gl-steps__item::before {
    content: counter(gl-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gl-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-steps__title {
    margin: 4px 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--gl-ink);
}

.gl-steps__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gl-soft);
}

.gl-card__title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 800;
    color: var(--gl-ink);
}

.gl-meta {
    text-align: center;
    font-size: 13px;
    color: var(--gl-soft);
    line-height: 1.7;
    margin: 0;
}

.gl-meta a { color: var(--gl-gold); font-weight: 700; }

@media (max-width: 575px) {
    .gl-facts { grid-template-columns: 1fr; }
    .gl-page { padding: 40px 0 60px; }
    .gl-card { padding: 22px 18px; }
    .gl-head__title { font-size: 26px; }
    .gl-verdict { padding: 22px 20px; }
    .gl-verdict__heading { font-size: 20px; }
    .gl-form__input { font-size: 18px; letter-spacing: 2px; padding: 14px 12px; }
    .gl-code { font-size: 24px; letter-spacing: 2.5px; }
}

/* ── Transfer form: three steps, one idea each ─────────────
   The old form was a single column of eleven fields with a hint under most of
   them. Numbering the three real questions and folding the optional extras away
   is what makes it readable, not the styling. */

.tr-step {
    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--p-border, #252a3a);
}

.tr-step:last-of-type { border-bottom: 0; padding-bottom: 4px; }

.tr-step__head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 14px;
}

.tr-step__no {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--p-accent, #FFD700);
    color: #17181d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.tr-step__title {
    margin: 4px 0 0;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--p-text, #e5e7eb);
}

.tr-step__sub {
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--p-text-soft, #9095b0);
}

.tr-step__body { padding-left: 41px; }

@media (max-width: 640px) {
    .tr-step__body { padding-left: 0; }
}

/* Optional fields, out of the way until wanted. */
.tr-extras {
    margin: 4px 0 20px;
    border: 1px solid var(--p-border, #252a3a);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.tr-extras__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--p-text, #e5e7eb);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.tr-extras__title::-webkit-details-marker { display: none; }
.tr-extras__title em { color: var(--p-text-muted, #6b7280); font-style: normal; font-weight: 400; }

.tr-extras__title:focus-visible {
    outline: 2px solid var(--p-accent, #FFD700);
    outline-offset: -2px;
    border-radius: 10px;
}

.tr-extras__chev { font-size: 11px; color: var(--p-text-muted, #6b7280); transition: transform 0.18s ease; }
.tr-extras[open] .tr-extras__chev { transform: rotate(180deg); }

.tr-extras__body {
    padding: 4px 16px 16px;
    border-top: 1px solid var(--p-border, #252a3a);
}

/* What the member is actually agreeing to, in four lines. */
.tr-outcome {
    margin-bottom: 18px;
    padding: 15px 17px;
    border-left: 3px solid var(--p-accent, #FFD700);
    border-radius: 0 10px 10px 0;
    background: var(--p-accent-dim, rgba(255, 215, 0, 0.07));
}

.tr-outcome__title {
    margin: 0 0 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--p-accent, #FFD700);
}

.tr-outcome__list { margin: 0; padding: 0; list-style: none; }

.tr-outcome__list li {
    position: relative;
    padding: 5px 0 5px 17px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--p-text-soft, #9095b0);
}

.tr-outcome__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 7px;
    height: 1px;
    background: var(--p-accent, #FFD700);
}

.tr-outcome__list strong { color: var(--p-text, #e5e7eb); }

@media (prefers-reduced-motion: reduce) {
    .tr-extras__chev { transition: none; }
}
