/* /attendee-ticket/ — per-attendee public page (mobile-first). */

.attticket-shell {
    position: relative;
    min-height: 100vh;
    padding: 80px 16px 56px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.attticket-content {
    width: 100%;
    max-width: 540px;
    text-align: center;
}
.attticket-content--centered { display: flex; flex-direction: column; align-items: center; }
/* Author `display` rules above defeat the UA `[hidden] { display: none }`
   stylesheet (author > UA at equal specificity). The attribute selector
   below at specificity (0,2,0) beats both class rules at (0,1,0), so
   el.hidden = true reliably hides the element. See docs/LEARNINGS.md. */
.attticket-content[hidden] { display: none; }

.attticket-pill {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(22,163,74,0.25);
    background: rgba(22,163,74,0.08);
    color: #16a34a;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.attticket-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.attticket-headline {
    font-family: var(--font-display, "Playfair Display"), Georgia, serif;
    font-size: 32px;
    line-height: 1.18;
    color: #0d1f3c;
    margin: 0 0 10px;
    font-weight: 700;
}
.attticket-accent { color: #e65d33; }

.attticket-sub { font-size: 14px; color: #5a6473; line-height: 1.55; margin: 0 0 24px; }

.attticket-cta {
    display: inline-block;
    background: #e65d33; color: #fff;
    padding: 12px 26px;
    border: 0; border-radius: 8px;
    font-weight: 600; font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 12px;
}
.attticket-cta:hover { background: #cf4a21; }
.attticket-cta:disabled { opacity: 0.5; cursor: not-allowed; }

.attticket-spinner {
    width: 40px; height: 40px;
    margin: 14px auto 16px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #e65d33;
    animation: attticket-spin 0.9s linear infinite;
}
@keyframes attticket-spin { to { transform: rotate(360deg); } }

/* Ticket card */
.attticket-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px 28px;
    margin: 16px 0 24px;
    box-shadow: 0 4px 32px rgba(13,31,60,0.08);
    overflow: hidden;
    text-align: left;
}
.attticket-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #e65d33;
}
.attticket-card__notch {
    position: absolute; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 1px solid #e2e8f0; top: 50%; transform: translateY(-50%); z-index: 1;
}
.attticket-card__notch--l { left: -10px; }
.attticket-card__notch--r { right: -10px; }
.attticket-card__label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: #94a3b8; margin: 0 0 16px; text-align: center;
}
.attticket-card__qr-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.attticket-card__qr-frame { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.attticket-card__qr { display: block; width: 160px; height: 160px; background: #fff; border-radius: 6px; }
.attticket-card__divider { border: 0; border-top: 1px dashed #cbd5e1; margin: 0 0 16px; }
.attticket-card__id-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 12px; justify-content: center;
}
.attticket-card__id-label { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.08em; }
.attticket-card__id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; color: #475569;
    background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 10px;
    word-break: break-all;
}
.attticket-card__meta {
    font-size: 13px; color: #52627a; line-height: 1.55; text-align: center;
}
.attticket-card__meta strong { color: #0d1f3c; display: block; font-size: 15px; margin-bottom: 4px; }

/* Lock / status banner */
.attticket-banner {
    padding: 12px 18px; border-radius: 10px;
    margin: 0 0 18px; font-size: 14px; line-height: 1.45;
}
.attticket-banner--ok    { background: rgba(22,163,74,0.08);  color: #16a34a;  border: 1px solid rgba(22,163,74,0.2); }
.attticket-banner--info  { background: rgba(59,130,246,0.06); color: #1e3a8a;  border: 1px solid rgba(59,130,246,0.2); }
.attticket-banner--warn  { background: rgba(217,119,6,0.08);  color: #b45309;  border: 1px solid rgba(217,119,6,0.2); }
.attticket-banner--error { background: rgba(220,38,38,0.06);  color: #c0392b;  border: 1px solid rgba(220,38,38,0.18); }

/* Form */
.attticket-form { width: 100%; text-align: left; }
.attticket-form__heading { font-family: var(--font-display, "Playfair Display"), Georgia, serif; font-size: 22px; color: #0d1f3c; margin: 0 0 6px; font-weight: 600; }
.attticket-form__lede    { font-size: 13px; color: #5a6473; margin: 0 0 18px; line-height: 1.5; }
.attticket-form__grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.attticket-form__full    { grid-column: 1 / -1; }
.attticket-form label { display: block; font-family: var(--font-body, "DM Sans"), sans-serif; }
.attticket-form label > span:first-child {
    display: block; margin-bottom: 5px;
    font-size: 12px; font-weight: 600; color: #1e3a5f;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.attticket-required { color: #dc2626; font-weight: 700; }
.attticket-form input {
    width: 100%; box-sizing: border-box;
    padding: 11px 13px;
    font-family: var(--font-body, "DM Sans"), sans-serif;
    font-size: 14px; color: #0d1f3c;
    background: #fff; border: 1px solid #d6dae2; border-radius: 8px;
}
.attticket-form input:focus {
    outline: none; border-color: #e65d33;
    box-shadow: 0 0 0 3px rgba(230,93,51,0.12);
}
.attticket-form input:disabled {
    background: #f8fafc; color: #5a6473; cursor: not-allowed;
}

.attticket-form__status {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    min-height: 1.5em;
    color: #5a6473;
}
.attticket-form__status[data-kind="ok"]    { color: #15803d; font-weight: 500; }
.attticket-form__status[data-kind="error"] { color: #c0392b; font-weight: 500; }

@media (max-width: 480px) {
    .attticket-headline { font-size: 26px; }
    .attticket-form__grid { grid-template-columns: 1fr; }
    .attticket-card { padding: 22px 20px; }
    .attticket-card__id { font-size: 11px; }
}
