/* =====================================================================
   ACA National Academic Olympiad 2026 -- registration & ticketing
   ===================================================================== */

:root {
    --olx-red: #ef4444;
    --olx-red-soft: rgba(239, 68, 68, .14);
    --olx-blue: #3b82f6;
    --olx-blue-soft: rgba(59, 130, 246, .14);
    --olx-gold: #f59e0b;
    --olx-green: #22c55e;
}

/* ---------- layout ---------- */
.olx-wrap { max-width: 1080px; margin: 0 auto; }
.olx-wrap-narrow { max-width: 780px; margin: 0 auto; }
.olx-section { padding: 48px 0 72px; }

.olx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--color-accent); background: var(--color-icon-bg);
    border: 1px solid var(--color-border);
    padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.olx-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; color: var(--color-text-primary); margin: 0 0 6px; line-height: 1.2; }
.olx-sub { color: var(--color-text-secondary); font-size: 1.02rem; margin: 0 0 26px; }

/* ---------- hero meta ---------- */
.olx-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.olx-meta-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--color-surface-bg); border: 1px solid var(--color-border);
    border-radius: var(--border-radius); padding: 12px 18px;
    color: var(--color-text-secondary); font-size: .93rem;
}
.olx-meta-item i { color: var(--color-accent); }
.olx-meta-item b { color: var(--color-text-primary); font-weight: 600; }

.olx-format {
    display: inline-flex; align-items: center; gap: 14px;
    background: linear-gradient(90deg, var(--olx-red-soft), var(--olx-blue-soft));
    border: 1px solid var(--color-border);
    border-radius: 999px; padding: 12px 26px;
    font-weight: 700; font-size: 1.05rem; color: var(--color-text-primary);
}
.olx-format .r { color: var(--olx-red); }
.olx-format .b { color: var(--olx-blue); }
.olx-format .vs { color: var(--color-text-muted); font-size: .85rem; letter-spacing: .1em; }

/* ---------- choice cards ---------- */
.olx-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 34px; }
.olx-choice {
    position: relative; display: block; text-decoration: none;
    background: var(--color-surface-bg); border: 1px solid var(--color-border);
    border-radius: 18px; padding: 30px 28px; overflow: hidden;
    transition: var(--transition-base);
}
.olx-choice::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--color-accent); }
.olx-choice.red::before { background: var(--olx-red); }
.olx-choice.blue::before { background: var(--olx-blue); }
.olx-choice:hover { transform: translateY(-4px); border-color: var(--color-border-hover); box-shadow: var(--shadow-lg); }
.olx-choice-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.6rem; margin-bottom: 18px;
    background: var(--color-icon-bg); color: var(--color-accent);
}
.olx-choice.red .olx-choice-icon { background: var(--olx-red-soft); color: var(--olx-red); }
.olx-choice.blue .olx-choice-icon { background: var(--olx-blue-soft); color: var(--olx-blue); }
.olx-choice h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--color-text-primary); font-weight: 700; }
.olx-choice p { margin: 0 0 18px; color: var(--color-text-muted); font-size: .94rem; line-height: 1.6; }
.olx-choice .price { font-size: 1.45rem; font-weight: 800; color: var(--color-text-primary); }
.olx-choice .price small { display: block; font-size: .78rem; font-weight: 500; color: var(--color-text-muted); margin-top: 4px; letter-spacing: .04em; }
.olx-choice .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--color-accent); font-weight: 600; font-size: .92rem; }
.olx-choice.red .go { color: var(--olx-red); }
.olx-choice.blue .go { color: var(--olx-blue); }

/* ---------- activity grid ---------- */
.olx-activities { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 20px; }
.olx-activity {
    position: relative; display: block; cursor: pointer;
    background: var(--color-surface-bg); border: 1.5px solid var(--color-border);
    border-radius: 14px; padding: 20px 18px 18px;
    transition: var(--transition-base);
}
.olx-activity:hover { border-color: var(--color-border-hover); }
.olx-activity input { position: absolute; opacity: 0; pointer-events: none; }
.olx-activity.checked { border-color: var(--olx-red); background: linear-gradient(180deg, var(--olx-red-soft), transparent 60%), var(--color-surface-bg); }
.olx-activity .ico { font-size: 1.5rem; }
.olx-activity .nm { display: block; margin-top: 10px; font-weight: 700; color: var(--color-text-primary); font-size: 1rem; }
.olx-activity .det { display: block; margin-top: 6px; color: var(--color-text-muted); font-size: .83rem; }
.olx-activity .fee { display: block; margin-top: 12px; font-weight: 800; color: var(--olx-gold); font-size: .95rem; }
.olx-activity .tick { position: absolute; top: 14px; right: 14px; color: var(--olx-red); opacity: 0; transform: scale(.6); transition: .2s; }
.olx-activity.checked .tick { opacity: 1; transform: scale(1); }

/* ---------- forms ---------- */
.olx-card {
    background: var(--color-surface-bg); border: 1px solid var(--color-border);
    border-radius: 18px; padding: 30px 30px 32px; margin-bottom: 24px;
}
.olx-card > h2, .olx-card > h3 {
    margin: 0 0 6px; color: var(--color-text-primary); font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.olx-card > h2 { font-size: 1.3rem; }
.olx-card > h3 { font-size: 1.08rem; }
/* Cards whose content is centred: their flex headings must centre too. */
.olx-card.olx-center { text-align: center; }
.olx-card.olx-center > h2, .olx-card.olx-center > h3 { justify-content: center; }
.olx-hint { color: var(--color-text-muted); font-size: .88rem; margin: 0 0 22px; line-height: 1.6; }

.olx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.olx-field { margin-bottom: 18px; }
.olx-field label { display: block; margin-bottom: 8px; color: var(--color-text-secondary); font-size: .88rem; font-weight: 600; }
.olx-field label .req { color: var(--olx-red); }
.olx-input, .olx-field input, .olx-field select, .olx-field textarea {
    width: 100%; box-sizing: border-box;
    background: var(--bg-input); border: 1px solid var(--color-border);
    color: var(--color-text-primary); border-radius: 12px;
    padding: 12px 16px; font-size: .95rem; outline: none;
    transition: border-color .2s;
}
.olx-field input:focus, .olx-field select:focus, .olx-field textarea:focus { border-color: var(--color-accent); }
.olx-field small { display: block; margin-top: 6px; color: var(--color-text-muted); font-size: .8rem; }

.olx-block-title {
    margin: 26px 0 4px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--color-accent); font-weight: 700;
}

.olx-competitors { display: grid; gap: 12px; margin-top: 14px; }
.olx-competitor-row { display: grid; grid-template-columns: 1fr 150px 130px; gap: 12px; }
@media (max-width: 700px) { .olx-competitor-row { grid-template-columns: 1fr; } }

.olx-check {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    background: var(--bg-input); border: 1px solid var(--color-border);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
    transition: border-color .2s;
}
.olx-check:hover { border-color: var(--color-border-hover); }
.olx-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--color-accent); }
.olx-check .t { color: var(--color-text-primary); font-weight: 600; font-size: .96rem; }
.olx-check .d { color: var(--color-text-muted); font-size: .84rem; margin-top: 4px; line-height: 1.5; }

/* ---------- totals / buttons ---------- */
.olx-total {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--color-surface-hover); border: 1px solid var(--color-border);
    border-radius: 14px; padding: 18px 22px; margin: 22px 0;
}
.olx-total .lbl { color: var(--color-text-secondary); font-size: .92rem; }
.olx-total .amt { font-size: 1.7rem; font-weight: 800; color: var(--olx-gold); }

.olx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--color-accent); color: #fff; border: none; cursor: pointer;
    border-radius: 12px; padding: 14px 30px; font-size: 1rem; font-weight: 700;
    text-decoration: none; transition: var(--transition-base);
}
.olx-btn:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-2px); }
.olx-btn-block { width: 100%; }
.olx-btn-ghost {
    background: transparent; border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}
.olx-btn-ghost:hover { background: var(--color-surface-hover); color: var(--color-text-primary); }
.olx-btn-danger { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; }
.olx-btn-danger:hover { background: rgba(239,68,68,.25); color: #fff; }

.olx-login-note {
    background: var(--color-icon-bg); border: 1px solid var(--color-border);
    border-radius: 12px; padding: 16px 20px; margin-bottom: 22px;
    color: var(--color-text-secondary); font-size: .92rem;
}
.olx-login-note a { color: var(--color-accent); font-weight: 700; }

/* ---------- waiting ---------- */
.olx-waiting { text-align: center; padding: 20px 0 10px; }
.olx-ring {
    width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%;
    border: 5px solid var(--color-border); border-top-color: var(--color-accent);
    animation: olx-spin 1s linear infinite;
    display: grid; place-items: center;
    transition: border-color .3s ease, opacity .3s ease;
}
@keyframes olx-spin { to { transform: rotate(360deg); } }

/* stopped states -- no more spinning once the answer is in */
.olx-ring.is-ok,
.olx-ring.is-bad,
.olx-ring.is-hold { animation: none; }
.olx-ring.is-ok   { border-color: rgba(34,197,94,.35);  border-top-color: #22c55e; }
.olx-ring.is-bad  { border-color: rgba(239,68,68,.35);  border-top-color: #ef4444; }
.olx-ring.is-hold { border-color: var(--color-border);   border-top-color: var(--color-text-muted); }
.olx-ring-glyph {
    font-size: 1.55rem; opacity: 0; transition: opacity .25s ease;
    transform: rotate(0deg); /* glyph must not inherit the ring's spin */
}
.olx-ring.is-ok   .olx-ring-glyph { opacity: 1; color: #86efac; }
.olx-ring.is-bad  .olx-ring-glyph { opacity: 1; color: #fca5a5; }
.olx-ring.is-hold .olx-ring-glyph { opacity: 1; color: var(--color-text-secondary); }

.olx-waiting h2 {
    color: var(--color-text-primary); font-size: 1.45rem; margin: 0 0 10px;
    /* .olx-card > h2 is display:flex, which makes text-align:center a no-op */
    display: block; text-align: center;
}
.olx-waiting p { color: var(--color-text-muted); margin: 0 auto 8px; max-width: 520px; line-height: 1.65; }
.olx-phone {
    display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 4px;
    background: var(--color-surface-hover); border: 1px solid var(--color-border);
    border-radius: 999px; padding: 10px 22px; color: var(--color-text-primary); font-weight: 700;
}
.olx-step { color: var(--color-text-muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.olx-step.is-done { color: #86efac; }
.olx-step.is-bad  { color: #fca5a5; }
.olx-step.is-hold { color: var(--color-text-secondary); }
.olx-state { border-radius: 12px; padding: 14px 18px; margin-top: 18px; font-size: .93rem; display: none; }
.olx-state.show { display: block; }
.olx-state.pending { background: var(--color-icon-bg); color: var(--color-text-secondary); }
.olx-state.ok { background: rgba(34,197,94,.14); color: #86efac; border: 1px solid rgba(34,197,94,.35); }
.olx-state.bad { background: rgba(239,68,68,.14); color: #fca5a5; border: 1px solid rgba(239,68,68,.35); }
.olx-state .olx-state-sub {
    display: block; margin-top: 6px; font-size: .84rem; color: var(--color-text-muted); line-height: 1.55;
}


.olx-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.olx-sandbox-bar {
    background: rgba(245,158,11,.12); border: 1px dashed rgba(245,158,11,.5);
    color: #fcd34d; border-radius: 12px; padding: 14px 18px; margin-top: 22px;
    font-size: .88rem; text-align: center;
}

/* ---------- tickets ---------- */
.olx-ticket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }

.olx-ticket {
    position: relative; background: #fff; color: #111827;
    border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: minmax(0, 1fr) 96px;
}
.olx-ticket-main { min-width: 0; }

.olx-ticket-head {
    position: relative;
    background: linear-gradient(135deg, #10111A, #1B1C29);
    color: #fff; padding: 18px 84px 18px 22px;
    display: flex; align-items: center; gap: 14px;
}
.olx-ticket-logo {
    height: 52px; width: auto; max-width: 104px; object-fit: contain;
    background: #fff; border-radius: 8px; padding: 4px; flex: 0 0 auto;
}
.olx-ticket-head .brand { font-weight: 800; letter-spacing: .04em; font-size: .93rem; line-height: 1.3; }
.olx-ticket-head .brand span {
    display: block; font-weight: 600; font-size: .7rem; color: #cbd5e1;
    letter-spacing: .1em; text-transform: uppercase; margin-top: 3px;
}

.olx-ticket-body { padding: 20px 22px 6px; }
.olx-ticket-kind { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #6b7280; font-weight: 700; }
.olx-holder-label {
    margin-top: 14px; font-size: .64rem; letter-spacing: .18em;
    text-transform: uppercase; color: #9ca3af; font-weight: 700;
}
.olx-ticket-holder { margin: 3px 0 14px; font-size: 1.2rem; font-weight: 800; color: #111827; line-height: 1.3; }

.olx-fields {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0 26px; align-items: stretch;
}
.olx-row {
    padding: 9px 0; border-bottom: 1px dashed #e5e7eb; font-size: .88rem;
}
.olx-row.full { grid-column: 1 / -1; }
.olx-row .k {
    display: block; color: #9ca3af; font-size: .64rem; letter-spacing: .14em;
    text-transform: uppercase; font-weight: 700;
}
.olx-row .v { display: block; color: #111827; font-weight: 700; margin-top: 2px; overflow-wrap: break-word; }
.olx-row .v.red { color: var(--olx-red); }
.olx-row .v.blue { color: var(--olx-blue); }
.olx-row .v.green { color: #16a34a; }

.olx-ticket-num {
    margin-top: 16px; background: #0f172a; border-radius: 12px;
    padding: 13px 16px 12px; text-align: center; color: #fff;
}
.olx-ticket-num .k { display: block; font-size: .64rem; letter-spacing: .2em; color: #94a3b8; text-transform: uppercase; }
.olx-ticket-num .n {
    display: block; font-family: 'Courier New', monospace; font-weight: 800;
    font-size: 1.42rem; letter-spacing: .1em; color: #fff; margin-top: 4px; word-break: break-all;
}
.olx-barcode { display: flex; align-items: flex-end; justify-content: center; height: 34px; margin-top: 10px; }
.olx-barcode i { display: block; height: 100%; background: #fff; }
.olx-barcode.dark i { background: #111827; }

.olx-ticket-meta {
    display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center;
    margin: 12px 0 4px; font-size: .72rem; color: #6b7280;
}
.olx-ticket-meta b { color: #111827; font-family: 'Courier New', monospace; font-weight: 700; margin-left: 5px; }

.olx-ticket-stub {
    border-left: 2px dashed #d1d5db; background: #f9fafb;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    gap: 12px; padding: 20px 6px 14px; position: relative; text-align: center;
}
.olx-ticket-stub::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 7px;
    background: linear-gradient(90deg, #d1d5db, #9ca3af);
}
.olx-ticket-stub.red::before  { background: linear-gradient(90deg, #ef4444, #b91c1c); }
.olx-ticket-stub.blue::before { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.olx-stub-label {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: .56rem; letter-spacing: .2em; font-weight: 800;
    color: #6b7280; text-transform: uppercase;
}
.olx-stub-num {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: 'Courier New', monospace; font-weight: 800;
    font-size: .8rem; letter-spacing: .1em; color: #111827;
}
.olx-stub-side {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: .66rem; font-weight: 800; letter-spacing: .16em;
}
.olx-stub-side.red { color: var(--olx-red); }
.olx-stub-side.blue { color: var(--olx-blue); }
.olx-stub-side.none { color: #9ca3af; }
.olx-stub-bars { display: flex; flex-direction: column; gap: 3px; width: 44px; }
.olx-stub-bars i { display: block; width: 100%; background: #111827; }

.olx-ticket-foot {
    background: #f9fafb; border-top: 1px solid #e5e7eb;
    padding: 12px 22px; font-size: .76rem; color: #6b7280;
    text-align: center; line-height: 1.55;
}
.olx-ticket-foot strong { color: #111827; }

.olx-stamp {
    position: absolute; top: 14px; right: 16px;
    font-size: .66rem; font-weight: 800; letter-spacing: .14em;
    padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
}
.olx-stamp.confirmed { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.olx-stamp.cancelled { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.olx-side-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.olx-side-pill.red { color: var(--olx-red); }
.olx-side-pill.blue { color: var(--olx-blue); }
.olx-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.olx-dot.red { background: var(--olx-red); }
.olx-dot.blue { background: var(--olx-blue); }

@media (max-width: 520px) {
    .olx-ticket { grid-template-columns: minmax(0, 1fr) 74px; }
    .olx-ticket-head { padding: 16px 74px 16px 18px; }
    .olx-ticket-num .n { font-size: 1.12rem; }
}


/* ---------- my tickets list ---------- */
.olx-list { display: grid; gap: 14px; }
.olx-list-item {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: var(--color-surface-bg); border: 1px solid var(--color-border);
    border-radius: 14px; padding: 18px 22px; transition: var(--transition-base);
}
.olx-list-item:hover { border-color: var(--color-border-hover); }
.olx-list-item .no { font-family: 'Courier New', monospace; font-weight: 800; color: var(--color-accent); font-size: 1.02rem; }
.olx-list-item .meta { color: var(--color-text-muted); font-size: .86rem; margin-top: 4px; }
.olx-list-item .name { color: var(--color-text-primary); font-weight: 700; }
.olx-empty { text-align: center; color: var(--color-text-muted); padding: 44px 20px; }

/* ---------- teams ---------- */
.olx-team-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.olx-team {
    background: var(--color-surface-bg); border: 1px solid var(--color-border);
    border-radius: 18px; overflow: hidden;
}
.olx-team-head {
    padding: 20px 24px; font-weight: 800; font-size: 1.15rem; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
}
.olx-team-head.red { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.olx-team-head.blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.olx-team-head .count { font-size: .9rem; font-weight: 600; opacity: .9; }
.olx-team-list { padding: 18px 22px 22px; }
.olx-school { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.olx-school:last-child { border-bottom: none; }
.olx-school .sn { color: var(--color-text-primary); font-weight: 700; font-size: .98rem; }
.olx-school .ac { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.olx-chip {
    background: var(--color-icon-bg); border: 1px solid var(--color-border);
    color: var(--color-text-secondary); border-radius: 999px;
    padding: 5px 13px; font-size: .76rem; font-weight: 600;
}
.olx-roster { margin: 9px 0 0; padding: 0; list-style: none; color: var(--color-text-muted); font-size: .84rem; }
.olx-roster li { padding: 3px 0 3px 14px; position: relative; }
.olx-roster li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-border-hover); }
.olx-roster .cl { color: var(--color-text-muted); opacity: .75; }

/* ---------- verify ---------- */
.olx-verify-result {
    border-radius: 16px; padding: 26px 28px; margin-top: 24px;
    border: 1px solid var(--color-border); background: var(--color-surface-bg);
}
.olx-verify-result.valid { border-color: rgba(34,197,94,.5); background: linear-gradient(180deg, rgba(34,197,94,.12), transparent 55%), var(--color-surface-bg); }
.olx-verify-result.invalid { border-color: rgba(239,68,68,.5); background: linear-gradient(180deg, rgba(239,68,68,.12), transparent 55%), var(--color-surface-bg); }
.olx-verify-result .verdict { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.olx-verify-result.valid .verdict { color: var(--olx-green); }
.olx-verify-result.invalid .verdict { color: var(--olx-red); }
.olx-verify-result .note { color: var(--color-text-muted); font-size: .88rem; margin-bottom: 18px; }
.olx-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.olx-kv .box { background: rgba(0,0,0,.2); border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 16px; }
.olx-kv .box .k { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
.olx-kv .box .v { display: block; margin-top: 5px; color: var(--color-text-primary); font-weight: 700; font-size: .98rem; word-break: break-word; }

.olx-status-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.olx-badge { border-radius: 999px; padding: 7px 15px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.olx-badge.ok { background: rgba(34,197,94,.16); color: #86efac; border: 1px solid rgba(34,197,94,.4); }
.olx-badge.off { background: rgba(148,163,184,.14); color: #cbd5e1; border: 1px solid var(--color-border); }
.olx-badge.red { background: var(--olx-red-soft); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.olx-badge.blue { background: var(--olx-blue-soft); color: #93c5fd; border: 1px solid rgba(59,130,246,.4); }

/* ---------- programme note ---------- */
.olx-note {
    background: var(--color-surface-hover); border-left: 3px solid var(--color-accent);
    border-radius: 0 12px 12px 0; padding: 16px 20px; margin-top: 26px;
    color: var(--color-text-secondary); font-size: .9rem; line-height: 1.6;
}

/* ---------- print: A4 Portrait, single page ---------- */

/* Portrait A4 with tight margins for the ticket page */
@page {
    size: A4 portrait;
    margin: 8mm 10mm;
}

@media print {

    /* Force exact colour reproduction across all browsers */
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* Reset the whole page */
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Hide everything except the print area */
    body * {
        visibility: hidden !important;
    }
    .olx-ticket-print-area,
    .olx-ticket-print-area *,
    .olx-ticket-card,
    .olx-ticket-card *,
    .olx-real-ticket,
    .olx-real-ticket * {
        visibility: visible !important;
    }

    /* ── KEY FIX 1: Collapse the outer wrappers so they don't produce
       blank pages. `visibility: hidden` hides content but block elements
       still occupy space — that 48px+72px section padding was creating
       the empty first page.                                                   */
    .olx-section,
    .olx-section > .container,
    .olx-section > .container > .olx-wrap,
    .olx-section > .container > .olx-wrap-narrow {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    /* ── KEY FIX 3: main has padding-top:80px (for the fixed navbar) in
       style.css. During print the navbar is display:none, so that 80px
       creates a blank gap at page top — pushing the ticket to page 2.        */
    main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* ── KEY FIX 2: Use static positioning so the ticket is IN the
       normal document flow. The old `position: absolute` pulled the
       ticket out of flow, causing blank pages before and after it.           */
    .olx-ticket-print-area {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ── Scale to fit A4 portrait.
       WHY zoom instead of transform:scale:
         transform:scale() shrinks ONLY the visual rendering — the layout box
         stays at the original size, leaving invisible whitespace that makes
         the bottom of the ticket appear clipped (it scrolls off the page).
         zoom shrinks both visual AND layout box together, so there is no
         leftover space and no clipping.
       A4 usable: 190mm wide × 277mm tall (at 8mm margins).
       Ticket: 590px ≈ 156mm wide → fits A4 width without scaling.
       Height risk: a competitive ticket with 8 rows can be ~850px tall.
       zoom:0.78 → 850 × 0.78 = 663px ≈ 175mm — fits comfortably.         */
    .olx-ticket-card {
        zoom: 0.78 !important;
        -moz-transform: scale(0.78) !important;   /* Firefox fallback */
        -moz-transform-origin: top center !important;
        position: relative !important;
        width: 590px !important;
        max-width: 590px !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Landscape boarding-pass style (olx-real-ticket, separate layout) */
    .olx-real-ticket {
        zoom: 0.78 !important;
        -moz-transform: scale(0.78) !important;
        -moz-transform-origin: top center !important;
        position: relative !important;
        width: 920px !important;
        max-width: 920px !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        border: 1.5px solid #0f172a !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Hide all non-ticket UI */
    .olx-no-print,
    header, footer,
    .bg-decorations,
    #whatsappButton,
    .scroll-to-top,
    .olx-ticket-page-header,
    .olx-card,
    .olx-actions,
    nav, .navbar, .sidebar {
        display: none !important;
        visibility: hidden !important;
    }

    /* No orphan pages */
    .olx-ticket-print-area,
    .olx-ticket-card,
    .olx-real-ticket {
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        break-before: avoid !important;
        break-after: avoid !important;
    }
}


/* =====================================================================
   ACA National Academic Olympiad 2026 -- Enhanced Landing & Real Ticket
   ===================================================================== */

/* ---------- Hero Card ---------- */
.olx-hero-card {
    background: linear-gradient(135deg, rgba(16, 17, 26, 0.98), rgba(27, 28, 41, 0.98));
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 38px 36px 30px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 34px;
    position: relative;
    overflow: hidden;
}
.olx-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, rgba(59, 130, 246, 0.12) 50%, transparent 70%);
    pointer-events: none;
}
.olx-hero-content {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
}
@media (max-width: 768px) {
    .olx-hero-content { flex-direction: column; text-align: center; }
}
.olx-crest-wrap {
    flex: 0 0 auto;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.olx-crest-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.olx-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.olx-main-title {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}
.olx-main-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin: 0;
    max-width: 680px;
    line-height: 1.6;
}

/* Meta Strip */
.olx-meta-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
}
.olx-meta-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.olx-meta-box i { font-size: 1.35rem; }
.olx-meta-box .lbl {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}
.olx-meta-box strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}
.olx-format-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.92rem;
}
.olx-format-badge .r { color: #ef4444; }
.olx-format-badge .b { color: #3b82f6; }
.olx-format-badge .vs { color: #94a3b8; font-size: 0.72rem; letter-spacing: 0.1em; }

.olx-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.olx-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.olx-hero-btn.primary {
    background: #f59e0b;
    color: #000;
}
.olx-hero-btn.primary:hover {
    background: #d97706;
    color: #fff;
    transform: translateY(-2px);
}
.olx-hero-btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.olx-hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.olx-hero-btn.outline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.olx-hero-btn.outline:hover {
    color: #fff;
    border-color: #fff;
}

/* Section Headings */
.olx-section-heading {
    text-align: center;
    margin: 40px auto 26px;
    max-width: 720px;
}
.olx-section-heading.compact { margin-top: 0; }
.olx-sub-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-accent);
    margin-bottom: 6px;
}
.olx-section-heading h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 8px;
}
.olx-section-heading p {
    color: var(--color-text-muted);
    font-size: 0.96rem;
    margin: 0;
    line-height: 1.6;
}

/* Two Pathways */
.olx-two-pathways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
    margin-top: 18px;
}
.olx-pathway-card {
    background: var(--color-surface-bg);
    border: 2px solid var(--color-border);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.olx-pathway-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.15);
}
.olx-pathway-card.competitive { border-top: 6px solid #ef4444; }
.olx-pathway-card.attendance { border-top: 6px solid #3b82f6; }

.olx-pathway-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.olx-pathway-badge.red { background: rgba(239, 68, 68, 0.14); color: #ef4444; }
.olx-pathway-badge.blue { background: rgba(59, 130, 246, 0.14); color: #3b82f6; }

.olx-pathway-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 8px;
}
.olx-pathway-desc {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 18px;
}

.olx-pricing-banner {
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.olx-pricing-banner.red { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); }
.olx-pricing-banner.blue { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.25); }
.olx-price-val {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-text-primary);
}
.olx-pricing-banner.red .olx-price-val { color: #ef4444; }
.olx-pricing-banner.blue .olx-price-val { color: #3b82f6; }
.olx-price-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-top: 3px;
    text-transform: uppercase;
}

.olx-package-box {
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.86rem;
}
.pkg-title { font-weight: 700; color: var(--color-text-primary); margin-bottom: 5px; }
.pkg-formula { font-size: 0.92rem; color: var(--color-text-primary); margin-bottom: 8px; line-height: 1.5; }
.pkg-note { font-size: 0.82rem; color: var(--color-text-secondary); line-height: 1.5; }

.olx-pathway-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}
.olx-pathway-features li {
    padding: 7px 0;
    border-bottom: 1px dashed var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.olx-pathway-features li i { color: #16a34a; margin-top: 3px; flex-shrink: 0; }
.olx-pathway-action { margin-top: auto; }
.olx-btn-pathway {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.olx-btn-pathway.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3);
}
.olx-btn-pathway.red:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}
.olx-btn-pathway.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
}
.olx-btn-pathway.blue:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* Activities Grid */
.olx-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.olx-activity-card {
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px 18px;
    transition: all 0.2s ease;
}
.olx-activity-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}
.act-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.act-icon { font-size: 2rem; }
.act-fee {
    font-size: 0.85rem;
    font-weight: 800;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
}
.act-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 6px;
}
.act-size {
    font-size: 0.84rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}
.act-tshirt-included {
    font-size: 0.76rem;
    color: #16a34a;
    font-weight: 600;
}

/* Panel Talk Callout */
.olx-panel-talk-callout {
    display: flex;
    gap: 18px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 22px;
    align-items: flex-start;
}
.callout-icon { font-size: 1.8rem; color: #f59e0b; flex-shrink: 0; }
.callout-body h4 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: 0.04em;
}
.callout-body p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}
.olx-center-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Red vs Blue Section */
.olx-sides-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
}
@media (max-width: 650px) {
    .olx-sides-comparison { grid-template-columns: 1fr; }
    .side-vs-divider { margin: 8px auto; }
}
.side-card {
    border-radius: 16px;
    padding: 22px 20px;
    text-align: center;
}
.side-card.red-side { background: rgba(239, 68, 68, 0.1); border: 2px solid rgba(239, 68, 68, 0.35); }
.side-card.blue-side { background: rgba(59, 130, 246, 0.1); border: 2px solid rgba(59, 130, 246, 0.35); }
.side-card .side-badge {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.side-card.red-side .side-badge { color: #ef4444; }
.side-card.blue-side .side-badge { color: #3b82f6; }
.side-card .side-desc {
    font-size: 0.86rem;
    color: var(--color-text-secondary);
    margin: 0 0 10px;
    line-height: 1.5;
}
.side-card .side-status {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.side-vs-divider {
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--color-text-muted);
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.olx-rules-box {
    background: var(--color-surface-hover);
    border-radius: 12px;
    padding: 16px 20px;
}
.olx-rules-box h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
}
.olx-rules-box ol {
    margin: 0;
    padding-left: 20px;
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* Flow Grid */
.olx-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 18px;
}
.olx-flow-col {
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 20px 22px;
}
.flow-header {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}
.flow-header.red { color: #ef4444; }
.flow-header.blue { color: #3b82f6; }
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}
.step-item.highlight {
    color: var(--color-text-primary);
    font-weight: 700;
}
.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-icon-bg);
    border: 1px solid var(--color-border);
    display: grid;
    place-items: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Verify Callout */
.olx-verify-callout-card {
    background: linear-gradient(135deg, var(--color-surface-bg), var(--color-surface-hover));
}
.ticket-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.t-badge {
    background: var(--color-icon-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.olx-verify-widget-box {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 22px 24px;
}
.olx-verify-widget-box h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--color-text-primary);
    font-weight: 700;
}
.olx-verify-widget-box p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
}
.olx-verify-input {
    background: var(--bg-input);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Venue Banner */
.olx-venue-banner {
    background: var(--color-surface-bg);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.venue-icon {
    font-size: 2.2rem;
    color: #ef4444;
}
.venue-details { flex: 1 1 260px; }
.venue-details h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-primary);
}
.venue-details p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =====================================================================
   REAL TICKET DESIGN & AUTHENTIC STYLING (SHORTENED LANDSCAPE BOARDING PASS)
   ===================================================================== */
.olx-real-ticket {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    border: 1.5px solid #cbd5e1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0 auto;
    max-width: 940px;
    width: 100%;
}

/* Watermark Logo in Ticket Background */
.olx-real-watermark {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 270px;
    height: 270px;
    opacity: 0.055;
    pointer-events: none;
    z-index: 1;
}
.olx-real-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(10%) contrast(110%);
}

.olx-real-ticket-main {
    min-width: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Ticket Header */
.olx-real-ticket-header {
    background: linear-gradient(135deg, #0b0f19, #1e293b);
    color: #ffffff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 2px solid #f59e0b;
}
.olx-real-brand-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.olx-real-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    padding: 2px;
    border: 2px solid #f59e0b;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.olx-real-brand-text .org-name {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #f59e0b;
    text-transform: uppercase;
}
.olx-real-brand-text .event-title {
    margin: 1px 0 1px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.01em;
    line-height: 1.15;
}
.olx-real-brand-text .motto {
    display: block;
    font-size: 0.66rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.olx-real-status-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.olx-real-status-badge.confirmed {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

/* Side Banners (Compact Strip) */
.olx-real-side-banner {
    padding: 5px 20px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.olx-real-side-banner.red {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    color: #ffffff;
}
.olx-real-side-banner.blue {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #ffffff;
}
.olx-real-side-banner.general {
    background: linear-gradient(90deg, #475569, #334155);
    color: #ffffff;
}
.olx-real-side-banner.pending {
    background: #fef3c7;
    color: #92400e;
}
.olx-real-side-banner .side-tag {
    font-size: 0.64rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 999px;
}

/* Ticket Body */
.olx-real-ticket-body {
    padding: 12px 20px 10px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.olx-real-holder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #e2e8f0;
}
.olx-real-holder-info {
    flex: 1 1 auto;
    min-width: 0;
}
.olx-real-holder-info .field-k {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #64748b;
    text-transform: uppercase;
}
.olx-real-holder-info .field-holder-val {
    margin: 1px 0 2px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.field-contact-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.field-contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 500;
}

.holder-right-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.holder-price-box {
    text-align: right;
}
.holder-price-box .price-k {
    display: block;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #64748b;
    text-transform: uppercase;
}
.holder-price-box .price-v {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.olx-real-ticket-type-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.olx-real-ticket-type-pill.comp {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.olx-real-ticket-type-pill.att {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* 4-Column Horizontal Grid */
.olx-real-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 14px;
}
@media (max-width: 768px) {
    .olx-real-grid { grid-template-columns: repeat(2, 1fr); }
}
.olx-real-cell {
    padding: 4px 0;
    border-bottom: 1px dashed #cbd5e1;
    min-width: 0;
}
.olx-real-cell .k {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}
.olx-real-cell .v {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.olx-real-cell .v.activity {
    color: #b91c1c;
    font-weight: 800;
}
.olx-real-cell .v.capitalize { text-transform: capitalize; }
.side-text.red { color: #dc2626; font-weight: 800; }
.side-text.blue { color: #2563eb; font-weight: 800; }
.status-confirmed { color: #16a34a; font-weight: 800; }

/* Inline Compact T-Shirt Status Banner */
.olx-real-tshirt-inline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
}
.olx-real-tshirt-inline.tshirt-ok { border-left: 3px solid #16a34a; }
.olx-real-tshirt-inline.tshirt-no { border-left: 3px solid #94a3b8; }
.olx-real-tshirt-inline .tshirt-label {
    color: #334155;
    font-size: 0.72rem;
    white-space: nowrap;
}
.olx-real-tshirt-inline .tshirt-desc {
    color: #0f172a;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Competitors Box */
.olx-real-competitors-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
}
.comp-box-title {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 4px;
}
.comp-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.comp-student-badge {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.72rem;
    color: #1e293b;
}

/* Serial & QR Code Bar (Compact Horizontal) */
.olx-real-serial-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 14px;
    margin-top: 2px;
}
.serial-text-col .serial-k {
    display: block;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #94a3b8;
    text-transform: uppercase;
}
.serial-text-col .serial-number {
    display: block;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin: 1px 0;
    word-break: break-all;
}
.serial-text-col .serial-helper {
    display: block;
    font-size: 0.68rem;
    color: #cbd5e1;
}
.qr-col {
    text-align: center;
    flex-shrink: 0;
}
.olx-qr-img {
    background: #ffffff;
    padding: 2px;
    border-radius: 6px;
    display: block;
    width: 60px;
    height: 60px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.qr-sub {
    display: block;
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-top: 2px;
}

/* Ticket Footer (Slim Strip) */
.olx-real-ticket-footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 5px 20px;
    font-size: 0.66rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.olx-real-ticket-footer strong { color: #0f172a; }

/* Tear-Off Perforated Stub */
.olx-real-ticket-stub {
    background: #f8fafc;
    border-left: 2px dashed #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.olx-real-ticket-stub.red { border-left-color: #ef4444; }
.olx-real-ticket-stub.blue { border-left-color: #3b82f6; }

.stub-notch {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--color-bg, #0b0f19);
    border-radius: 50%;
    left: -9px;
    z-index: 3;
}
.stub-notch.top { top: -9px; }
.stub-notch.bottom { bottom: -9px; }

.stub-mini-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    padding: 2px;
    border: 1px solid #cbd5e1;
}
.stub-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    gap: 8px;
}
.stub-admit {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #64748b;
    text-transform: uppercase;
}
.stub-num {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: #0f172a;
}
.stub-side-badge {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.stub-side-badge.red { background: #fee2e2; color: #b91c1c; }
.stub-side-badge.blue { background: #dbeafe; color: #1d4ed8; }
.stub-side-badge.general { background: #e2e8f0; color: #334155; }

.stub-barcode-lines {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    width: 32px;
    margin: 0 auto 3px;
}
.stub-barcode-lines i {
    display: block;
    height: 1.5px;
    background: #0f172a;
}
.stub-date {
    display: block;
    font-size: 0.52rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
}

/* Responsive Ticket */
@media (max-width: 680px) {
    .olx-real-ticket { grid-template-columns: 1fr; }
    .olx-real-ticket-stub {
        border-left: none;
        border-top: 2px dashed #94a3b8;
        flex-direction: row;
        padding: 12px 16px;
    }
    .stub-notch.top { left: auto; top: -9px; }
    .stub-notch.bottom { left: auto; bottom: -9px; }
    .stub-text { writing-mode: horizontal-tb; transform: none; flex-direction: row; }
}

.olx-ticket-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 16px 0;
}

/* =====================================================================
   ACA OFFICIAL OLYMPIAD TICKET CARD (COMPETITIVE & ATTENDANCE)
   Matches the official portrait ticket specification from the image.
   ===================================================================== */
.olx-ticket-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 20px auto;
    width: 100%;
}

.olx-ticket-card {
    background: #ffffff;
    width: 100%;
    max-width: 590px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 35, 75, 0.16);
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Outer Border Variants */
.olx-ticket-card.competitive {
    border: 3.5px solid #ff7a00;
}
.olx-ticket-card.attendance {
    border: 3.5px solid #0077c8;
}

/* ---------- Top Header ---------- */
.olx-ticket-header {
    padding: 24px 26px 12px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
}
.olx-ticket-logo-wrap {
    flex-shrink: 0;
}
.olx-ticket-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    display: block;
}
.olx-ticket-vsep {
    width: 2px;
    height: 78px;
    background: #003366;
    opacity: 0.28;
    flex-shrink: 0;
}
.olx-ticket-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.olx-th-sub {
    font-size: 1.02rem;
    font-weight: 800;
    color: #003366;
    letter-spacing: 0.04em;
    line-height: 1.22;
    text-transform: uppercase;
}
.olx-th-main {
    font-size: 1.48rem;
    font-weight: 900;
    color: #002244;
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin-top: 4px;
    text-transform: uppercase;
}

/* ---------- Date & Venue Bar ---------- */
.olx-ticket-meta-bar {
    padding: 6px 26px 12px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #ffffff;
}
.olx-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #002b49;
}
.olx-meta-item i {
    font-size: 1.35rem;
    color: #002b49;
}
.olx-meta-date {
    font-size: 0.96rem;
    font-weight: 800;
    color: #002b49;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.olx-meta-sep {
    width: 1.5px;
    height: 28px;
    background: #002b49;
    opacity: 0.35;
    flex-shrink: 0;
}
.olx-meta-venue {
    font-size: 0.88rem;
    font-weight: 700;
    color: #002b49;
    line-height: 1.25;
}

/* ---------- RED VS BLUE Divider ---------- */
.olx-vs-divider {
    display: flex;
    align-items: center;
    padding: 0 24px;
    margin: 4px 0 14px 0;
    width: 100%;
}
.olx-vs-line {
    flex: 1;
    height: 2px;
    background: #0077c8;
    opacity: 0.85;
}
.olx-vs-pill {
    display: inline-flex;
    align-items: stretch;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.olx-vs-red {
    background: #e51a24;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    padding: 6px 18px 6px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.olx-vs-center {
    background: #003366;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.olx-vs-center::before {
    content: "/";
    position: absolute;
    left: -1px;
    color: #ffffff;
    font-weight: 300;
    opacity: 0.7;
}
.olx-vs-center::after {
    content: "/";
    position: absolute;
    right: -1px;
    color: #ffffff;
    font-weight: 300;
    opacity: 0.7;
}
.olx-vs-blue {
    background: #0077c8;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    padding: 6px 20px 6px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Ticket Banner ---------- */
.olx-ticket-banner {
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 18px;
    width: 100%;
}
.olx-ticket-banner.comp {
    background: #e51a24;
}
.olx-ticket-banner.att {
    background: #0077c8;
}

/* ---------- Details Card Table ---------- */
.olx-details-card {
    background: #f4f9ff;
    border: 1.5px solid #ddecfa;
    border-radius: 16px;
    margin: 16px 22px 20px 22px;
    padding: 4px 22px;
}
.olx-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #e1edfa;
}
.olx-detail-row:last-child {
    border-bottom: none;
}
.olx-dr-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.olx-dr-icon {
    width: 24px;
    font-size: 1.15rem;
    color: #002d5b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.olx-dr-icon-ugx {
    background: #002d5b;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.03em;
}
.olx-dr-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #002d5b;
}
.olx-dr-val {
    font-size: 0.98rem;
    font-weight: 800;
    color: #002d5b;
    text-align: right;
}

/* Pills / Badges */
.olx-pill-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 22px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
}
.olx-pill-badge.red {
    background: #e51a24;
}
.olx-pill-badge.blue {
    background: #0077c8;
}
.olx-pill-badge.green {
    background: #00a651;
}

/* ---------- Bottom Footer Section ---------- */
.olx-ticket-footer {
    background: #002b49;
    position: relative;
    overflow: hidden;
    padding: 20px 24px 24px 24px;
    text-align: center;
    color: #ffffff;
    margin-top: auto;
}
.olx-tf-title {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 3px;
    position: relative;
    z-index: 2;
}
.olx-tf-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}
.olx-tf-hr {
    width: 150px;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    margin: 0 auto 8px auto;
    position: relative;
    z-index: 2;
}
.olx-tf-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
.olx-tf-pill {
    display: inline-block;
    background: #ffffff;
    color: #002b49;
    border-radius: 999px;
    padding: 7px 32px;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}

/* Corner Swooshes */
.olx-swoosh {
    position: absolute;
    bottom: 0;
    width: 170px;
    height: 125px;
    pointer-events: none;
    z-index: 1;
}
.olx-swoosh.left {
    left: 0;
}
.olx-swoosh.right {
    right: 0;
    transform: scaleX(-1);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .olx-ticket-header {
        padding: 16px 14px 10px 14px;
        gap: 12px;
    }
    .olx-ticket-logo {
        width: 65px;
        height: 65px;
    }
    .olx-ticket-vsep {
        height: 60px;
    }
    .olx-th-sub {
        font-size: 0.85rem;
    }
    .olx-th-main {
        font-size: 1.15rem;
    }
    .olx-ticket-meta-bar {
        padding: 6px 12px 10px 12px;
        gap: 10px;
    }
    .olx-meta-date {
        font-size: 0.82rem;
    }
    .olx-meta-venue {
        font-size: 0.78rem;
    }
    .olx-details-card {
        margin: 12px 12px 16px 12px;
        padding: 4px 12px;
    }
    .olx-detail-row {
        padding: 8px 0;
    }
    .olx-dr-label {
        font-size: 0.85rem;
    }
    .olx-dr-val {
        font-size: 0.88rem;
    }
    .olx-ticket-footer {
        padding: 16px 12px 20px 12px;
    }
    .olx-tf-pill {
        padding: 6px 18px;
        font-size: 0.88rem;
    }
    .olx-swoosh {
        width: 110px;
        height: 80px;
    }
}


/* =====================================================================
   MISSING: olx-tmeta-* (ticket meta bar items)
   Referenced in _ticket_card.php but were not defined in CSS.
   ===================================================================== */

.olx-tmeta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #002b49;
}
.olx-tmeta-item i {
    font-size: 1.1rem;
    color: #002b49;
    flex-shrink: 0;
}
.olx-tmeta-date {
    font-size: 0.92rem;
    font-weight: 800;
    color: #002b49;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.olx-tmeta-sep {
    width: 1.5px;
    height: 26px;
    background: #002b49;
    opacity: 0.30;
    flex-shrink: 0;
}
.olx-tmeta-venue {
    font-size: 0.84rem;
    font-weight: 700;
    color: #002b49;
    line-height: 1.25;
}

/* =====================================================================
   MISSING: olx-ticket-print-area
   Wrapper used in ticket.php to isolate the printable ticket region.
   ===================================================================== */

.olx-ticket-print-area {
    display: flex;
    justify-content: center;
    margin: 0 auto 20px;
}
