[hidden] { display: none !important; }
.app-main { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 90px; }
.app-header .header-inner { height: 78px; }
.app-header .main-nav { gap: 24px; margin-right: 0; }
.app-heading { margin-bottom: 30px; }
.app-heading h1 { font-size: clamp(32px, 4vw, 49px); line-height: 1.3; letter-spacing: -.055em; margin: 14px 0; }
.app-heading > p:last-child { font-size: 14px; color: var(--muted); max-width: 660px; }
.app-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 28px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 28px; }
.panel + .panel { margin-top: 22px; }
.panel h2 { font-size: 24px; letter-spacing: -.04em; margin-bottom: 16px; }
.panel h3 { font-size: 17px; margin-bottom: 10px; }
.app-aside { position: sticky; top: 104px; }
.event-mini { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed var(--line); }
.event-mini > strong { font-size: 18px; display: block; margin-bottom: 9px; }
.event-mini p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.mini-price { font-family: Arial, sans-serif; font-size: 42px; font-weight: 800; letter-spacing: -2px; }
.mini-price small { font-family: var(--font); font-size: 12px; letter-spacing: 0; font-weight: 400; }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 19px; }
.field label { font-size: 13px; font-weight: 650; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select, .search-input { width: 100%; min-height: 49px; padding: 11px 13px; border: 1px solid #aebaa7; border-radius: 5px; background: #fffefa; color: var(--green); font: inherit; font-size: 15px; }
.field input:focus, .field textarea:focus, .search-input:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.field-hint { font-size: 11px; color: var(--muted); }
.optional-divider { border: 0; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
.optional-divider legend { font-size: 12px; color: var(--muted); padding-right: 12px; }
.check-line { display: flex; align-items: start; gap: 9px; font-size: 12px; margin: 7px 0 22px; }
.check-line input { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--green); margin: 3px 0 0; }
.button[disabled], button[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.button-secondary { background: var(--paper); color: var(--green); }
.button-danger { background: #9d392b; border-color: #9d392b; color: #fff; }
.button-full { width: 100%; }
.status-message { border-radius: 5px; font-size: 13px; padding: 13px 16px; margin: 15px 0; background: var(--sage); line-height: 1.8; }
.status-message.error { background: #fae7df; color: #873d2d; }
.status-message.success { background: #e3eddb; color: #27512f; }
.status-message.warning { background: #fff0cf; color: #79521c; }
.loading-block { padding: 30px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; font-size: 13px; }
.booking-reference { font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: 1px; font-size: 20px; font-weight: 700; margin: 8px 0 16px; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; padding: 5px 10px; border-radius: 30px; background: #f5e2b8; color: #74501d; white-space: nowrap; }
.status-pill.paid, .status-pill.active { background: #e2edda; color: #2c5332; }
.status-pill.redeemed { background: #e2e7ec; color: #445965; }
.status-pill.cancelled, .status-pill.expired { background: #f3e1da; color: #8b4635; }
.detail-list { margin: 18px 0; }
.detail-list > div { display: grid; grid-template-columns: 98px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font-size: 12px; color: var(--muted); }
.detail-list dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.payment-steps { padding-left: 20px; font-size: 13px; line-height: 1.9; }
.payment-steps li + li { margin-top: 9px; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row code { padding: 8px 12px; background: var(--sage); border-radius: 4px; font-size: 15px; overflow-wrap: anywhere; }
.small-button { background: transparent; border: 1px solid #acb9a2; border-radius: 4px; padding: 7px 11px; color: var(--green); font: inherit; font-size: 12px; }
.inline-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.privacy-note { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; font-size: 11px; color: var(--muted); line-height: 1.9; }
.ticket-shell { max-width: 620px; margin-inline: auto; }
.ticket-top { padding: 25px 28px; background: var(--green); color: var(--cream); border-radius: 12px 12px 0 0; }
.ticket-top .eyebrow { color: #bdcba8; }
.ticket-top h1 { font-size: 32px; margin-top: 14px; line-height: 1.4; letter-spacing: -1px; }
.ticket-body { background: var(--paper); border: 1px solid var(--green); border-top: 1px dashed #8b9c79; border-radius: 0 0 12px 12px; padding: 28px; }
.qr-box { display: flex; flex-direction: column; align-items: center; padding: 22px 0; gap: 13px; }
.qr-box img { width: 240px; height: 240px; max-width: 100%; background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.ticket-name { font-size: 22px; font-weight: 750; letter-spacing: -.5px; }
.ticket-url { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.ticket-blocked { text-align: center; border: 1px dashed var(--line); background: var(--cream); border-radius: 8px; padding: 25px; margin-top: 20px; }
.ticket-blocked > strong { display: block; margin-bottom: 8px; }
.admin-main { width: min(1400px, calc(100% - 48px)); }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-toolbar .app-heading { margin: 0; }
.admin-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { border: 1px solid var(--line); border-radius: 7px; background: var(--paper); padding: 20px; }
.stat-card strong { display: block; font-family: Arial, sans-serif; font-size: 32px; letter-spacing: -1px; margin-top: 7px; }
.stat-card span { font-size: 11px; color: var(--muted); }
.list-tools { display: flex; gap: 14px; margin-bottom: 18px; align-items: center; flex-wrap: wrap; }
.search-input { max-width: 380px; font-size: 13px; min-height: 44px; }
.filter-select { min-height: 44px; border: 1px solid #aebaa7; border-radius: 5px; background: var(--paper); color: var(--green); padding: 10px; font: inherit; font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 850px; }
.data-table th { background: var(--sage); font-size: 11px; color: #4d6245; padding: 13px 16px; font-weight: 650; }
.data-table td { border-top: 1px solid var(--line); padding: 15px 16px; font-size: 12px; vertical-align: top; }
.data-table td small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.data-table td strong { font-size: 13px; }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.empty-state { padding: 45px 25px; text-align: center; color: var(--muted); font-size: 13px; }
.login-box { max-width: 460px; margin: 20px auto; }
.login-box .button { width: 100%; }
.login-separator { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; margin: 20px 0; }
.login-separator::before, .login-separator::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.app-dialog { border: 1px solid var(--green); background: var(--paper); color: var(--green); border-radius: 10px; padding: 28px; max-width: 460px; width: calc(100% - 40px); }
.app-dialog::backdrop { background: rgb(12 34 23 / 50%); }
.app-dialog h2 { font-size: 23px; margin-bottom: 13px; }
.app-dialog p { font-size: 13px; color: var(--muted); }
.scan-layout { max-width: 780px; margin-inline: auto; }
.camera-box { background: #15382b; border-radius: 8px; margin-top: 20px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.camera-box video { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-guide { position: absolute; inset: 18%; border: 2px solid var(--orange); border-radius: 10px; pointer-events: none; }
.scanner-result { margin-top: 22px; }
.scanner-result h3 { font-size: 22px; margin-bottom: 8px; }
.result-big { padding: 25px; border-radius: 8px; background: #e1edd8; border: 1px solid #a8bd96; }
.result-big.invalid { background: #f5e4dd; border-color: #d8b4a4; }
.result-big.used { background: #fff1d5; border-color: #d7c098; }
.app-footer { border-top: 1px solid var(--line); padding: 23px 24px; text-align: center; color: var(--muted); font-size: 11px; }
.app-footer a { margin-inline: 9px; text-decoration: underline; text-underline-offset: 4px; }
.chat-launcher { position: fixed; bottom: 25px; right: 25px; z-index: 35; border: 1px solid var(--green); border-radius: 50px; background: var(--green); color: var(--cream); padding: 13px 19px; display: inline-flex; align-items: center; gap: 9px; box-shadow: 0 5px 20px rgb(15 48 32 / 20%); font-size: 13px; font-weight: 650; }
.chat-launcher svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.chat-launcher-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.chat-panel { position: fixed; bottom: 90px; right: 25px; z-index: 36; width: min(380px, calc(100vw - 32px)); height: min(565px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--green); border-radius: 13px; box-shadow: 0 15px 60px rgb(15 48 32 / 22%); overflow: hidden; }
.chat-head { background: var(--green); color: var(--cream); display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; }
.chat-head strong { display: block; font-size: 14px; }
.chat-head small { font-size: 10px; color: #c3d0b6; }
.chat-close { background: transparent; color: var(--cream); border: 0; width: 31px; height: 31px; font-size: 24px; line-height: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 13px; overscroll-behavior: contain; }
.chat-bubble { font-size: 12px; line-height: 1.85; padding: 11px 14px; border-radius: 9px 9px 9px 2px; background: var(--sage); max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble.user { align-self: end; background: var(--green); color: var(--paper); border-radius: 9px 9px 2px 9px; }
.chat-bubble.error { background: #fae7df; color: #873d2d; }
.chat-quick { display: flex; gap: 7px; padding: 0 18px 11px; overflow-x: auto; }
.chat-quick button { font-size: 10px; padding: 6px 9px; border: 1px solid #bcc8b1; border-radius: 30px; background: transparent; color: var(--green); white-space: nowrap; }
.chat-compose { display: flex; gap: 9px; border-top: 1px solid var(--line); padding: 12px; align-items: end; }
.chat-compose textarea { flex: 1; resize: none; min-height: 43px; max-height: 110px; border: 1px solid #bcc8b1; border-radius: 6px; padding: 10px; font: inherit; font-size: 13px; color: var(--green); background: var(--paper); }
.chat-compose button { min-height: 43px; padding: 8px 12px; border: 0; border-radius: 5px; background: var(--orange); color: var(--green); font-size: 12px; font-weight: 700; }
.chat-disclaimer { padding: 0 14px 10px; font-size: 9px; color: var(--muted); }
@media (max-width: 959px) { .app-grid { grid-template-columns: 1.25fr .8fr; gap: 20px; } .panel { padding: 22px; } .app-header .main-nav { display: flex; margin-left: auto; gap: 18px; } }
@media (max-width: 700px) { .app-main { width: calc(100% - 32px); padding-top: 34px; } .app-grid { display: flex; flex-direction: column; } .app-grid > * { width: 100%; } .app-aside { position: static; order: -1; } .app-aside .panel { padding: 20px; } .app-aside .event-mini { margin-bottom: 10px; padding-bottom: 10px; } .app-aside .mini-price { font-size: 31px; } .app-header .shell { width: calc(100% - 32px); } .app-header .main-nav { gap: 14px; } .app-header .main-nav a { font-size: 11px; } .app-header .brand-symbol { width: 30px; height: 30px; } .app-header .brand-wordmark { font-size: 14px; } .app-header .brand-wordmark > span { font-size: 15px; } .form-grid { grid-template-columns: 1fr; gap: 0; } .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .stat-card { padding: 16px; } .admin-toolbar .button { font-size: 12px; min-height: 42px; } .ticket-body { padding: 22px; } .ticket-top { padding: 22px; } .chat-launcher { bottom: 19px; right: 16px; } body:has(.mobile-booking) .chat-launcher { bottom: 96px; } .chat-panel { right: 16px; bottom: 82px; } body:has(.mobile-booking) .chat-panel { bottom: 153px; height: min(515px, calc(100dvh - 180px)); } .app-heading h1 { font-size: 33px; } }
@media (prefers-reduced-motion: reduce) { .chat-panel, .chat-launcher { transition: none; } }
@media print { .site-header, .app-footer, .chat-launcher, .chat-panel, .inline-actions { display: none !important; } .ticket-shell { max-width: 100%; } .app-main { padding: 0; } body { background: #fff; } }
