/* Ace Padel — booking, my bookings, account, admin */

.page { padding: calc(var(--nav-h) + clamp(24px, 4vw, 48px)) 0 clamp(64px, 8vw, 110px); }
.page-head { margin-bottom: clamp(20px, 3vw, 32px); }
.page-head .display { font-size: clamp(34px, 5vw, 60px); }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- booking ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.book-main { min-width: 0; }
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 4px 12px; margin: -8px -4px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; scroll-snap-align: center; display: grid; justify-items: center; gap: 1px; width: 66px; padding: 10px 0 9px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .3s var(--spring), background-color .25s, color .25s, box-shadow .25s; animation: chipIn .45s var(--ease) both; animation-delay: calc(var(--i) * 22ms); }
.day i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; transition: color .25s; }
.day b { font-family: var(--font-d); font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 23px; line-height: 1.1; }
.day:hover { box-shadow: inset 0 0 0 1.5px var(--blue); transform: translateY(-2px); }
.day:active { transform: scale(.94); }
.day.on { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(23, 57, 184, .34); transform: translateY(-3px); }
.day.on i { color: rgba(255, 255, 255, .82); }

.court-card { background: var(--card); border-radius: var(--r-lg); padding: clamp(16px, 2.2vw, 24px); margin-top: 16px; box-shadow: var(--shadow-1); animation: riseSoft .6s var(--ease) both; animation-delay: var(--d, 0ms); }
.court-head { display: flex; align-items: center; gap: 12px; }
.court-badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--blue); color: #fff; flex: none; }
.court-badge .ico { width: 24px; height: 24px; }
.court-head h3 { white-space: nowrap; font-family: var(--font-d); font-weight: 800; font-variation-settings: 'wdth' 120; text-transform: uppercase; font-size: 22px; letter-spacing: -.015em; }
.court-head .tag { margin-left: auto; }
.court-none { color: var(--muted); padding: 18px 0 4px; }
.daypart h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.slot { position: relative; display: grid; place-content: center; justify-items: center; min-height: 54px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: transform .25s var(--spring), box-shadow .2s, background-color .2s, color .2s; animation: chipIn .4s var(--ease) both; animation-delay: calc(var(--i) * 16ms + 60ms); }
.slot b { font-size: 15.5px; font-weight: 700; line-height: 1.15; }
.slot i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); transition: color .2s; }
.slot.is-free::after { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); transition: background-color .2s, transform .3s var(--spring); }
.slot.is-free:hover { box-shadow: inset 0 0 0 2px var(--blue); transform: translateY(-3px); }
.slot.is-free:hover::after { transform: scale(1.5); }
.slot.is-free:active { transform: scale(.94); }
.slot.is-taken { background: #EEF1F7; box-shadow: none; color: #8791AD; cursor: not-allowed; }
.slot.is-taken b { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(135, 145, 173, .7); }
.slot.is-taken i { color: #99A2BC; }
.slot.is-tight { background: transparent; box-shadow: none; border: 1.5px dashed #AEB7CF; color: #7D87A5; cursor: not-allowed; }
.slot.is-tight i { color: #8D96B2; }
.slot.is-mine { background: var(--ball); box-shadow: none; color: var(--navy); cursor: default; }
.slot.is-mine i { color: var(--navy); }
.slot.in-range { background: var(--soft); box-shadow: inset 0 0 0 1.5px #A9BCF7; color: var(--blue-700); }
.slot.in-range::after { background: var(--blue-600); }
.slot.is-selected { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(23, 57, 184, .38); transform: translateY(-3px) scale(1.04); animation: selPop .4s var(--spring); }
.slot.is-selected i { color: rgba(255, 255, 255, .85); }
.slot.is-selected::after { background: var(--ball); transform: scale(1.3); }

.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.summary-card { background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); }
.summary.has-sel .summary-card { animation: selPop .45s var(--spring); box-shadow: 0 0 0 2px var(--blue), var(--shadow-2); }
.summary-title { font-family: var(--font-d); font-weight: 800; font-variation-settings: 'wdth' 120; text-transform: uppercase; font-size: 22px; letter-spacing: -.015em; margin-bottom: 12px; }
.summary-empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 28px 12px 22px; color: var(--muted); border-radius: 18px; background: var(--paper); }
.summary-empty .ball { width: 44px; height: 44px; }
.ball.bounce { animation: softBounce 1.5s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.summary-rules { display: grid; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.summary-rules li { display: flex; gap: 8px; align-items: flex-start; }
.summary-rules .ico { color: var(--ok); margin-top: 1px; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.summary-list dt { color: var(--muted); font-size: 14px; }
.summary-list dd { font-weight: 700; text-align: right; }
.summary-list .summary-total { border-bottom: 0; padding: 16px 0 18px; align-items: baseline; }
.summary-total dd { font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.summary-bar { display: none; }

/* done */
.done { max-width: 620px; text-align: center; display: grid; justify-items: center; }
.done .display { font-size: clamp(38px, 7vw, 68px); }
.done-mark { position: relative; width: 96px; height: 96px; margin-bottom: 22px; }
.done-mark > span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ball); color: var(--navy); animation: markIn .7s var(--spring) both; box-shadow: 0 14px 34px rgba(160, 190, 20, .5); }
.done-mark .ico { width: 46px; height: 46px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s var(--ease) .35s forwards; }
.burst { position: absolute; left: 50%; top: 50%; }
.burst i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ball); opacity: 0; animation: burst 1s var(--ease) .15s both; }
.burst i:nth-child(3n) { background: var(--blue); }
.burst i:nth-child(4n) { background: var(--sun); }
.done-sub { color: var(--muted); font-size: 17px; max-width: 34em; margin: 16px 0 26px; }
.done-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.done-fine, .list-fine { font-size: 13.5px; color: var(--muted); margin-top: 22px; }
.ticket { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); text-align: left; animation: ticketIn .8s var(--spring) .25s both; }
.ticket-main { display: flex; gap: 18px; align-items: center; padding: 22px; }
.ticket-date, .bk-date { display: grid; justify-items: center; flex: none; width: 70px; padding: 10px 0; border-radius: 16px; background: var(--blue); color: #fff; }
.ticket-date i, .bk-date i { font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.ticket-date b, .bk-date b { font-family: var(--font-d); font-weight: 800; font-size: 28px; line-height: 1.05; }
.ticket-info h3 { font-family: var(--font-d); font-weight: 800; font-variation-settings: 'wdth' 120; text-transform: uppercase; font-size: 21px; }
.ticket-time { font-weight: 700; font-size: 17px; }
.ticket-meta { color: var(--muted); font-size: 14px; }
.ticket-stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 2px dashed var(--line-2); }
.ticket-stub::before, .ticket-stub::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); }
.ticket-stub::before { left: -12px; }
.ticket-stub::after { right: -12px; }
.ticket-stub span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticket-stub b { font-family: var(--font-d); font-weight: 800; font-variation-settings: 'wdth' 118; font-size: 22px; letter-spacing: .08em; color: var(--blue); }
.ticket-actions { display: flex; gap: 8px; padding: 0 22px 20px; }
.ticket-actions .btn { flex: 1; }

/* ---------- my bookings ---------- */
.list-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.list-title:first-child { margin-top: 0; }
.list-title span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--soft); color: var(--blue-700); font-size: 12px; letter-spacing: 0; }
.bk-list { display: grid; gap: 12px; }
.bk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-1); animation: riseSoft .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); transition: transform .3s var(--ease), box-shadow .3s, opacity .25s, max-height .3s; }
.bk.is-up:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 22, 64, .12); }
.bk.is-past { box-shadow: inset 0 0 0 1px var(--line); background: transparent; }
.bk.is-past .bk-date { background: #DDE3F0; color: var(--muted); }
.bk.is-cancelled .bk-info { opacity: .6; }
.bk.is-cancelled .bk-time { text-decoration: line-through; }
.bk.leaving { opacity: 0; transform: translateX(40px); }
.bk-info h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-d); font-weight: 800; font-variation-settings: 'wdth' 118; text-transform: uppercase; font-size: 18px; }
.bk-code { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--blue); background: var(--soft); padding: 3px 8px; border-radius: 8px; }
.bk-time { font-weight: 700; font-size: 16px; }
.bk-meta { font-size: 13.5px; color: var(--muted); }
.bk-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.gate { display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(32px, 6vw, 60px) 24px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.gate-art { height: 70px; display: grid; align-items: start; }
.gate-art .ball { width: 52px; height: 52px; }
.gate p { color: var(--muted); max-width: 40ch; }
.gate-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* ---------- account ---------- */
.profile { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--blue); color: #fff; box-shadow: 0 16px 36px rgba(23, 57, 184, .3); position: relative; overflow: hidden; }
.profile::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 0 0 44px rgba(255, 255, 255, .05); pointer-events: none; }
.profile .avatar { background: var(--ball); color: var(--navy); }
.profile-info { min-width: 0; }
.profile-info h2 { font-size: 20px; }
.profile-info p { font-size: 14px; color: rgba(255, 255, 255, .8); overflow: hidden; text-overflow: ellipsis; }
.profile-stats { margin-left: auto; display: flex; gap: 22px; position: relative; z-index: 1; }
.profile-stats div { display: grid; justify-items: center; }
.profile-stats b { font-family: var(--font-d); font-weight: 800; font-size: 30px; line-height: 1; }
.profile-stats span { font-size: 12px; color: rgba(255, 255, 255, .78); }
.rows li + li { border-top: 1px solid var(--line); }
.rows a, .row-static { display: flex; align-items: center; gap: 14px; padding: 13px 4px; min-height: 56px; transition: padding .25s var(--ease), color .2s; }
.rows a:hover { padding-left: 10px; color: var(--blue); }
.rows a > .ico:first-child, .row-static > .ico:first-child { width: 22px; height: 22px; color: var(--blue); }
.rows a > span, .row-static > span { display: grid; flex: 1; min-width: 0; }
.rows b { font-size: 15px; }
.rows i { font-style: normal; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows a > .ico:last-child { width: 18px; height: 18px; color: #9AA4BF; }

/* =====================================================================
   ADMIN
   ===================================================================== */
.adm-login { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 20px; background: radial-gradient(120% 90% at 85% 10%, #2B55EC 0%, rgba(43, 85, 236, 0) 55%), var(--blue); }
.adm-login-card { width: min(420px, 100%); background: #fff; padding: 32px 28px; border-radius: var(--r-xl); box-shadow: var(--shadow-2); animation: dialogIn .5s var(--spring) both; }
.adm-login-card .logo { color: var(--navy); }
.adm-login-card > p:not(.form-error) { color: var(--muted); font-size: 14.5px; margin-top: -6px; }
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px; background: var(--navy); color: #fff; }
.adm-brand { display: grid; gap: 8px; padding: 0 10px; }
.adm-brand > span:last-child { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ball); }
.adm-nav { display: grid; gap: 4px; }
.adm-nav button, .adm-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border-radius: 14px; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .76); text-align: left; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.adm-nav button:hover, .adm-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.adm-nav button.on { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(4, 12, 48, .4); }
.adm-nav button:active { transform: scale(.97); }
.adm-side-foot { margin-top: auto; display: grid; gap: 4px; }
.adm-main { min-width: 0; }
.adm-body { max-width: 1180px; margin: 0 auto; padding: clamp(18px, 3vw, 36px); animation: riseSoft .45s var(--ease) both; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-head p { color: var(--muted); margin-top: 4px; }
.adm-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-1); text-align: left; transition: transform .3s var(--ease), box-shadow .3s; }
button.stat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 22, 64, .12); }
.stat > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.stat > b { font-family: var(--font-d); font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 38px; line-height: 1.05; letter-spacing: -.02em; }
.stat > i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.stat > i .ico { width: 13px; height: 13px; }
.stat-warn > b { color: #B54309; }
.meter { height: 6px; border-radius: 3px; background: #E6EAF4; overflow: hidden; margin-top: 6px; }
.meter em { display: block; height: 100%; border-radius: 3px; background: var(--blue); transform-origin: left; animation: growX .9s var(--ease) both; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-cols .panel + .panel { margin-top: 0; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 190px; align-items: end; }
.bar { display: grid; grid-template-rows: 18px 1fr 18px; height: 100%; justify-items: center; gap: 4px; }
.bar b { font-size: 11px; font-weight: 700; color: var(--muted); }
.bar em { align-self: end; width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: #C6D2F6; transform-origin: bottom; animation: growY .7s var(--ease) both; }
.bar em.today { background: var(--blue); }
.bar i { font-style: normal; font-size: 11px; color: var(--muted); }
.next-list li + li { border-top: 1px solid var(--line); }
.next-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 2px; text-align: left; transition: padding .25s var(--ease); }
.next-list button:hover { padding-left: 8px; }
.next-list span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.next-list b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-list i { font-style: normal; font-size: 13px; color: var(--muted); }
.next-list .ico { color: #9AA4BF; width: 16px; height: 16px; }
.type-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--blue); margin-right: 6px; }
.type-dot.type-coaching { background: var(--sun); }
.type-dot.type-academy { background: #0FA3A3; }
.type-dot.type-block { background: #8791AD; }

.date-nav { display: flex; align-items: center; gap: 4px; }
.date-nav .input { width: 160px; }
.sch { background: #fff; border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.sch-head { display: grid; grid-template-columns: 62px 1fr 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sch-head b { padding-left: 12px; font-family: var(--font-d); font-weight: 800; font-variation-settings: 'wdth' 118; text-transform: uppercase; font-size: 15px; }
.sch-grid { display: grid; grid-template-columns: 62px 1fr 1fr; padding: 10px 0 14px; max-height: calc(100vh - 290px); min-height: 360px; overflow-y: auto; }
.sch-times { position: relative; }
.sch-times span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sch-col { position: relative; border-left: 1px solid var(--line); }
.sch-cell { display: block; width: 100%; height: 34px; border-top: 1px dotted #E3E7F0; transition: background-color .15s; }
.sch-cell.hour { border-top: 1px solid var(--line); }
.sch-cell:hover { background: var(--soft); }
.sch-cell:hover::after { content: '+'; display: grid; place-items: center; height: 100%; font-weight: 700; color: var(--blue); }
.sch-bk { position: absolute; left: 5px; right: 5px; display: grid; align-content: start; gap: 1px; padding: 7px 10px; border-radius: 11px; background: var(--blue); color: #fff; text-align: left; overflow: hidden; box-shadow: 0 4px 10px rgba(10, 22, 64, .16); transition: transform .2s var(--ease), box-shadow .2s, filter .2s; animation: riseSoft .4s var(--ease) both; z-index: 1; }
.sch-bk:hover { transform: scale(1.012); filter: brightness(1.08); box-shadow: 0 10px 22px rgba(10, 22, 64, .24); z-index: 2; }
.sch-bk b { font-size: 13.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-bk i { font-style: normal; font-size: 11.5px; opacity: .88; white-space: nowrap; }
.sch-bk em { position: absolute; right: 8px; bottom: 7px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .2); }
.sch-bk em.paid { background: var(--ball); color: var(--navy); }
.sch-bk.short { grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding-top: 0; padding-bottom: 0; align-content: center; }
.sch-bk.short em { display: none; }
.sch-bk.type-coaching { background: #D9541E; }
.sch-bk.type-academy { background: #0B8585; }
.sch-bk.type-block { background: repeating-linear-gradient(135deg, #7B859F 0 8px, #6C7691 8px 16px); }
.sch-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--sun); z-index: 3; pointer-events: none; }
.sch-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.legend-adm { margin-top: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 14px; }
.filters .field { width: 170px; min-width: 0; }
.filters .field-grow { flex: 1; min-width: 220px; width: auto; }
.table-wrap { background: #fff; border-radius: 20px; box-shadow: var(--shadow-1); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; padding: 14px 14px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td a { color: var(--blue); font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-open] { cursor: pointer; transition: background-color .15s; }
.table tr[data-open]:hover { background: var(--soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .row-off td { color: #8791AD; }
.table code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12.5px; background: var(--paper); padding: 3px 7px; border-radius: 7px; }
.table-count { padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

.detail-top { display: flex; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; background: var(--paper); margin-bottom: 12px; }
.detail-top .type-dot { margin-top: 8px; }
.detail-top > div { flex: 1; }
.detail-top h3 { font-size: 19px; }
.detail-top p { color: var(--muted); font-size: 14.5px; }
.detail-rows { display: grid; gap: 2px; margin-bottom: 16px; }
.detail-rows li { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14.5px; }
.detail-rows li > .ico { color: var(--blue); }
.detail-rows a:not(.btn) { color: var(--blue); font-weight: 700; }
.detail-rows .btn { margin-left: auto; }
.temp-pass { margin: 16px 0 4px; padding: 16px; border-radius: 16px; background: var(--paper); text-align: center; }
.temp-pass code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 24px; font-weight: 700; letter-spacing: .12em; color: var(--blue); user-select: all; }
.price-rows { display: grid; gap: 10px; margin-bottom: 14px; }
.price-row { display: grid; grid-template-columns: 1fr 180px; gap: 14px; align-items: end; padding: 10px 14px; border-radius: 16px; background: var(--paper); }
.save-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 16px 0; padding: 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); box-shadow: var(--shadow-1); }
.save-bar .form-error { flex: 1; }
.news-admin { margin-top: 16px; }
.news-admin li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.news-admin li > span { display: grid; flex: 1; min-width: 0; }
.news-admin i { font-style: normal; font-size: 13.5px; color: var(--muted); }
.adm form > .panel + .panel { margin-top: 16px; }
.adm form.form[data-settings] { display: block; }
.adm .panel .form-row + .form-row, .adm .panel .form-row + .field, .adm .panel .field + .field { margin-top: 14px; }

@keyframes selPop { 0% { transform: scale(.94); } 60% { transform: scale(1.06); } 100% { transform: translateY(-3px) scale(1.04); } }
@keyframes softBounce { from { transform: translateY(-14px); } to { transform: translateY(8px) scale(1.06, .94); } }
@keyframes markIn { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(20px) scale(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scale(var(--s)); } }
@keyframes ticketIn { from { opacity: 0; transform: translateY(40px) rotate(-3deg) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes barUp { from { transform: translateY(120%); } to { transform: none; } }

@media (max-width: 960px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .summary.is-empty .summary-card, .summary.has-sel .summary-card { display: none; }
  .summary-bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px + var(--safe-b)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--navy); color: #fff; box-shadow: var(--shadow-2); animation: barUp .45s var(--spring) both; }
  .summary-bar-info { display: grid; min-width: 0; }
  .summary-bar-info b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .summary-bar-info span { font-size: 12.5px; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page { padding-bottom: calc(var(--tab-h) + 110px + var(--safe-b)); }
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; }
  .adm-side::-webkit-scrollbar { display: none; }
  .adm-brand > span:last-child, .adm-brand .logo-word { display: none; }
  .adm-brand { padding: 0 4px; }
  .adm-nav { display: flex; gap: 4px; }
  .adm-nav button, .adm-link { width: auto; min-height: 42px; white-space: nowrap; font-size: 14px; padding: 0 12px; }
  .adm-side-foot { margin: 0 0 0 auto; display: flex; }
  .adm-link span { display: none; }
  .adm-cols { grid-template-columns: 1fr; }
  .sch-grid { max-height: none; }
}
@media (max-width: 720px) {
  .bk { grid-template-columns: auto minmax(0, 1fr); }
  .bk-actions { grid-column: 1 / -1; justify-content: stretch; }
  .bk-actions .btn { flex: 1; }
  .bk > .tag { grid-column: 2; justify-self: start; margin-top: -8px; }
  .profile { flex-wrap: wrap; }
  .profile-stats { margin-left: 0; width: 100%; justify-content: space-around; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
  .slots { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table td { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border: 0; white-space: normal; text-align: right; }
  .table td::before { content: attr(data-l); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: left; }
  .price-row { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .input-sm { font-size: 16px; }
  .filters .field { width: calc(50% - 6px); }
  .adm-head-actions { width: 100%; }
  .date-nav { flex: 1; }
  .date-nav .input { flex: 1; width: auto; min-width: 0; }
  .save-bar { border-radius: 20px; flex-wrap: wrap; }
}
@media (max-width: 340px) {
  .slots { grid-template-columns: repeat(3, 1fr); }
  .summary-bar .btn { padding: 0 16px; }
}
