/* 11ONE – Admin-Bereich (Dark) */

.admin-main { padding-top: 32px; padding-bottom: 80px; }

.mode-badge { font-family: var(--mono); font-size: 11px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--red-soft); color: #ff7a6f; }
.mode-badge.is-demo { background: rgba(255, 196, 0, .12); color: #ffcc33; }

.login { max-width: 420px; margin: 8vh auto 0; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.login h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.05em; }
.login p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }

.admin-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.admin-head h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.stat span { display: block; color: var(--muted); margin-bottom: 10px; }
.stat b { font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat--accent { background: var(--red); border-color: var(--red); }
.stat--accent span { color: rgba(255, 255, 255, .8); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; overflow: hidden; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.panel__head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.panel__body { padding: 20px 24px; }

.checkin { display: flex; gap: 10px; flex-wrap: wrap; }
.checkin input { flex: 1 1 220px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font-family: var(--mono); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.checkin input:focus { outline: none; border-color: var(--red); }
.checkin-result { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: 15px; display: none; }
.checkin-result.is-ok { display: block; background: rgba(47, 210, 122, .12); color: #5fe39a; }
.checkin-result.is-warn { display: block; background: rgba(255, 196, 0, .12); color: #ffcc33; }
.checkin-result.is-bad { display: block; background: rgba(255, 77, 61, .12); color: #ff8a7e; }
.checkin-result b { display: block; font-size: 18px; margin-bottom: 2px; }

.scanner { margin-top: 14px; position: relative; border-radius: var(--r); overflow: hidden; background: #000; display: none; max-width: 480px; aspect-ratio: 1; outline: 3px solid transparent; transition: outline-color .2s; }
.scanner.is-on { display: block; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner::after { content: ''; position: absolute; inset: 20%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); transition: border-color .2s; }
.scanner__hint { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 1; text-align: center; font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.scanner.is-ok { outline-color: var(--ok); }
.scanner.is-ok::after { border-color: var(--ok); }
.scanner.is-warn { outline-color: #ffcc33; }
.scanner.is-warn::after { border-color: #ffcc33; }
.scanner.is-bad { outline-color: var(--danger); }
.scanner.is-bad::after { border-color: var(--danger); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.data th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--muted); padding: 12px 24px; border-bottom: 1px solid var(--line-soft); }
table.data td { padding: 16px 24px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 255, 255, .02); }
.cell-title b { display: block; font-weight: 600; }
.cell-title span { font-size: 13px; color: var(--muted); }
.cell-date { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.cell-sold { min-width: 180px; }
.cell-sold .capacity__bar { max-width: 140px; }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; }
.type-split { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status--live { background: rgba(47, 210, 122, .14); color: #5fe39a; }
.status--draft { background: var(--surface-3); color: var(--ink-2); }
.status--past { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.status--sold { background: var(--red-soft); color: #ff7a6f; }

.icon-btn { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn--danger:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn[disabled] { opacity: .3; cursor: not-allowed; }

dialog.wide { width: min(760px, calc(100vw - 24px)); }

.ticket-list { width: 100%; border-collapse: collapse; font-size: 14px; }
.ticket-list th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.ticket-list td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); }
.ticket-list .code { font-family: var(--mono); white-space: nowrap; }

.types-editor { margin: 4px 0 16px; padding: 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-soft); }
.types-editor__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.type-row { display: grid; grid-template-columns: 1.4fr .7fr .7fr auto; gap: 8px; align-items: end; padding: 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.type-row .field { margin: 0; }
.type-row .field input { min-height: 42px; padding: 8px 10px; font-size: 15px; }
.type-row .field--desc { grid-column: 1 / -1; }
.type-row .sold { grid-column: 1 / -1; margin: -2px 0 0; font-size: 12px; color: var(--muted); }
.type-row .icon-btn { min-height: 42px; }
@media (max-width: 520px) { .type-row { grid-template-columns: 1fr 1fr; } .type-row .field--name { grid-column: 1 / -1; } }

.hint { font-size: 13px; color: var(--muted); margin: -8px 0 16px; }
.demo-bar { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); font-size: 14px; }

@media (max-width: 520px) { .nav .btn--ghost { display: none; } }
