/* TIMEPLUS TH — forms, auth, flash messages and dashboard (loaded on every system page after hub.css) */

/* ---------- Flash ---------- */
.flash-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.flash { padding: 13px 16px; border-radius: 12px; font-size: 15px; line-height: 1.6; background: var(--sky-soft); color: var(--blue); border: 1px solid #c7e3f4; }
.flash--success { background: #e9f7ef; color: #146c43; border-color: #bfe5cf; }
.flash--error { background: #fdecec; color: #b42318; border-color: #f6c9c5; }
.flash--info { background: var(--sky-soft); color: var(--blue); }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field > span { font-weight: 600; font-size: 14px; color: var(--ink); }
.field > span small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .inline-form input, .dash-search input, .reject textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  font-family: var(--th); font-size: 15.5px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea, .reject textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus, .dash-search input:focus, .reject textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41,146,208,.15); }
.field [aria-invalid="true"] { border-color: #e5484d; background: #fffafa; }
.field em, .check-line em, .field-error { font-style: normal; font-size: 13px; color: #b42318; }
.field--wide { flex: 2; }
.field-row { display: flex; gap: 14px; }
.check-line { display: grid; grid-template-columns: 18px 1fr; align-items: start; column-gap: 10px; row-gap: 4px; font-size: 14px; line-height: 1.5; color: var(--text); cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.check-line em { grid-column: 2; }
.legal-accept { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7fbfd; }
.legal-accept a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.legal-accept-error { margin-top: -8px; color: #b42318; font-style: normal; font-size: 13px; }
.legal-page { max-width: 980px; padding-top: 48px; padding-bottom: 72px; }
.legal-hero { padding: 42px clamp(24px, 6vw, 64px); border-radius: 24px; background: #014f77; color: #fff; }
.legal-hero .eyebrow { color: #a9d9ee; }
.legal-hero h1 { margin: 14px 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.12; }
.legal-hero p { font-size: 17px; opacity: .9; }
.legal-hero small { display: block; margin-top: 22px; opacity: .7; }
.legal-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.legal-jump a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); font-weight: 600; font-size: 14px; }
.legal-card { scroll-margin-top: 100px; margin-top: 16px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.legal-card h2 { margin: 8px 0 24px; color: var(--ink); font-size: clamp(25px, 3vw, 34px); }
.legal-card h3 { margin: 22px 0 6px; color: var(--ink); font-size: 18px; }
.legal-card p { color: var(--text); line-height: 1.85; }
.legal-card p + p { margin-top: 12px; }
.legal-card a { color: var(--blue); font-weight: 600; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--muted); font-size: 15px; line-height: 1.6; }
.btn--danger { background: #fff; border: 1.5px solid #f2b8b5; color: #b42318; }
.btn--danger:hover { background: #fdecec; }
.btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: var(--white); }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; color: var(--sky); }
.link-btn:hover { text-decoration: underline; }
.link-btn[disabled] { color: #c3cad1; cursor: default; text-decoration: none; }
.link-btn--danger { color: #b42318; }

/* Registration form in booking card */
.reg-form { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.reg-form .field input, .reg-form .field textarea { padding: 11px 13px; font-size: 15px; }
.prose { white-space: normal; }
.prose-img { margin: 18px 0 0; }
.prose-img img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--mist); }
.about-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.about-tools .btn { position: relative; overflow: hidden; }
.about-tools input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.about-tools small { color: var(--muted); }
.about-tools [data-about-status] { font-size: 13.5px; }
.about-tools [data-about-status].is-error { color: #b42318; }
.about-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.about-thumbs:empty { display: none; }
.about-thumb { position: relative; width: 112px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.about-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; line-height: 24px; cursor: pointer; }
.about-thumb button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* ---------- Header user ---------- */
.head-user { display: flex; align-items: center; gap: 12px; }
.head-user__profile { display: flex; align-items: center; gap: 10px; border-radius: 999px; }
.head-user__profile:hover .head-user__name { color: #bfe9ff; }
.head-user__profile .avatar { border: 2px solid rgba(255,255,255,.55); }
.head-user__name { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; font-size: 14px; line-height: 1.25; }
.head-user__name small { font-weight: 400; font-size: 12px; color: rgba(255,255,255,.7); }
.head-user .btn { padding: 9px 16px; font-size: 14px; }
.menu__cta.btn--block, form.menu__cta, .menu__user { display: none; }

/* ---------- Auth ---------- */
.auth { display: flex; justify-content: center; padding: 56px var(--pad) 24px; }
.auth__card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(1,79,119,.10); }
.auth__card form { display: flex; flex-direction: column; gap: 14px; }
.auth__card .flash a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.auth__card h1, .auth__card h2 { font-weight: 700; font-size: 28px; color: var(--ink); }
.auth__card h2 { font-size: 24px; }
.auth__mark { width: 56px; height: auto; }
.auth__alt { text-align: center; font-size: 15px; color: var(--muted); }
.auth__alt a { color: var(--sky); font-weight: 600; }
.auth--wide .auth__card { width: min(520px, 100%); }
.admin-account-form { max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.admin-account-form .btn { align-self: flex-start; }
.auth__split { width: min(1080px, 100%); display: grid; grid-template-columns: 1fr 520px; gap: 48px; align-items: center; }
.auth__pitch h1 { margin-top: 14px; font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; color: var(--blue); }
.auth__pitch .bullets { margin-top: 22px; }
.auth__pitch .bullets li { font-size: 17px; }

/* ---------- Registration success ---------- */
.success { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 720px; margin: 56px auto 0; text-align: center; }
.success__icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e9f7ef; color: #1f8a53; }
.success__icon svg { width: 36px; height: 36px; }
.success h1 { font-weight: 700; font-size: clamp(30px, 4vw, 42px); color: var(--ink); }
.success .lead { font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--muted); }
.ticket-code { margin-top: 8px; padding: 22px 36px; border-radius: 20px; border: 2px dashed var(--sky); background: var(--white); display: flex; flex-direction: column; gap: 4px; }
.ticket-code small { color: var(--muted); font-size: 14px; }
.ticket-code b { font-size: 38px; letter-spacing: 3px; color: var(--blue); }
.ticket-code span { font-size: 13px; color: var(--muted); }
.success__card { width: 100%; margin-top: 12px; overflow: hidden; border-radius: 20px; background: var(--white); border: 1px solid var(--line); text-align: left; }
.success__info { padding: 22px 24px; }
.success__info h2 { font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ---------- Cover photo ---------- */
.cover.has-photo { background-size: cover; background-position: center; }
.cover.has-photo::before { display: none; }

/* ---------- Dashboard ---------- */
.dash-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.dash-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dash-nav a { flex: none; padding: 15px 16px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2.5px solid transparent; }
.dash-nav a:hover { color: var(--blue); }
.dash-nav a.is-active { color: var(--blue); border-bottom-color: var(--sky); }
.dash { padding-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.dash--narrow { max-width: 980px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dash-head h1 { margin-top: 8px; font-weight: 700; font-size: clamp(26px, 3.2vw, 36px); color: var(--ink); }
.dash-head .muted { margin-top: 6px; }
.dash-head .back { font-size: 14px; font-weight: 600; color: var(--sky); }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
a.stat:hover { border-color: var(--sky); transform: translateY(-2px); }
.stat small { font-size: 14px; color: var(--muted); }
.stat b { font-family: var(--en); font-weight: 700; font-size: 32px; color: var(--blue); }
.stat b span { font-size: 16px; color: var(--sky); }
.stat--alert { border-color: #f6c38b; background: #fff8f0; }
.stat--alert b { color: #b45309; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dpanel { display: flex; flex-direction: column; gap: 16px; padding: 26px 28px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.dpanel h2 { font-weight: 700; font-size: 20px; color: var(--ink); }
.dpanel h2 small { margin-left: 8px; font-weight: 400; font-size: 14px; color: var(--muted); }
.queue-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.queue-item small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.queue-actions { display: flex; gap: 8px; flex: none; }
.queue-actions .btn { padding: 9px 16px; font-size: 14px; }

.table-wrap { position: relative; overflow-x: auto; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.dpanel .table-wrap { border: 0; border-radius: 0; margin: 0 -28px -26px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { padding: 13px 18px; text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); background: var(--mist); white-space: nowrap; }
.table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.table td small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.table td a { color: var(--blue); }
.table .t-title { font-weight: 600; color: var(--ink); }
.table .t-title:hover { color: var(--blue); text-decoration: underline; }
.table tr.is-muted td { opacity: .55; }
.note-cell { font-style: italic; }
.review-note { color: #b42318 !important; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; white-space: nowrap; }
.row-actions a { font-weight: 600; font-size: 14px; color: var(--sky) !important; }
.row-actions form { display: inline; }
.role-editor { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.role-editor select { padding: 7px 28px 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; font-size: 14px; color: var(--ink); }
.role-editor select:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.reject { position: relative; }
.reject summary { list-style: none; }
.reject summary::-webkit-details-marker { display: none; }
.reject[open] form { position: absolute; right: 0; top: 26px; z-index: 5; width: 280px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.12); white-space: normal; }
.badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.badge--draft { background: #eef1f4; color: #5d656d; }
.badge--pending { background: #fff4e5; color: #b45309; }
.badge--published { background: #e9f7ef; color: #146c43; }
.badge--rejected { background: #fdecec; color: #b42318; }
.badge--closed { background: #e8eef3; color: #014f77; }
.mini-bar { width: 120px; height: 6px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--sky); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); background: var(--white); border: 1.5px solid var(--line); }
.tabs a small { margin-left: 4px; opacity: .6; }
.tabs a.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.dash-search, .inline-form { display: flex; gap: 10px; }
.dash-search input, .inline-form input { flex: 1; }
.inline-form--compact input { padding: 8px 12px; font-size: 15px; }
.inline-form--compact { align-items: center; }

/* Workshop form */
.wf { display: flex; flex-direction: column; gap: 20px; }
.dash--narrow:has(> .wf) { max-width: 1280px; padding-inline: clamp(16px, 3vw, 40px); }
.wf > .dpanel { min-width: 0; }
.wf__actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,.94); border: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(1,79,119,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wf__actions .select select { padding-top: 13px; padding-bottom: 13px; }
.cover-preview { display: flex; flex-direction: column; gap: 10px; }
.cover-preview img { width: 100%; max-width: 420px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.fee-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 16px 18px; border-radius: 14px; background: #f1f8fc; color: var(--ink); }
.fee-intro b { color: var(--blue); font: 700 24px var(--en); }
.fee-intro small { color: var(--muted); font-size: 13px; }
.fee-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fee-option { padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); }
.fee-option:has(input:checked) { border-color: var(--sky); background: #f1f8fc; }
.fee-option > span { display: flex; flex-direction: column; gap: 3px; }
.fee-option > span small { color: var(--muted); font-size: 12px; }
.danger-row { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-summary { gap: 12px; }
.payment-line { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.payment-line b { color: var(--ink); }
.payment-line--total { padding-top: 16px; border-bottom: 0; font-weight: 700; }
.payment-line--total b { font: 700 30px var(--en); color: var(--blue); }
.bank-detail { display: flex; flex-direction: column; gap: 4px; width: fit-content; padding: 18px 24px; border: 1px solid #b8d7e9; border-radius: 16px; background: #f1f8fc; }
.bank-detail strong { font: 700 clamp(23px, 3vw, 32px) var(--en); color: var(--blue); letter-spacing: .5px; }
.bank-detail span { color: var(--muted); }
.bank-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.bank-form .btn { grid-column: 1 / -1; justify-self: start; }
.fee-review { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.fee-review__head, .fee-review__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.fee-review__head b { display: block; color: var(--ink); font-size: 18px; }
.fee-review__head small { display: block; margin-top: 3px; color: var(--muted); }
.fee-review__head a { color: var(--blue); }
.fee-review__breakdown { display: flex; flex-wrap: wrap; gap: 8px; }
.fee-review__breakdown > span, .fee-review__breakdown > strong { display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 11px; border-radius: 9px; background: #f1f8fc; font-size: 13px; }
.fee-review__breakdown b, .fee-review__breakdown > strong { color: var(--blue); }
.quote-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.quote-form .field { flex: 1 1 180px; }
.quote-form .btn { margin-bottom: 1px; }
.fee-review__actions { justify-content: flex-start; align-items: start; }
.fee-review .inline-form { flex-wrap: wrap; }
.fee-review .inline-form input { min-width: 180px; }
.maintenance-control { gap: 18px; }
.maintenance-control__status { display: flex; align-items: center; gap: 16px; }
.maintenance-control__status small { color: var(--muted); font-size: 13px; }
.maintenance-control__status h2 { margin: 3px 0 0; }
.maintenance-control__dot { width: 18px; height: 18px; flex: none; border-radius: 50%; background: #29a36a; box-shadow: 0 0 0 7px #e9f7ef; }
.maintenance-control__dot.is-on { background: #e18424; box-shadow: 0 0 0 7px #fff3e4; }
.maintenance-control__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.payment-reject { display: flex !important; gap: 6px; }
.payment-reject input { width: 150px; padding: 6px 8px; font-size: 12px; }
.member-pay-link { display: inline-block; margin-top: 8px; color: var(--blue); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .auth__split { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .stats--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .site-head.is-open .menu .menu__user { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 16px 12px 4px; border-top: 1px solid rgba(255,255,255,.14); font-weight: 600; font-size: 15px; color: #fff; }
  .site-head.is-open .menu .menu__user > span:last-child { display: flex; flex-direction: column; gap: 2px; }
  .site-head.is-open .menu .menu__user small { font-weight: 400; font-size: 12.5px; color: rgba(255,255,255,.7); }
  .site-head.is-open .menu form.menu__cta { display: block; margin-top: 12px; }
  .site-head.is-open .menu a.menu__cta { display: inline-flex; }
}
@media (max-width: 640px) {
  .fee-options { grid-template-columns: 1fr; }
  .bank-form { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 26px; }
  .auth { padding-top: 32px; }
  .auth__card { padding: 28px 20px; }
  .dpanel { padding: 22px 18px; }
  .dpanel .table-wrap { margin: 0 -18px -22px; }
  .queue-item { flex-direction: column; align-items: flex-start; }
  .ticket-code b { font-size: 30px; }
  .wf__actions { justify-content: stretch; }
  .wf__actions .btn, .wf__actions .select { flex: 1 1 100%; }
  .wf__actions .select select { width: 100%; }
}
@media print {
  .site-head, .site-foot, .actions-row, .flash-wrap { display: none !important; }
  body { background: #fff; }
}
.member-page { padding-bottom: 70px; }
.member-profile-link { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 600; font-size: 14px; }
.member-profile-link:hover { color: var(--sky); }
.member-list { display: grid; gap: 16px; }
.member-item { display: flex; justify-content: space-between; gap: 24px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.member-item h2 { margin: 6px 0; font-size: 22px; color: var(--ink); }
.member-item h2 a:hover { color: var(--sky); }
.member-item__ticket { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 180px; }
.member-item__ticket b { font-size: 22px; color: var(--blue); }
.member-item__ticket small { color: var(--muted); }
.member-email { padding: 11px 13px; border-radius: 10px; background: var(--mist); font-size: 14px; }
.member-booked { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: #e9f7ef; color: #146c43; }
.member-claim { margin-top: 10px; }
.member-claim .inline-form { margin-top: 2px; }
@media (max-width: 640px) { .member-item { flex-direction: column; padding: 20px; } .member-item__ticket { align-items: flex-start; } }

/* Profile (all roles) */
.profile__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 20px; }
.profile__card { align-items: center; text-align: center; gap: 12px; padding-top: 32px; }
.profile__photo .avatar { box-shadow: 0 0 0 6px var(--sky-soft, #e8f4fb); }
.profile__who b { display: block; font-size: 19px; color: var(--ink); }
.profile__who span { display: block; margin-top: 2px; font-size: 13px; color: var(--sky); font-weight: 600; }
.profile__upload { position: relative; overflow: hidden; cursor: pointer; margin-top: 6px; }
.profile__upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.profile__card > small { font-size: 12px; line-height: 1.5; }
.profile__card .check-line { font-size: 14px; color: var(--muted); }
.profile__meta { width: 100%; margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.profile__meta div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13.5px; }
.profile__meta dt { color: var(--muted); }
.profile__meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: right; color: var(--ink); font-weight: 500; }
.profile__link { align-self: stretch; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--blue); }
.profile__form h2 { font-size: 20px; color: var(--ink); }
.profile__actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.org-about { align-items: flex-start; }
.org-about a { display: inline-block; margin-top: 2px; font: 500 14px var(--en); color: var(--sky); }
.org-about a:hover { text-decoration: underline; }
.org-about p { line-height: 1.75; }
@media (max-width: 860px) {
  .profile__layout { grid-template-columns: 1fr; }
  .profile__actions .btn { width: 100%; }
}
.head-user__name { max-width: 150px; white-space: nowrap; }
.head-user__name, .head-user__name small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1480px) {
  .head-user__name { display: none; }
}
.org-more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--blue); border-bottom: 2px solid var(--sky); padding-bottom: 4px; }
.org-more:hover { color: var(--sky); }

/* Admin: category editor */
.cat-admin { display: grid; gap: 14px; margin-top: 18px; }
.cat-edit { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; scroll-margin-top: 140px; }
.cat-edit__order { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cat-edit__order span { font: 700 15px var(--en); color: var(--sky); margin-bottom: 4px; }
.cat-edit__order .link-btn { font-size: 18px; padding: 2px 8px; }
.cat-edit__order .link-btn[disabled] { opacity: .25; cursor: default; }
.cat-edit__form { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
.cat-edit__media { display: flex; flex-direction: column; gap: 8px; }
.cat-edit__preview { position: relative; overflow: hidden; display: flex; align-items: flex-end; aspect-ratio: 3 / 2; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #e7f3fa, #f6fafc) center / cover no-repeat; border: 1px dashed #c9dbe6; color: var(--blue); font: 700 18px var(--en); }
.cat-edit__preview.has-image { border: 0; color: #fff; }
.cat-edit__preview.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(1,34,54,.8)); }
.cat-edit__preview span { position: relative; }
.cat-edit__upload { position: relative; overflow: hidden; cursor: pointer; }
.cat-edit__upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cat-edit__media small { font-size: 12px; line-height: 1.5; }
.cat-edit__fields { display: flex; flex-direction: column; gap: 14px; }
.cat-edit__meta { flex: 0 0 140px; }
.cat-edit__meta b { padding: 11px 0; font: 700 22px var(--en); color: var(--blue); }
.cat-edit__actions { display: flex; align-items: center; gap: 18px; }
.cat-edit__delete { position: absolute; right: 28px; top: 22px; }
@media (max-width: 860px) {
  .cat-edit { grid-template-columns: 1fr; }
  .cat-edit__order { flex-direction: row; justify-content: flex-start; gap: 8px; }
  .cat-edit__order span { margin: 0 6px 0 0; }
  .cat-edit__form { grid-template-columns: 1fr; }
  .cat-edit__meta { flex: none; }
  .cat-edit__delete { right: 18px; top: 18px; }
}

/* Price options — workshop form */
.price-tiers { display: flex; flex-direction: column; gap: 8px; }
.price-tiers__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-tiers__head span { font-weight: 600; font-size: 14px; color: var(--ink); }
.price-tiers__head small { font-size: 12.5px; color: var(--muted); }
.price-tiers__rows { display: grid; gap: 8px; }
.price-tier { display: grid; grid-template-columns: minmax(0, 1fr) 170px 40px; gap: 8px; align-items: center; }
.price-tier input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; outline: 0; }
.price-tier input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41,146,208,.15); }
.price-tier__amount { position: relative; }
.price-tier__amount i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.price-tier__amount input { padding-left: 30px; font-family: var(--en); font-weight: 600; }
.price-tier__remove { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--mist); cursor: pointer; font-size: 20px; color: var(--muted); }
.price-tier__remove:hover { background: #fdecec; color: #b42318; }
.price-tier__remove[hidden] { display: block; visibility: hidden; }
.price-tiers__add { align-self: flex-start; font-weight: 600; }
.price-tiers.has-error .price-tier input { border-color: #e5484d; }
@media (max-width: 640px) {
  .price-tier { grid-template-columns: minmax(0, 1fr) 40px; }
  .price-tier input[name="price_label[]"] { grid-column: 1 / -1; }
}

/* Price options — workshop page */
.price__from { margin-right: 2px; font: 500 14px var(--th); color: var(--muted); }
.card .price__from { font-size: 12px; }
.tier-list { margin: 14px 0 4px; padding: 0; list-style: none; display: grid; gap: 6px; }
.tier-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--mist); font-size: 14.5px; }
.tier-list b { font-family: var(--en); color: var(--blue); }
.tier-pick { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.tier-pick legend { margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.tier-pick__opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.tier-pick__opt:hover { border-color: var(--sky); }
.tier-pick__opt:has(input:checked) { border-color: var(--blue); background: var(--sky-soft); }
.tier-pick__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.tier-pick__opt span { font-weight: 600; font-size: 15px; color: var(--ink); }
.tier-pick__opt b { font-family: var(--en); color: var(--blue); }

/* Instructor block — workshop form */
.wf-instructor { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.wf-instructor h3 { margin-bottom: 14px; font-size: 17px; color: var(--ink); }
.wf-instructor__grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; }
.wf-instructor__photo { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wf-instructor__photo .avatar { box-shadow: 0 0 0 6px var(--sky-soft); }
.wf-instructor__upload { position: relative; overflow: hidden; cursor: pointer; padding: 9px 16px; font-size: 14px; }
.wf-instructor__upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wf-instructor__photo small { font-size: 12px; line-height: 1.5; }
.wf-instructor__fields { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 640px) {
  .wf-instructor__grid { grid-template-columns: 1fr; }
}

/* Certificates */
.cert-hint { margin: 4px 0 14px; font-size: 14px; line-height: 1.6; }
.member-cert-link { margin-top: 10px; padding: 9px 16px; font-size: 14px; }
.cert-lookup .eyebrow { margin-bottom: -6px; }
.cert-lookup input[name="c"] { font-family: var(--en); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* Certificate setup in the workshop form */
.cert-setup h2 small { margin-left: 8px; font-weight: 400; font-size: 13px; color: var(--muted); }
.cert-setup__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.cert-setup__signers { display: grid; gap: 14px; }
.signer { margin: 0; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.signer legend { padding: 0 6px; font-weight: 700; font-size: 14px; color: var(--blue); }
.signer__sig { display: flex; flex-direction: column; gap: 8px; }
.signer__preview { display: grid; place-items: center; height: 74px; padding: 6px; border: 1.5px dashed #cfdde6; border-radius: 12px; background: #fffdf8; }
.signer__preview { overflow: hidden; }
.signer__preview img { display: block; max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.signer__preview span { font-size: 13px; color: #98a2ab; }
.signer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.signer__actions .btn { padding: 8px 14px; font-size: 13.5px; }
.signer__upload { position: relative; overflow: hidden; cursor: pointer; }
.signer__upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.signer__remove { font-size: 13.5px; }
.signer small.muted { font-size: 12px; }
.sig-pad { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); }
.sig-pad[hidden] { display: none; }
.sig-pad canvas { width: 100%; aspect-ratio: 3 / 1; border-radius: 10px; background: #fff repeating-linear-gradient(0deg, transparent 0 calc(66% - 1px), #dbe5eb calc(66% - 1px) 66%, transparent 66%); touch-action: none; cursor: crosshair; }
.sig-pad__bar { display: flex; align-items: center; gap: 12px; }
.sig-pad__bar small { flex: 1; font-size: 12px; color: var(--muted); }
.sig-pad__bar .btn { padding: 8px 14px; font-size: 13.5px; }
.cert-setup__preview { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 10px; }
.cert-setup__preview-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.cert-setup__preview-head a { font-weight: 600; color: var(--sky); }
.cert-mini { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 14px 36px rgba(1,40,62,.16); }
.cert-mini .cert { position: absolute; left: 0; top: 0; transform-origin: top left; box-shadow: none; }
.cert-setup__preview > small { font-size: 12px; }
@media (max-width: 980px) {
  .cert-setup__grid { grid-template-columns: 1fr; }
  .cert-setup__preview { position: static; order: -1; }
}
.wf-error-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }

/* Account type & instructor mode choices */
.acct-type { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-type legend { margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.acct-type__opt { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.acct-type__opt:hover { border-color: var(--sky); }
.acct-type__opt:has(input:checked) { border-color: var(--blue); background: var(--sky-soft); }
.acct-type__opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.acct-type__opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-type__opt b { font-size: 15px; color: var(--ink); }
.acct-type__opt small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.acct-type--inline { margin-bottom: 14px; }
[data-for][hidden] { display: none !important; }
.wf-instructor__note { margin: -6px 0 12px; font-size: 14px; }
.self-instructor { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 14px; background: var(--mist); }
.self-instructor[hidden] { display: none; }
.self-instructor b { display: block; font-size: 16px; color: var(--ink); }
.self-instructor > div > span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--sky); font-weight: 600; }
.self-instructor p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.self-instructor a { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
.wf-instructor__grid[hidden] { display: none; }
@media (max-width: 520px) { .acct-type { grid-template-columns: 1fr; } }
.auth__card [data-for]:not([hidden]) { display: flex; flex-direction: column; gap: 16px; }

/* Certificate on/off switch */
.cert-setup__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #cfd8de; transition: background .2s; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px rgba(41,146,208,.25); }
.switch__text { display: flex; flex-direction: column; }
.switch__text b { font-size: 15px; color: var(--ink); }
.switch__text small { font-size: 12.5px; color: var(--muted); }
.switch__text small[hidden] { display: none; }
.cert-setup.is-off { background: var(--mist); }
.cert-setup__grid[hidden] { display: none; }
.cert-setup__head + .cert-setup__grid { margin-top: 4px; }

/* Admin: add user + free credits */
.users-tools { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 18px; }
.add-user > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.add-user > summary::-webkit-details-marker { display: none; }
.add-user > summary b { font-size: 16px; color: var(--blue); }
.add-user > summary small { font-size: 13px; color: var(--muted); }
.add-user__form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.add-user__form [hidden] { display: none !important; }
.add-user__actions { display: flex; justify-content: flex-end; }
.credits-default { gap: 12px; }
.credits-default b { display: block; font-size: 15px; color: var(--ink); }
.credits-default small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.credits-default__input { display: flex; align-items: center; gap: 10px; }
.credits-default__input input, .credits-edit input { width: 76px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: 600 15px var(--en); text-align: center; }
.credits-edit { display: flex; align-items: center; gap: 8px; }
.credits-edit input { width: 64px; padding: 6px 8px; font-size: 14px; }
@media (max-width: 960px) { .users-tools { grid-template-columns: 1fr; } }

/* Dashboard menu: main sections + grouped "settings" dropdown + badges */
.dash-nav { position: relative; z-index: 20; }
.dash-nav .wrap.dash-nav__inner { display: flex; align-items: center; gap: 8px; overflow: visible; }
.dash-nav__main { flex: 1 1 auto; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.dash-nav__main::-webkit-scrollbar { display: none; }
.dash-nav__main a { display: inline-flex; align-items: center; gap: 7px; }
.dash-nav__badge { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #e5484d; color: #fff; font: 700 11.5px/1.5 var(--en); text-align: center; }
.dash-nav__more { position: relative; flex: none; }
.dash-nav__more > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; }
.dash-nav__more > summary::-webkit-details-marker { display: none; }
.dash-nav__more > summary:hover, .dash-nav__more[open] > summary { background: var(--mist); color: var(--blue); }
.dash-nav__more.is-active > summary { color: var(--blue); background: var(--sky-soft); }
.dash-nav__more > summary b { font-weight: 700; }
.dash-nav__more svg { width: 11px; height: 8px; transition: transform .2s; }
.dash-nav__more[open] svg { transform: rotate(180deg); }
.dash-nav__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(1,30,48,.16); }
.dash-nav .dash-nav__menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; border-bottom: 0; font-weight: 500; font-size: 14.5px; color: var(--text); }
.dash-nav .dash-nav__menu a:hover { background: var(--mist); color: var(--blue); }
.dash-nav .dash-nav__menu a.is-active { background: var(--sky-soft); color: var(--blue); font-weight: 600; }
.dash-nav__note { padding: 1px 8px; border-radius: 999px; background: #fff4e5; color: #b54708; font-size: 11.5px; font-weight: 600; }
.dash-nav .dash-nav__cta { flex: none; padding: 8px 16px; font-size: 14px; color: #fff; border-bottom: 0; }
.dash-nav .dash-nav__cta.is-active { box-shadow: 0 0 0 3px var(--sky-soft); }
@media (max-width: 640px) {
  .dash-nav__main a { padding: 13px 12px; font-size: 14px; }
  .dash-nav__more > summary { padding: 8px 10px; font-size: 14px; }
  .dash-nav__current { display: none; }
  .dash-nav .dash-nav__cta { padding: 7px 12px; font-size: 13px; }
}

/* Admin users list + edit page */
.users-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.users-bar .tabs { margin: 0; }
.users-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.users-search select, .users-search input { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
.users-search input { width: 240px; }
.users-search .btn { padding: 9px 16px; font-size: 14px; }
.user-cell { display: flex; align-items: center; gap: 10px; color: inherit !important; }
.user-cell span { min-width: 0; }
.user-cell b { color: var(--ink); }
.user-cell:hover b { color: var(--blue); text-decoration: underline; }
.role-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--mist); color: var(--text); white-space: nowrap; }
.role-pill--admin { background: #fde8e8; color: #b42318; }
.role-pill--organizer { background: var(--sky-soft); color: var(--blue); }
.type-pill { display: inline-block; padding: 2px 9px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.type-pill--company { border-color: var(--blue); color: var(--blue); }
.type-select { appearance: none; -webkit-appearance: none; padding-right: 24px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235d656d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center; font-family: inherit; cursor: pointer; }
.type-select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.user-actions { justify-content: flex-end; }
.btn--sm { padding: 7px 14px; font-size: 13.5px; }
.users-empty { padding: 28px !important; text-align: center; }
.user-edit { display: flex; flex-direction: column; gap: 16px; }
.user-edit__head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px; }
.user-edit__who { flex: 1 1 260px; min-width: 0; }
.user-edit__who h1 { font-size: 24px; color: var(--ink); }
.user-edit__who h1 small { font-size: 14px; font-weight: 400; color: var(--muted); }
.user-edit__who p { margin-top: 2px; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.user-edit__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.user-edit__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 22px; margin: 0; }
.user-edit__stats dt { font-size: 12px; color: var(--muted); }
.user-edit__stats dd { margin: 0; font: 700 18px var(--en); color: var(--ink); }
.user-edit__form h2 { font-size: 18px; color: var(--ink); }
.user-edit__form [hidden] { display: none !important; }
.user-edit__hint { font-size: 13px; }
.user-edit__actions { display: flex; justify-content: flex-end; gap: 10px; }
.user-edit__pw-opts { justify-content: flex-end; padding-bottom: 10px; }
@media (max-width: 720px) {
  .users-search input { width: 100%; flex: 1 1 160px; }
  .user-edit__stats { grid-template-columns: repeat(2, auto); }
}
.credits-cell, .users-bar ~ .table-wrap td:nth-child(5) { white-space: nowrap; }
.user-actions { flex-wrap: nowrap; }
.user-row td:last-child { white-space: nowrap; }

/* Event type picker */
.type-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.type-pick__opt { position: relative; cursor: pointer; }
.type-pick__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-pick__opt span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; color: var(--text); transition: border-color .15s, background .15s, color .15s; }
.type-pick__opt:hover span { border-color: var(--sky); }
.type-pick__opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.type-pick__opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(41,146,208,.25); }
.wf .type-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wf .type-pick__opt { min-width: 0; }
.wf .type-pick__opt span { display: flex; align-items: center; justify-content: center; min-height: 46px; height: 100%; padding: 10px 12px; border-radius: 12px; text-align: center; line-height: 1.45; }
@media (min-width: 1100px) {
  .wf .type-pick { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wf .type-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wf .wf__actions { position: static; padding: 12px; box-shadow: none; }
  .wf .wf__actions .btn { padding: 11px 14px; }
}

/* ---------- Fan meeting: zones + artists (Event form) ---------- */
.price-tier__zone { grid-column: 1 / -1; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
.price-tier__zone[hidden] { display: none; }
.price-tier__zone label { display: flex; flex-direction: column; gap: 4px; }
.price-tier__zone small { font-size: 12.5px; color: var(--muted); }
.price-tier__zone textarea { width: 100%; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 14.5px; line-height: 1.55; resize: vertical; outline: 0; }
.price-tier__zone textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41,146,208,.15); }
.price-tiers.is-fan .price-tier { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--mist); }
.wf-artists { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.wf-artists h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.wf-artists__rows { display: grid; gap: 8px; }
.wf-artist { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.wf-artist > input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; outline: 0; }
.wf-artist > input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41,146,208,.15); }
.wf-artists.has-error .wf-artist > input { border-color: #e5484d; }
.wf-artist__photo { position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 1.5px dashed var(--line); background: #fff; cursor: pointer; }
.wf-artist__photo:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.wf-artist__photo span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 20px; color: var(--muted); }
.wf-artist__photo img { width: 100%; height: 100%; object-fit: cover; }
.wf-artist__photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 640px) {
  .price-tier__zone { grid-template-columns: minmax(0, 1fr); }
  .wf-artist { grid-template-columns: 52px minmax(0, 1fr) 40px; }
  .wf-artist > input[name="artist_role[]"] { grid-column: 2 / 3; }
}

/* ---------- Fan meeting: Event page ---------- */
.artists { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 16px; }
.artists li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.artists .avatar { margin-bottom: 6px; }
.artists b { font-size: 16px; color: var(--ink); }
.artists__role { font-size: 13.5px; color: var(--muted); }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.zone { padding: 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.zone header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.zone header b { font-size: 18px; color: var(--ink); }
.zone__price { font-family: var(--en); font-weight: 700; font-size: 18px; color: var(--blue); white-space: nowrap; }
.zone__seats { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.zone.is-full { opacity: .6; }
.zone.is-full .zone__seats { color: #b42318; font-weight: 600; }
.checks--one { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.checks--one li { font-size: 14.5px; }
.tier-list small, .tier-pick__opt small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.tier-pick__opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* ---------- Entry ticket (ticket.php) ---------- */
.checkin-page { padding-bottom: 70px; }
.organizer-demo-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px 0; }
.organizer-demo-link h2 { margin: 2px 0 5px; }
.organizer-demo-link .muted { margin-bottom: 0; }
.organizer-demo-link .btn { flex: none; }
.checkin-demo-panel { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.checkin-demo-panel__qr { width: 150px; height: 150px; flex: none; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.checkin-demo-panel__qr svg { display: block; width: 100%; height: 100%; }
.checkin-demo-panel h2 { margin: 2px 0 5px; }
.checkin-demo-panel .muted { margin-bottom: 12px; }
.checkin-demo-panel small { color: var(--muted); }
.checkin-demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
@media (max-width: 640px) { .organizer-demo-link, .checkin-demo-panel { flex-direction: column; align-items: flex-start; } }
.checkin-counter { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; border-radius: 16px; background: var(--sky-soft); color: var(--blue); white-space: nowrap; }
.checkin-counter b { font: 700 34px var(--en); }
.checkin-counter span { font-size: 14px; }
.checkin-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .8fr); gap: 20px; align-items: start; }
.checkin-scan h2 { margin-bottom: 4px; }
.checkin-video { position: relative; display: grid; place-items: center; min-height: 270px; margin: 18px 0; overflow: hidden; border-radius: 16px; background: #092e42; color: #fff; text-align: center; }
.checkin-video video { display: block; width: 100%; max-height: 420px; min-height: 270px; object-fit: cover; }
.checkin-video > span { position: absolute; padding: 12px; }
.checkin-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.checkin-controls [hidden], .checkin-result [hidden], .checkin-video [hidden] { display: none !important; }
.checkin-file { position: relative; overflow: hidden; cursor: pointer; }
.checkin-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.checkin-manual { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.checkin-manual label { display: block; margin-bottom: 8px; font-weight: 600; }
.checkin-manual > div { display: flex; gap: 10px; }
.checkin-manual input { flex: 1; min-width: 0; }
.checkin-result { min-height: 300px; }
.checkin-result h2 { margin: 16px 0 4px; }
.checkin-result .en { color: var(--blue); font-weight: 700; letter-spacing: 1px; }
.checkin-status { padding: 15px 16px; border-radius: 12px; background: var(--sky-soft); color: var(--blue); font-weight: 700; }
.checkin-status--ready { background: #fff4e0; color: #8a5100; }
.checkin-status--success { background: #e7f6ec; color: #18794e; }
.checkin-status--invalid, .checkin-status--cancelled, .checkin-status--unpaid, .checkin-status--error { background: #ffefef; color: #b42318; }
.checkin-status--already, .checkin-status--demo { background: #eef0f2; color: #45545f; }
.checkin-result button { margin-top: 18px; }
.checkin-help { margin-top: 20px; font-size: 13px; }
@media (max-width: 760px) { .checkin-grid { grid-template-columns: 1fr; } .checkin-counter { margin-top: 10px; } }
@media (max-width: 480px) { .checkin-manual > div { flex-direction: column; } .checkin-manual .btn { width: 100%; } }
.ticket-page { padding: 40px 16px 70px; max-width: 860px; }
.ticket { border-radius: 24px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(1, 79, 119, .12); }
.ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 26px; background: var(--blue); color: #fff; }
.ticket__brand { display: flex; align-items: center; gap: 8px; font-family: var(--en); font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.ticket__brand img { width: 28px; height: auto; }
.ticket__brand span { color: #7cc3ec; margin-left: 4px; }
.ticket__kicker { font-family: var(--en); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; opacity: .85; text-align: right; }
.ticket__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.ticket__info { padding: 26px; }
.ticket__info h1 { font-size: 26px; line-height: 1.3; color: var(--ink); }
.ticket__rows { margin: 18px 0 0; display: grid; gap: 10px; }
.ticket__rows div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.ticket__rows dt { color: var(--muted); }
.ticket__rows dd { margin: 0; color: var(--ink); font-weight: 500; }
.ticket__rows dd b { color: var(--blue); }
.ticket__stub { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 22px; border-left: 2px dashed var(--line); background: #f8fafc; text-align: center; }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); border: 1px solid var(--line); }
.ticket__stub::before { top: -12px; }
.ticket__stub::after { bottom: -12px; }
.ticket__qr { width: 200px; height: 200px; padding: 8px; border-radius: 14px; background: #fff; }
.ticket__qr svg { display: block; width: 100%; height: 100%; }
.ticket__qr--off { display: grid; place-items: center; padding: 18px; border: 2px dashed var(--line); background: transparent; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ticket__state { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #e7f6ec; color: #18794e; }
.ticket--pending .ticket__state { background: #fff4e0; color: #9a5b00; }
.ticket--void .ticket__state, .ticket--online .ticket__state { background: #eef0f2; color: var(--muted); }
.ticket--used .ticket__state { background: var(--sky-soft); color: var(--blue); }
.ticket--demo .ticket__state { background: #fff4e0; color: #9a5b00; }
.ticket-demo-notice { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #fff4e0; color: #8a5100; font-weight: 700; text-align: center; }
.ticket--void .ticket__info { opacity: .55; }
.ticket__holder, .ticket__code { display: flex; flex-direction: column; gap: 2px; }
.ticket__holder small, .ticket__code small { font-size: 12px; color: var(--muted); }
.ticket__holder b { font-size: 16px; color: var(--ink); }
.ticket__code b { font-size: 20px; letter-spacing: 2px; color: var(--blue); }
.ticket__foot { padding: 14px 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ticket__foot p + p { margin-top: 4px; }
.ticket-actions { justify-content: center; margin-top: 22px; }
@media (max-width: 680px) {
  .ticket-page { padding-top: 20px; }
  .ticket__body { grid-template-columns: minmax(0, 1fr); }
  .ticket__stub { border-left: 0; border-top: 2px dashed var(--line); }
  .ticket__stub::before, .ticket__stub::after { display: none; }
  .ticket__info h1 { font-size: 22px; }
  .ticket__qr { width: min(240px, 70vw); height: min(240px, 70vw); }
}
@media print {
  .ticket { box-shadow: none; }
  .ticket__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Check-in scanner: options, warnings, recent list, scan flash ---------- */
.checkin-offday { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 10px; background: #fff4e0; color: #8a5100; font-size: 13.5px; font-weight: 600; }
.checkin-counter > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.checkin-counter small { flex-basis: 100%; font-size: 12px; opacity: .8; white-space: normal; }
.checkin-options { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; }
.checkin-warning { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #8a5100; font-size: 14px; font-weight: 600; }
.checkin-zone { display: inline-block; margin: 4px 0 0; padding: 3px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; }
.checkin-result .checkin-undo { margin-top: 10px; }
.checkin-recent { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkin-recent h3 { margin-bottom: 8px; font-size: 15px; color: var(--ink); }
.checkin-recent ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checkin-recent li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--mist); font-size: 14px; }
.checkin-recent li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.checkin-recent li span { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.checkin-recent li time { grid-column: 2; grid-row: 1 / 3; align-self: center; font-family: var(--en); font-weight: 600; color: var(--blue); }
.checkin-flash { position: absolute; inset: 0; pointer-events: none; border: 0 solid transparent; border-radius: 16px; transition: border-width .15s; }
.checkin-flash.is-good { border: 8px solid #2fb36b; }
.checkin-flash.is-bad { border: 8px solid #e5484d; }
.checkin-flash.is-info { border: 8px solid #f0a020; }
.ticket__hint { font-size: 12px; color: var(--muted); }
.ticket__checkins { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12.5px; color: #18794e; font-weight: 600; }

/* Requests and quotes for organizer add-ons. */
.addon-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0; }
.addon-picker__item { padding:18px; border:1px solid #ccdde7; border-radius:12px; background:#f6fafc; }
.addon-picker__item .check-line { align-items:start; }
.addon-picker__item .check-line small { display:block; color:#5a7180; line-height:1.7; margin-top:5px; }
.addon-picker__qty { margin:12px 0 0; max-width:130px; }
.addon-picker__qty input { padding:8px 12px; }
.payment-line small { display:block; color:#617d8d; font-size:12px; line-height:1.7; margin-top:4px; }
.payment-line > span { min-width:0; overflow-wrap:anywhere; }
.payment-line > b { flex:none; }
.quote-state { color:var(--blue); font-weight:600; margin:15px 0; }
.quote-note { padding:18px; background:#edf6fb; border-radius:12px; margin:16px 0; font-size:14px; line-height:1.9; overflow-wrap:anywhere; }
.quote-editor { margin:20px 0 0; border-top:1px solid var(--line); padding-top:16px; }
.quote-editor > summary { cursor:pointer; color:var(--blue); font-weight:600; padding:6px 0; }
.quote-editor .quote-form { margin-top:18px; }
.quote-form__wide { grid-column:1 / -1; }
.quote-response form > .btn { margin-top:15px; }
.quote-history { padding:18px 0; border-bottom:1px solid var(--line); font-size:14px; line-height:1.8; }
.quote-history small { display:block; color:var(--muted); }
.notification--unread { border-left:4px solid var(--sky); }
.notification small { color:var(--muted); }
.notification h2 { margin:12px 0; }
.notification p { font-size:15px; line-height:1.9; overflow-wrap:anywhere; }
.notification__actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
@media(max-width:640px) { .addon-picker { grid-template-columns:1fr; } .payment-line { gap:14px; } .quote-form { grid-template-columns:1fr; } }
.quote-editor .quote-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:18px; }
.quote-editor .quote-form .field { margin:0; min-width:0; }
.quote-editor .quote-form .check-line { grid-column:1 / -1; }
.quote-editor .quote-form .btn { width:fit-content; }
@media(max-width:640px) { .quote-editor .quote-form { grid-template-columns:1fr; } }
/* Staff permissions and teams follow the existing community dashboard. */
.access-cards { display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:18px; }
.access-card { display:flex;flex-direction:column;gap:20px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#f4f9fc;color:var(--ink); }
.access-card:hover { border-color:var(--sky);background:var(--sky-soft); }
.access-card span { color:var(--blue);font-size:14px; }
.access-options { border:0;padding:0;margin:24px 0;display:grid;gap:12px; }
.access-options legend { font-weight:700;margin-bottom:12px; }
.access-team { padding:24px 0;border-top:1px solid var(--line);margin-top:20px; }
.access-actions { display:flex;flex-wrap:wrap;gap:12px;margin-top:18px; }
.access-event { display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px; }
.access-wide { width:100%; }
.role-pill--staff { background:#e7f2fa;color:#014f77; }
.role-pill--organizer_staff { background:#e9f7ef;color:#146c43; }
@media(max-width:600px){.access-event{align-items:flex-start;flex-direction:column}.access-cards{grid-template-columns:1fr}}
