/* =====================================================================
   DBOX brand layer on top of VKit (vkit.css). Dashboards use VKit as-is;
   the public marketplace adds the components below using the same tokens.
   ===================================================================== */
[data-theme="dbox"] { --primary:#0a8f5a; --primary-600:#087a4c; --primary-700:#06633e; --primary-50:#e8f7ef; --primary-100:#c9eedb; --chart-1:#0a8f5a; }
[data-mode="dark"][data-theme="dbox"] { --primary-50:rgba(10,143,90,.14); --primary-100:rgba(10,143,90,.26); }
:root { --accent:#ff7a1a; --accent-600:#e56a0f; --hero-h: 460px; }

/* ---------- public shell ---------- */
.pub body, body.pub { background: var(--bg); }
.pub-nav { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.pub-nav .inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; letter-spacing: .5px; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #13c27a); display: grid; place-items: center; color: #fff; font-size: 18px; box-shadow: 0 4px 12px rgba(10,143,90,.35); }
.brand small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; margin-top: -3px; }
.pub-links { display: flex; gap: 4px; }
.pub-links a { padding: 8px 12px; border-radius: 6px; color: var(--text-2); font-weight: 600; text-decoration: none; font-size: 14px; }
.pub-links a:hover, .pub-links a.active { background: var(--primary-50); color: var(--primary-700); }
.pub-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .pub-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--border); }
  .pub-links.open { display: flex; }
  .nav-toggle { display: inline-grid; }
  .hide-sm { display: none !important; }
}
.container-x { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding: 44px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; margin: 0; font-weight: 800; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head a { font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }

/* ---------- hero slider ---------- */
.hero { position: relative; height: var(--hero-h); overflow: hidden; background: #062e1f; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slide.active { pointer-events: auto; }
.hero-slide.active { opacity: 1; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3,25,16,.82) 0%, rgba(3,25,16,.45) 55%, rgba(3,25,16,.1) 100%); }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 70px; color: #fff; }
.hero-copy .tag { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 5px 10px; border-radius: 30px; }
.hero-copy h1, .hero-copy p { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-copy h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.12; margin: 14px 0 10px; max-width: 640px; }
.hero-copy p { font-size: 17px; opacity: .9; max-width: 560px; }
.hero-dots { position: absolute; z-index: 3; bottom: 110px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; width: 26px; border-radius: 6px; }
.hero-search { position: relative; z-index: 4; margin-top: -78px; }
.search-card { background: var(--surface); border-radius: 12px; box-shadow: 0 18px 40px rgba(15,23,42,.18); padding: 16px; display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.search-card .field { margin: 0; }
.search-card label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
@media (max-width: 900px) { .search-card { grid-template-columns: 1fr 1fr; } .search-card .go { grid-column: 1 / -1; } :root { --hero-h: 380px; } .hero-copy { top: 40px; } }

/* ---------- sports & cards ---------- */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.sport-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 10px; text-align: center; text-decoration: none; color: var(--text); transition: .18s; box-shadow: var(--shadow-sm); }
.sport-card i { font-size: 28px; color: var(--primary); display: block; margin-bottom: 10px; }
.sport-card span { font-weight: 700; font-size: 14px; }
.sport-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--primary-100); }
.sport-card.active { background: var(--primary); color: #fff; } .sport-card.active i { color: #fff; }

.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.fac-card { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: .2s; border: 1px solid var(--border); }
.fac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.fac-img { position: relative; aspect-ratio: 16/10; background: var(--surface-3); overflow: hidden; }
.fac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fac-card:hover .fac-img img { transform: scale(1.05); }
.fac-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.95); color: var(--text); }
.chip.green { background: var(--primary); color: #fff; } .chip.orange { background: var(--accent); color: #fff; }
.fac-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fac-body h3 { font-size: 16.5px; margin: 0; font-weight: 800; }
.fac-meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.fac-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: end; justify-content: space-between; }
.price { font-weight: 800; font-size: 18px; color: var(--primary-700); } .price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.stars { color: #f5a524; font-size: 13px; font-weight: 700; }
.stars .muted { color: var(--muted); font-weight: 500; }

/* ---------- facility details ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 8px; border-radius: 14px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery .main { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 110px; } .gallery .main { grid-column: span 2; grid-row: auto; } .gallery .more { display: none; } }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } }
.sticky-col { position: sticky; top: 80px; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.amenities div { display: flex; gap: 8px; align-items: center; font-size: 13.5px; } .amenities i { color: var(--primary); width: 18px; text-align: center; }
#map { height: 260px; border-radius: 10px; border: 1px solid var(--border); }

/* ---------- slot board ---------- */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date-pill { flex: 0 0 auto; width: 62px; border: 1px solid var(--border); border-radius: 10px; padding: 7px 4px; text-align: center; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
.date-pill b { display: block; font-size: 18px; } .date-pill small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.date-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; } .date-pill.active small { color: #e6fff2; }
.court-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.court-tabs button { border: 1px solid var(--border); background: var(--surface); padding: 7px 12px; border-radius: 30px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-2); }
.court-tabs button.active { background: var(--primary-50); border-color: var(--primary); color: var(--primary-700); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 8px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); position: relative; transition: .15s; }
.slot b { display: block; font-size: 13.5px; } .slot span { font-size: 12.5px; color: var(--primary-700); font-weight: 700; } .slot em { font-style: normal; font-size: 10.5px; color: var(--muted); display: block; }
.slot:hover:not([disabled]) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.slot.s-Booked, .slot.s-Past, .slot.s-Blocked { background: var(--surface-3); color: var(--muted-2); cursor: not-allowed; } .slot.s-Booked span, .slot.s-Past span, .slot.s-Blocked span { color: var(--muted-2); text-decoration: line-through; }
.slot.s-Held { border-color: #f5a524; background: #fff8e6; } .slot.s-Held span { color: #b7791f; }
.slot.s-YourHold { border-color: var(--primary); background: var(--primary-50); }
.slot .q { position: absolute; top: 6px; right: 7px; font-size: 10.5px; font-weight: 700; color: #b7791f; }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend-row i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid var(--border); }
.dur-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 13px; }
[data-mode="dark"] .slot.s-Held { background: rgba(245,165,36,.12); }

/* ---------- misc ---------- */
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent); font-size: 22px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14px; } .summary-row:last-child { border: 0; }
.summary-row.total { font-weight: 800; font-size: 17px; }
.pay-option { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; margin-bottom: 10px; }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.pay-option img, .pay-option .ico { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; font-size: 20px; }
.bkash { background: #e2136e; color: #fff; }
.stat-band { background: linear-gradient(135deg, var(--primary-700), var(--primary)); color: #fff; border-radius: 16px; padding: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.stat-band b { font-size: 30px; display: block; } .stat-band span { opacity: .85; font-size: 13px; }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr 1fr; } }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.tour-card { display: grid; grid-template-columns: 140px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow-card); }
.tour-card img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.tour-card .b { padding: 14px 14px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.cta-band { background: #08291c; color: #fff; border-radius: 16px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background-image: radial-gradient(circle at 90% 20%, rgba(19,194,122,.35), transparent 40%); }
.pub-footer { background: #071f15; color: #b9d4c7; margin-top: 56px; padding: 40px 0 20px; font-size: 14px; }
.pub-footer a { color: #d9efe4; text-decoration: none; display: block; padding: 3px 0; } .pub-footer a:hover { color: #fff; }
.pub-footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.pub-footer .copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 26px; padding-top: 16px; font-size: 12.5px; opacity: .8; }
.my-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.my-nav a { padding: 8px 14px; border-radius: 30px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.my-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.booking-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.date-box { background: var(--primary-50); color: var(--primary-700); border-radius: 10px; text-align: center; padding: 8px 4px; font-weight: 800; } .date-box b { display: block; font-size: 22px; line-height: 1; } .date-box small { font-size: 11px; text-transform: uppercase; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); } .empty-state i { font-size: 42px; color: var(--primary-100); margin-bottom: 12px; display: block; }
.flash-wrap { position: fixed; top: 74px; right: 16px; z-index: 1000; display: grid; gap: 8px; max-width: 420px; }
.page-title { padding: 26px 0 6px; } .page-title h1 { font-size: 26px; font-weight: 800; margin: 0; } .page-title p { color: var(--muted); margin: 4px 0 0; }
.filters-side .field { margin-bottom: 12px; }
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: min(460px, 100%); background: var(--surface); border-radius: 16px; box-shadow: 0 18px 40px rgba(15,23,42,.12); padding: 30px; border: 1px solid var(--border); }
.auth-card.wide { width: min(820px, 100%); }
.receipt { max-width: 720px; margin: 24px auto; background: #fff; color: #111; padding: 32px; border: 1px solid #ddd; }
@media print { .no-print, .pub-nav, .pub-footer { display: none !important; } .receipt { border: 0; margin: 0; } body { background: #fff; } }
.sim-wallet { max-width: 380px; margin: 40px auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.18); color: #111; }
.sim-wallet header { background: #e2136e; color: #fff; padding: 18px; font-weight: 800; font-size: 20px; }

/* ---------- dashboards (VKit) additions ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kpi-icon.amber { background: var(--warning-bg); color: var(--warning); }
.mini-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.mini-board .slot { padding: 6px; } .mini-board .slot b { font-size: 12px; } .mini-board .slot span { font-size: 11.5px; }
.tl { list-style: none; padding: 0; margin: 0; } .tl li { padding: 6px 0 6px 18px; border-left: 2px solid var(--border); position: relative; font-size: 13px; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 13.5px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.money { font-variant-numeric: tabular-nums; } .num { text-align: right; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; } .tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; } .tbl th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .3px; } .tbl td.num, .tbl th.num { text-align: right; }
.poster-prev { width: 100%; max-width: 260px; border-radius: 10px; border: 1px solid var(--border); }
.setting-group { scroll-margin-top: 80px; }
.ad-thumb { width: 120px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }

/* ---------- Web Forms version additions ---------- */
.hidden { display: none !important; }
.slot.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.slot.selected span, .slot.selected em { color: #fff; }
.slot.s-MyHold { border-color: var(--primary); background: var(--primary-50); }
.book-bar { position: sticky; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(15,23,42,.08); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px 12px 0 0; margin-top: 14px; }
.book-bar b { font-size: 18px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--success); }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.dlg { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: none; align-items: center; justify-content: center; z-index: 900; padding: 16px; }
.dlg.open { display: flex; }
.dlg-box { background: var(--surface); border-radius: 12px; width: min(560px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
.dlg-box.wide { width: min(860px, 100%); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; }
.dlg-body { padding: 18px; }
.dlg-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.mb-0 { margin-bottom: 0 !important; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mb-3 { margin-bottom: 16px; } .gap-2 { gap: 8px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.board { overflow-x: auto; }
.board table { border-collapse: separate; border-spacing: 4px; min-width: 100%; }
.board th { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; padding: 4px 6px; text-align: left; position: sticky; left: 0; background: var(--bg); }
.board td { min-width: 104px; }
.cell { display: block; border-radius: 8px; padding: 6px 8px; font-size: 12px; border: 1.5px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); min-height: 48px; cursor: pointer; }
.cell b { display: block; font-size: 12px; } .cell small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.cell.c-Available:hover { border-color: var(--primary); }
.cell.c-Available.selected { background: var(--primary); color: #fff; border-color: var(--primary); } .cell.c-Available.selected small { color: #e8fff3; }
.cell.c-Booked { background: var(--primary-50); border-color: var(--primary-100); }
.cell.c-Booked.unpaid { background: var(--warning-bg); border-color: #f5c56b; }
.cell.c-Booked.checkedin { background: #dbeafe; border-color: #93c5fd; }
.cell.c-Held { background: #fff8e6; border-style: dashed; }
.cell.c-Blocked, .cell.c-Past { background: var(--surface-3); color: var(--muted-2); cursor: default; }
/* chat assistant */
.ai-fab { position: fixed; right: 18px; bottom: 18px; z-index: 950; width: 58px; height: 58px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--primary), #13c27a); color: #fff; font-size: 24px; box-shadow: 0 10px 24px rgba(10,143,90,.45); cursor: pointer; }
.ai-panel { position: fixed; right: 18px; bottom: 88px; z-index: 951; width: min(390px, calc(100vw - 24px)); height: min(580px, calc(100vh - 120px)); background: var(--surface); border-radius: 16px; box-shadow: 0 24px 60px rgba(15,23,42,.28); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--border); }
.ai-panel.open { display: flex; }
.ai-panel.page { position: static; width: 100%; height: 640px; display: flex; box-shadow: var(--shadow-card); }
.ai-head { background: linear-gradient(135deg, var(--primary-700), var(--primary)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.ai-head b { display: block; } .ai-head small { opacity: .85; font-size: 12px; }
.ai-head button { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.ai-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.ai-msg.bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.ai-msg.me { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-cards { display: grid; gap: 8px; align-self: stretch; }
.ai-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.ai-card b { font-size: 13.5px; display: block; } .ai-card small { color: var(--muted); font-size: 12px; display: block; }
.ai-card .btn { flex: 0 0 auto; }
.ai-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-sugg button { border: 1px solid var(--primary-100); background: var(--primary-50); color: var(--primary-700); border-radius: 20px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; font: inherit; font-size: 12.5px; }
.ai-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.ai-input input { flex: 1; }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.kpi-mini { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; } .kpi-mini b { font-size: 20px; display: block; } .kpi-mini span { font-size: 12.5px; color: var(--muted); }
.cart-line { display: grid; grid-template-columns: 1fr 90px 90px 30px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.prod-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 10px; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.prod-btn:hover { border-color: var(--primary); } .prod-btn b { display: block; font-size: 13px; } .prod-btn small { color: var(--muted); }
.tabs-lite { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.tabs-lite a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs-lite a.active { color: var(--primary-700); border-color: var(--primary); }
.notif { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.notif.unread { background: var(--primary-50); }
.notif i { color: var(--primary); margin-top: 3px; }
.dash-banner { background: linear-gradient(135deg, var(--primary-700), var(--primary)); color: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-banner h2 { margin: 0; font-size: 20px; color: #fff; } .dash-banner p { margin: 2px 0 0; opacity: .85; }
@media print { .sidebar, .topbar, .no-print, .ai-fab, .ai-panel { display: none !important; } .main { margin: 0 !important; } }

/* =====================================================================
   Back office additions: pricing, offers, branding
   ===================================================================== */
.chip-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-pick label { cursor: pointer; margin: 0; }
.chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip-pick span { display: inline-flex; flex-direction: column; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-weight: 700; font-size: 13px; background: var(--surface); transition: .15s; user-select: none; }
.chip-pick span small { font-weight: 500; color: var(--muted); font-size: 11px; }
.chip-pick input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); box-shadow: 0 0 0 3px var(--primary-100); }
.chip-pick input:focus-visible + span { outline: 2px solid var(--primary); }
.chip-pick.wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.chip-quick { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; }
.chip-quick a { color: var(--primary); text-decoration: none; font-weight: 600; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 30px; font-size: 13px; font-weight: 600; background: var(--surface); }
.seg input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps-hint { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.steps-hint div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; align-items: center; }
.steps-hint span { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps-hint b { font-size: 13.5px; } .steps-hint small { color: var(--muted); font-size: 12px; }
@media (max-width: 800px) { .steps-hint { grid-template-columns: 1fr 1fr; } }
.price-grid { font-size: 12.5px; } .price-grid th, .price-grid td { text-align: center; padding: 5px 6px; white-space: nowrap; }
.price-grid td:first-child { text-align: left; }
.price-grid td s { color: var(--muted); font-size: 11px; }
.price-grid td.pv-offer, .pv-offer-dot { background: #e8f7ee; color: var(--primary-700); font-weight: 700; }
.pv-offer-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.sum-table { width: 100%; max-width: 420px; font-size: 14px; border-collapse: collapse; }
.sum-table td { padding: 5px 0; } .sum-table .total td { border-top: 2px solid var(--text); font-weight: 800; font-size: 16px; padding-top: 8px; }
.sum-table .due td { color: var(--warning); font-weight: 700; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.plan-card { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.plan-card.off { opacity: .55; }
.plan-off { width: 74px; height: 74px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #13c27a); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; line-height: 1; text-align: center; }
.plan-off small { display: block; font-size: 11px; font-weight: 600; }
.sb-logo-img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #fff; flex: 0 0 auto; }
.tb-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.sb-powered { font-size: 11px; opacity: .7; margin-top: 6px; }
.app-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 24px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.app-foot a { color: var(--primary); text-decoration: none; }
.cell.c-Booked.partial { background: #fde7c7; border-color: #f2b15c; }
.cell.c-Available.offer { background: #e8f7ee; border-style: dashed; border-color: var(--primary); }
.cell s { color: var(--muted-2); font-size: 10px; }
.board tr.board-group th { position: static; font-size: 13px; color: var(--text); padding-top: 14px; }
.price-tag s { color: var(--muted); font-weight: 500; font-size: .85em; margin-left: 2px; }
.price-tag .off { display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; background: #e11d48; border-radius: 4px; padding: 0 4px; margin-left: 3px; vertical-align: 1px; }
.text-save { color: var(--success) !important; } .text-danger { color: var(--danger); }

/* =====================================================================
   Public website - modern look (no underlined links, motion, depth)
   ===================================================================== */
body.pub { font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body.pub a { text-decoration: none; }
body.pub a:hover { text-decoration: none; }
body.pub p a, body.pub .small a { color: var(--primary); font-weight: 600; }
body.pub .btn { border-radius: 12px; font-weight: 700; transition: transform .15s, box-shadow .2s, background .2s; }
body.pub .btn-primary { box-shadow: 0 8px 20px -6px rgba(10,143,90,.55); }
body.pub .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(10,143,90,.6); }
body.pub .btn-lg { height: 50px; padding: 0 24px; }
.btn-soft { background: var(--primary-50); color: var(--primary-700); border-color: transparent; }
.btn-soft:hover { background: var(--primary-100); color: var(--primary-700); }
.btn-light { background: #fff; color: var(--primary-700); border-color: #fff; }
body.pub .card { border-radius: 18px; border-color: transparent; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 28px -12px rgba(15,23,42,.14); }
body.pub .input { border-radius: 10px; }

/* nav */
.pub-nav { background: rgba(255,255,255,.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: transparent; box-shadow: none; transition: box-shadow .25s, background .25s; }
.pub-nav.scrolled { background: rgba(255,255,255,.94); box-shadow: 0 6px 24px -12px rgba(15,23,42,.25); }
[data-mode="dark"] .pub-nav { background: rgba(15,23,42,.8); }
.pub-nav .inner { height: 70px; }
.pub-links a { position: relative; border-radius: 10px; background: none !important; padding: 8px 12px; }
.pub-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s; }
.pub-links a:hover::after, .pub-links a.active::after { transform: scaleX(1); }
.pub-links a.active { color: var(--primary-700); }

/* hero */
:root { --hero-h: 560px; }
.hero { border-radius: 0 0 32px 32px; }
.hero-slide img { transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.active img { transform: scale(1); }
.hero-slide::after { background: linear-gradient(100deg, rgba(2,22,14,.9) 0%, rgba(2,22,14,.55) 50%, rgba(2,22,14,.15) 100%); }
.hero-copy { top: 96px; }
.hero-copy .tag { backdrop-filter: blur(6px); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.hero-copy h1 { font-size: clamp(32px, 5vw, 58px); letter-spacing: -.02em; max-width: 720px; }
.hero-slide.active .hero-copy h1, .hero-slide.active .hero-copy p, .hero-slide.active .hero-copy .btn { animation: rise .8s both; }
.hero-slide.active .hero-copy p { animation-delay: .12s; } .hero-slide.active .hero-copy .btn { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; animation: pulse 1.6s infinite; }
.hero-dots { bottom: 128px; }
.hero-search { margin-top: -96px; }
.search-card { border-radius: 22px; padding: 20px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px rgba(15,23,42,.35); }
.search-card label i { color: var(--primary); margin-right: 3px; }
.search-card .go { display: flex; gap: 8px; }
[data-mode="dark"] .search-card { background: var(--surface); }

/* sections */
.section { padding: 64px 0 8px; }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }
.section-head.center { justify-content: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.eyebrow.hot { color: #e11d48; } .eyebrow.light { color: #a7f3d0; }
.link-arrow { font-weight: 700; color: var(--primary) !important; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow i { transition: transform .2s; } .link-arrow:hover i { transform: translateX(4px); }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .hero-slide img { transition: none; } }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.trust-strip div { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 6px 24px -14px rgba(15,23,42,.25); }
.trust-strip i { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 18px; }
.trust-strip b { font-size: 14px; } .trust-strip span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-strip { grid-template-columns: 1fr; } }

.sport-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.sport-card { border-radius: 18px; border-color: transparent; padding: 22px 10px; box-shadow: 0 6px 22px -14px rgba(15,23,42,.3); }
.sport-card i { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-50); font-size: 26px; transition: .25s; }
.sport-card:hover i { background: var(--primary); color: #fff; transform: rotate(-6deg) scale(1.05); }
.sport-card:hover { transform: translateY(-5px); }

.fac-grid { gap: 22px; }
.fac-card { border-radius: 18px; border-color: transparent; box-shadow: 0 6px 24px -14px rgba(15,23,42,.35); }
.fac-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(15,23,42,.4); }
.fac-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.chip { backdrop-filter: blur(6px); }
.chip.red { background: #e11d48; color: #fff; }
.fac-body h3 { font-size: 17px; }

.deal-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 18px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.deal-card { scroll-snap-align: start; background: var(--surface); border-radius: 18px; overflow: hidden; color: var(--text); box-shadow: 0 6px 24px -14px rgba(15,23,42,.35); transition: .25s; }
.deal-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -18px rgba(225,29,72,.35); }
.deal-img { position: relative; aspect-ratio: 16/9; overflow: hidden; } .deal-img img { width: 100%; height: 100%; object-fit: cover; }
.deal-off { position: absolute; top: 12px; left: 12px; background: #e11d48; color: #fff; font-weight: 800; padding: 6px 12px; border-radius: 30px; font-size: 14px; box-shadow: 0 8px 18px -6px rgba(225,29,72,.6); }
.deal-body { padding: 14px 16px 16px; } .deal-body small { color: #e11d48; font-weight: 700; } .deal-body h3 { margin: 2px 0 6px; font-size: 17px; }
.deal-ends { margin-top: 8px; font-size: 12px; color: var(--muted); }

.how { margin-top: 70px; padding: 70px 0; background: radial-gradient(circle at 15% 10%, rgba(19,194,122,.25), transparent 40%), linear-gradient(135deg, #04281a, #063f29); color: #fff; }
.how h2 { color: #fff; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 40px; counter-reset: s; }
.how-step { position: relative; padding: 26px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: .25s; }
.how-step:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.how-step > span { position: absolute; top: 18px; right: 22px; font-size: 44px; font-weight: 800; color: rgba(255,255,255,.12); }
.how-step i { width: 52px; height: 52px; border-radius: 14px; background: #13c27a; display: grid; place-items: center; font-size: 22px; color: #04281a; }
.how-step h3 { color: #fff; margin: 16px 0 6px; } .how-step p { color: #bfe3d1; margin: 0; }
@media (max-width: 800px) { .how-steps { grid-template-columns: 1fr; } }
.stat-band { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.stat-band b { font-size: 38px; letter-spacing: -.02em; }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.quote { margin: 0; background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: 0 6px 24px -14px rgba(15,23,42,.3); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -6px; right: 18px; font-size: 80px; color: var(--primary-100); font-family: Georgia, serif; }
.quote blockquote { margin: 10px 0 16px; font-size: 15px; line-height: 1.6; }
.quote figcaption { display: flex; gap: 10px; align-items: center; } .quote figcaption b { display: block; font-size: 14px; } .quote figcaption a { font-size: 12.5px; color: var(--muted); }
.quote .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }

.ai-promo { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 38px; border-radius: 26px; color: #fff; background: radial-gradient(circle at 85% 30%, rgba(255,255,255,.18), transparent 35%), linear-gradient(120deg, #4f46e5, #0a8f5a); }
.ai-promo h2 { color: #fff; margin: 6px 0; font-size: clamp(22px, 3vw, 30px); } .ai-promo p { opacity: .9; margin: 0; }
.ai-try { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ai-try a { color: #fff !important; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 6px 12px; border-radius: 30px; font-size: 13px; font-weight: 600 !important; }
.ai-try a:hover { background: rgba(255,255,255,.28); }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; align-items: start; }
.faq-wrap h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.faq details { background: var(--surface); border-radius: 16px; margin-bottom: 10px; box-shadow: 0 4px 18px -12px rgba(15,23,42,.3); overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
@media (max-width: 800px) { .faq-wrap { grid-template-columns: 1fr; } }

.cta-band { border-radius: 26px; padding: 40px; background-image: radial-gradient(circle at 90% 20%, rgba(19,194,122,.4), transparent 40%), linear-gradient(135deg, #04281a, #08291c); }
.cta-band h2 { color: #fff; margin: 4px 0; font-size: clamp(22px, 3vw, 30px); } .cta-band p { opacity: .85; margin: 0; max-width: 640px; }

/* footer */
.pub-footer { background: #04140d; border-radius: 32px 32px 0 0; margin-top: 70px; padding: 56px 0 24px; }
.pub-footer a { transition: color .2s, transform .2s; } .pub-footer a:hover { transform: translateX(3px); }
.pub-footer .powered { color: #7fb39a; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid !important; place-items: center; }
.footer-social a:hover { background: var(--primary); transform: translateY(-2px) !important; }

/* slots with offers */
.slot { border-radius: 12px; }
.slot span s { color: var(--muted-2); font-weight: 500; font-size: 11px; }
.slot.has-offer { border-color: #fecdd3; }
.slot .q.off { color: #fff; background: #e11d48; border-radius: 4px; padding: 0 4px; top: 7px; }
.slot.selected span s { color: #d1fae5; }

/* checkout */
.checkout-steps { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--muted); }
.checkout-steps span { padding: 6px 14px; border-radius: 30px; background: var(--surface); box-shadow: 0 4px 14px -10px rgba(15,23,42,.4); }
.checkout-steps .done { color: var(--success); } .checkout-steps .now { background: var(--primary); color: #fff; }
.step-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-size: 17px; }
.step-h:first-child { margin-top: 0; }
.step-h > span { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; font-size: 13px; }
.coupon-row { display: flex; gap: 8px; max-width: 420px; } .coupon-row .input { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.pay-option { border-radius: 14px; transition: .2s; align-items: flex-start; }
.pay-option:hover { border-color: var(--primary-100); }
.adv-input { display: flex; align-items: center; gap: 6px; margin-top: 8px; max-width: 200px; } .adv-input span { font-weight: 800; }
.price-break { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--border); }
.summary-row.save { color: var(--success); }
.summary-row.pay-now b { color: var(--primary-700); font-size: 17px; }
.saved-pill { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #ecfdf5; color: #047857; font-weight: 700; font-size: 13.5px; text-align: center; }
.summary-card { overflow: hidden; }
.promo-box { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff1f2; border: 1px dashed #fda4af; }
.promo-box b { display: block; margin-top: 4px; }
.notify-tbl td, .notify-tbl th { vertical-align: top; } .notify-tbl .center { text-align: center; }
.notify-tbl details summary { cursor: pointer; color: var(--primary); }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 22px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--primary); } .switch input:checked + span::before { transform: translateX(18px); }
.refund-opts { display: grid; gap: 6px; padding: 10px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface-2); }
.refund-opts .check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.status-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cell .phone { color: var(--text-2); font-weight: 600; }
.cell .items { display: inline-block; margin-left: 4px; color: var(--primary-700); font-weight: 700; }
.cell.c-Booked.done { background: #eef2f7; border-color: #cbd5e1; }

/* =====================================================================
   Layout helpers that replaced inline grid styles
   ===================================================================== */
.search-grid { grid-template-columns: 280px minmax(0, 1fr); margin-top: 16px; }
.rev-sum { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.tour-head { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.sum-img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin: 12px 0; }
.pay-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.fac-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: end; }
.fac-actions { display: flex; gap: 8px; }
@media (min-width: 1001px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr) 370px; }
  .booking-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .assist-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1000px) { .search-grid { grid-template-columns: 1fr; } }

/* Mobile-only components are hidden on desktop */
.m-head, .m-tabs, .m-drawer, .m-toolbar, .m-facts, .m-cta, .m-sheet-head, .m-only, .g-count { display: none; }

/* =====================================================================
   MOBILE DESIGN (phones, <= 768px) - app-style layout:
   compact header + slide-out menu, bottom tab bar, bottom sheets,
   swipe galleries, sticky action bars, list-style venue cards.
   ===================================================================== */
@media (max-width: 768px) {
  :root { --m-tabs: 62px; --m-safe: env(safe-area-inset-bottom, 0px); }
  html { -webkit-text-size-adjust: 100%; }
  body.pub { padding-bottom: calc(var(--m-tabs) + var(--m-safe)); background: var(--surface-2, #f6f8fa); }
  body.pub.no-tabs { padding-bottom: 0; }
  body.no-scroll { overflow: hidden; }
  .d-only { display: none !important; }
  .m-only { display: inline-flex; }
  .container-x { width: calc(100% - 24px); }
  .input, select.input, textarea.input { font-size: 16px; } /* no iOS zoom on focus */

  /* --- header --- */
  .pub-nav { display: none; }
  .m-head { display: flex; align-items: center; gap: 4px; position: sticky; top: 0; z-index: 60; height: 56px; padding: 0 6px;
            background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
            border-bottom: 1px solid var(--border); }
  [data-mode="dark"] .m-head { background: rgba(15,23,42,.92); }
  .m-brand { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; }
  .m-brand .brand-mark { width: 30px; height: 30px; font-size: 14px; }
  .m-icon { width: 42px; height: 42px; border: 0; background: none; border-radius: 12px; display: inline-grid; place-items: center; color: var(--text); font-size: 18px; text-decoration: none; cursor: pointer; }
  .m-icon:active { background: var(--surface-3); }
  .is-home .m-head { background: rgba(255,255,255,.98); }

  /* --- slide-out menu --- */
  .m-drawer { display: block; position: fixed; inset: 0; z-index: 1200; background: rgba(2,12,8,.5); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .m-drawer.open { opacity: 1; pointer-events: auto; }
  .m-drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(330px, 86vw); background: var(--surface); transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
                    display: flex; flex-direction: column; overflow-y: auto; padding-bottom: var(--m-safe); }
  .m-drawer.open .m-drawer-panel { transform: none; }
  .m-drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 12px 16px 18px; background: linear-gradient(135deg, #04281a, #0a8f5a); color: #fff; }
  .m-drawer-head > div { flex: 1; min-width: 0; } .m-drawer-head b { display: block; font-size: 16px; } .m-drawer-head span { font-size: 12.5px; opacity: .85; }
  .m-drawer-head .m-icon { color: #fff; }
  .m-drawer-head .avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; }
  .m-drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px 4px; }
  .m-drawer-links { display: flex; flex-direction: column; padding: 8px 8px 20px; }
  .m-drawer-links a { display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
  .m-drawer-links a i { width: 20px; text-align: center; color: var(--primary); }
  .m-drawer-links a.active, .m-drawer-links a:active { background: var(--primary-50); color: var(--primary-700); }
  .m-drawer-sec { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 14px 12px 4px; }

  /* --- bottom tab bar --- */
  .m-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
            height: calc(var(--m-tabs) + var(--m-safe)); padding-bottom: var(--m-safe); background: rgba(255,255,255,.97);
            backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px -12px rgba(15,23,42,.25); }
  [data-mode="dark"] .m-tabs { background: rgba(15,23,42,.97); }
  .m-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 700; position: relative; }
  .m-tabs a i { font-size: 19px; }
  .m-tabs a.active { color: var(--primary); }
  .m-tabs a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
  .no-tabs .m-tabs { display: none; }

  /* --- AI assistant button sits above the tab bar; chat opens as a full sheet --- */
  .ai-fab { width: 50px; height: 50px; font-size: 20px; right: 14px; bottom: calc(var(--m-tabs) + var(--m-safe) + 14px); }
  .no-tabs .ai-fab { bottom: 18px; }
  .picking .ai-fab, body:has(.m-cta) .ai-fab { bottom: calc(var(--m-tabs) + var(--m-safe) + 86px); }
  .ai-panel { left: 0; right: 0; bottom: 0; width: 100%; height: 86vh; border-radius: 20px 20px 0 0; z-index: 1100; }

  /* --- footer: compact --- */
  .pub-footer { margin-top: 36px; padding: 30px 0 18px; border-radius: 24px 24px 0 0; }
  .pub-footer .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
  .pub-footer .grid-4 > div:first-child { grid-column: 1 / -1; }

  /* --- general --- */
  .page-title { padding: 14px 0 4px; } .page-title h1 { font-size: 21px; } .page-title p { font-size: 13.5px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
  .sticky-col { position: static; }
  .card { border-radius: 16px; }
  .card-body { padding: 16px; }
  .section { padding: 30px 0 4px; }
  .section-head { margin-bottom: 14px; align-items: center; }
  .section-head h2 { font-size: 20px; }
  .section-head p { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .my-nav { flex-wrap: nowrap; overflow-x: auto; margin: 12px -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .my-nav::-webkit-scrollbar { display: none; }
  .my-nav a { white-space: nowrap; flex: 0 0 auto; }
  .pub .card-body > table, .pub table.tbl { display: block; overflow-x: auto; white-space: nowrap; }
  .btn-lg { padding: 12px 18px; font-size: 15px; }
  .empty-state { padding: 28px 12px; }

  /* horizontal swipe rows (used on the home page) */
  .is-home .fac-grid, .is-home .quote-grid, .is-home .grid-2 { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; gap: 12px;
      overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 4px 12px 14px; scrollbar-width: none; }
  .is-home .fac-grid::-webkit-scrollbar, .is-home .quote-grid::-webkit-scrollbar, .is-home .grid-2::-webkit-scrollbar, .sport-grid::-webkit-scrollbar { display: none; }
  .is-home .fac-grid > *, .is-home .quote-grid > *, .is-home .grid-2 > * { scroll-snap-align: start; }
  .is-home .fac-card:hover { transform: none; }

  /* --- home --- */
  :root { --hero-h: 300px; }
  .hero { border-radius: 0 0 24px 24px; }
  .hero-copy { top: 26px; }
  .hero-copy h1 { font-size: 26px; margin: 10px 0 6px; }
  .hero-copy p { font-size: 14px; }
  .hero-dots { bottom: 74px; }
  .hero-search { margin-top: -60px; }
  .search-card { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; border-radius: 18px; }
  .search-card .go { grid-column: 1 / -1; }
  .search-card .go .btn-primary { flex: 1; }
  .search-card label { font-size: 11px; }
  .trust-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; margin: 18px -12px 0; padding: 0 12px 6px; scrollbar-width: none; }
  .trust-strip::-webkit-scrollbar { display: none; }
  .sport-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 8px; gap: 10px; scrollbar-width: none; }
  .deal-row { grid-auto-columns: 82%; margin: 0 -12px; padding: 4px 12px 14px; }
  .how { margin-top: 36px; padding: 36px 0; }
  .how-steps { gap: 10px; }
  .how-step { padding: 16px 16px 16px 82px; min-height: 0; }
  .how-step i { position: absolute; left: 16px; top: 16px; }
  .how-step h3 { margin: 0 0 4px; font-size: 16px; }
  .how-step p { font-size: 13.5px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .ai-promo, .cta-band { padding: 22px; border-radius: 20px; }
  .ai-promo .btn, .cta-band .btn { width: 100%; justify-content: center; }
  .faq-wrap { gap: 14px; }

  /* --- search: chip toolbar, filter bottom sheet, list cards --- */
  .m-toolbar { display: flex; gap: 8px; overflow-x: auto; margin: 8px -12px 12px; padding: 2px 12px 4px; scrollbar-width: none; }
  .m-toolbar::-webkit-scrollbar { display: none; }
  .chip-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 30px; border: 1px solid var(--border);
              background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
  .chip-btn.on { background: var(--primary-50); border-color: var(--primary); color: var(--primary-700); }
  .chip-btn.primary { background: var(--text); border-color: var(--text); color: var(--surface); }
  .chip-btn .cnt { background: var(--primary); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; }
  .m-sheet { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 1150; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0 !important; margin: 0 !important;
             transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 0 100vmax rgba(2,12,8,0); padding-bottom: var(--m-safe); }
  .m-sheet.open { transform: none; box-shadow: 0 0 0 100vmax rgba(2,12,8,.5) !important; }
  .m-sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 12px 8px 6px 18px; border-bottom: 1px solid var(--border); }
  .m-sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--border); }
  .m-sheet-head b { font-size: 17px; }
  .search-grid { margin-top: 0; }
  .search-grid .fac-grid { grid-template-columns: 1fr; gap: 10px; }
  .search-grid .fac-card { flex-direction: row; border-radius: 16px; }
  .search-grid .fac-card:hover { transform: none; }
  .search-grid .fac-img { flex: 0 0 116px; aspect-ratio: auto; min-height: 124px; }
  .search-grid .fac-badges { top: 6px; left: 6px; }
  .search-grid .fac-badges .chip:not(:first-child) { display: none; }
  .search-grid .fac-body { padding: 10px 12px; gap: 3px; min-width: 0; }
  .search-grid .fac-body h3 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-grid .fac-meta { font-size: 12px; gap: 6px; }
  .search-grid .fac-meta + .fac-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .search-grid .price { font-size: 16px; }

  /* --- venue page --- */
  .fac-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .fac-head h1 { font-size: 22px; }
  .fac-head p { font-size: 13px; }
  .fac-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .fac-actions .btn { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11.5px; border-radius: 12px; justify-content: center; }
  .fac-actions .btn i { font-size: 17px; }
  .g-wrap { position: relative; }
  .gallery[data-swipe] { display: flex; grid-template-columns: none; grid-template-rows: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 12px -12px 0; padding: 0 12px; border-radius: 0; scrollbar-width: none; }
  .gallery[data-swipe]::-webkit-scrollbar { display: none; }
  .gallery[data-swipe] img, .gallery[data-swipe] img.more { display: block; flex: 0 0 90%; height: 230px; border-radius: 16px; scroll-snap-align: center; }
  .gallery[data-swipe] img:only-of-type { flex-basis: 100%; }
  .g-wrap .g-count { display: block; position: absolute; right: 22px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
  .m-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
  .m-facts > div { background: var(--surface); border-radius: 14px; padding: 10px 4px; text-align: center; box-shadow: 0 4px 16px -12px rgba(15,23,42,.3); }
  .m-facts b { display: block; font-size: 14px; } .m-facts span { font-size: 11px; color: var(--muted); }
  .detail-grid[style] { margin-top: 14px !important; }
  #book { scroll-margin-top: 64px; }
  .date-strip { margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .date-strip::-webkit-scrollbar { display: none; }
  .court-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .court-tabs button { white-space: nowrap; flex: 0 0 auto; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .slot { padding: 8px 6px; }
  .slot b { font-size: 13px; } .slot span { font-size: 12px; } .slot em { font-size: 10.5px; }
  .legend-row { font-size: 11.5px; gap: 8px; }
  .book-bar:not(.hidden) { position: fixed; left: 0; right: 0; bottom: calc(var(--m-tabs) + var(--m-safe)); z-index: 950; margin: 0; border-radius: 18px 18px 0 0; padding: 12px 14px; }
  .book-bar .slot-info { font-size: 13px; min-width: 0; }
  .book-bar .btn-lg { padding: 11px 16px; white-space: nowrap; }
  .m-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: fixed; left: 0; right: 0; bottom: calc(var(--m-tabs) + var(--m-safe)); z-index: 940;
           background: var(--surface); padding: 10px 14px; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(15,23,42,.08); }
  .m-cta b { display: block; font-size: 16px; } .m-cta span { font-size: 11.5px; color: var(--muted); }
  .m-cta .btn { white-space: nowrap; }
  .picking .m-cta { display: none; }
  body:has(.m-cta) { padding-bottom: calc(var(--m-tabs) + var(--m-safe) + 70px); }
  .rev-sum { grid-template-columns: 96px 1fr; gap: 12px; }
  .rev-sum > div:first-child > div:first-child { font-size: 32px !important; }
  #map { height: 200px; }

  /* --- checkout: summary first, sticky pay button --- */
  .checkout-steps { font-size: 12px; gap: 6px; overflow-x: auto; white-space: nowrap; }
  .checkout-grid > aside { order: -1; }
  .checkout-grid .sum-img { display: none; }
  .summary-card .card-body { padding: 14px 16px; }
  .pay-option { padding: 12px; gap: 10px; }
  .pay-actions { position: sticky; bottom: 0; z-index: 30; margin: 16px -16px -16px; padding: 12px 16px calc(12px + var(--m-safe)); background: var(--surface);
                 border-top: 1px solid var(--border); border-radius: 0 0 16px 16px; flex-wrap: nowrap; }
  .pay-actions .btn-primary { flex: 1; justify-content: center; }
  .pay-actions .btn-ghost { padding: 12px; font-size: 13px; }

  /* --- my bookings / tournaments --- */
  .tour-head { grid-template-columns: 1fr; }
  .booking-grid > aside .btn-block { padding: 13px; }
}
@media (max-width: 380px) {
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-tabs a { font-size: 9.5px; }
  .fac-actions .btn { font-size: 10.5px; }
}

/* =====================================================================
   Back office: booking page (header with quick actions, 2 columns)
   ===================================================================== */
.bk-head { padding: 18px 20px; margin-bottom: 16px; }
.bk-head-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.bk-no { font-size: 12px; font-weight: 800; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.bk-id h2 { margin: 2px 0 4px; font-size: 22px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.bk-phone { font-size: 15px; font-weight: 700; color: var(--primary); text-decoration: none; }
.bk-when { color: var(--text-2); font-size: 14px; }
.bk-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.qa { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface);
      color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: .15s; }
.qa i { font-size: 15px; color: var(--primary); }
.qa:hover { border-color: var(--primary); background: var(--primary-50); }
.qa-primary { background: var(--primary); border-color: var(--primary); color: #fff; } .qa-primary i { color: #fff; } .qa-primary:hover { background: var(--primary-700); color: #fff; }
.qa-success { background: #16a34a; border-color: #16a34a; color: #fff; } .qa-success i { color: #fff; } .qa-success:hover { background: #15803d; border-color: #15803d; color: #fff; }
.qa-danger { color: var(--danger); border-color: rgba(220,38,38,.35); margin-left: auto; } .qa-danger i { color: var(--danger); } .qa-danger:hover { background: #fef2f2; border-color: var(--danger); }
.qa.is-busy, .btn.is-busy { opacity: .6; pointer-events: none; }
.bk-pending { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--warning-bg); color: var(--text); }
.bk-pending > i { color: var(--warning); font-size: 18px; } .bk-pending > div { flex: 1; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.bk-grid aside { position: sticky; top: 76px; }
@media (max-width: 1100px) { .bk-grid { grid-template-columns: 1fr; } .bk-grid aside { position: static; } }
@media (max-width: 640px) { .qa { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 10px 8px; } .qa-danger { margin-left: 0; } .kv { grid-template-columns: 110px 1fr; } }
.input.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.dlg [hidden] { display: none !important; }
@media print { .bk-actions, .bk-pending { display: none !important; } .bk-grid { grid-template-columns: 1fr; } }

/* Day board: "now" mode */
.board-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.board .cell.now { outline: 3px solid #f59e0b; outline-offset: -3px; box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.board.only-now td.off-now { display: none; }
.board.only-now td { min-width: 190px; }
.now-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #b45309; background: #fef3c7; padding: 4px 10px; border-radius: 20px; }

/* =====================================================================
   Back office: slot times & prices (custom slots editor)
   ===================================================================== */
.ss-top { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.ss-quick { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)) minmax(220px, 1.6fr); gap: 10px; align-items: end; }
.ss-quick-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ss-quick-foot #qPreview { flex: 1; min-width: 160px; }
.ss-days { display: flex; gap: 3px; flex-wrap: nowrap; }
.ss-day { width: 28px; height: 30px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; padding: 0; line-height: 1; }
.ss-day small { display: none; }
.ss-day.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ss-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input-sm { height: 32px; padding: 4px 8px; font-size: 13px; width: auto; }
.ss-head, .ss-row { display: grid; grid-template-columns: 28px 222px 112px 112px 64px minmax(110px, 1fr) 100px 100px 46px 70px; gap: 8px; align-items: center; }
.ss-head { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 0 8px 6px; border-bottom: 1px solid var(--border); }
.ss-head small { text-transform: none; font-weight: 500; }
.ss-row { padding: 8px; border-bottom: 1px solid var(--border); border-radius: 10px; }
.ss-row:hover { background: var(--surface-2); }
.ss-row .input { height: 34px; padding: 4px 8px; }
.ss-row.off { opacity: .55; }
.ss-row.bad { background: #fef2f2; }
.ss-row.bad .input[type=time] { border-color: var(--danger); }
.ss-n { font-weight: 800; color: var(--muted); text-align: center; }
.ss-len { font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.ss-act { display: flex; gap: 2px; justify-content: flex-end; }
.ss-err { grid-column: 2 / -1; color: var(--danger); font-size: 12.5px; font-weight: 600; }
.ss-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.ss-bulk .input-sm { width: 150px; }
.ss-timeline { margin-bottom: 16px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.ss-tl-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.ss-tl-bar { position: relative; height: 52px; background: var(--surface); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.ss-tl-slot { position: absolute; top: 5px; bottom: 5px; border-radius: 7px; background: var(--primary-50); border: 1.5px solid var(--primary); color: var(--primary-700);
              display: flex; flex-direction: column; justify-content: center; padding: 0 4px; overflow: hidden; white-space: nowrap; font-size: 10.5px; line-height: 1.2; }
.ss-tl-slot.offer { background: #fff1f2; border-color: #e11d48; color: #be123c; }
.ss-tl-slot.bad { background: #fee2e2; border-color: var(--danger); color: var(--danger); z-index: 2; }
.ss-tl-scale { position: relative; height: 18px; margin-top: 4px; }
.ss-tl-scale span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.ss-dim { opacity: .55; }
.ss-savebar { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 16px; margin: 0 -4px;
              background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 -8px 24px rgba(15,23,42,.08); }
.ss-savebar #ssStatus { margin-right: auto; }
@media (max-width: 1280px) { .ss-quick { grid-template-columns: repeat(3, minmax(110px, 1fr)); } }
@media (max-width: 1100px) {
  .ss-head { display: none; }
  .ss-row { grid-template-columns: 28px 1fr 1fr; grid-template-areas: none; border: 1px solid var(--border); margin-bottom: 8px; }
  .ss-row .ss-days { grid-column: 2 / -1; }
  .ss-row .ss-len { grid-column: 2; }
  .ss-row [data-f=label] { grid-column: 2 / -1; }
  .ss-row .ss-act { grid-column: 3; }
}
@media (max-width: 640px) { .ss-quick { grid-template-columns: 1fr 1fr; } .ss-quick .field:last-child { grid-column: 1 / -1; } }
[hidden] { display: none !important; }
.ss-tools .input-sm { width: 130px; }
.ss-tl-head .input-sm { width: 110px; }
.card-head .ss-tools { margin-left: auto; }

/* ---------- slot times & prices (simple) ---------- */
.step-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; margin-right: 6px; vertical-align: middle; }
.gen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.gen-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.time-pick { display: flex; align-items: center; gap: 4px; }
.time-pick select.input { width: auto; min-width: 64px; flex: 1; padding-right: 22px; }
.time-pick b { color: var(--muted); }

.lbl-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.lbl-row label:first-child { margin: 0; }
.offer-tag { display: inline-block; padding: 2px 8px; border-radius: 8px; background: #fff1f2; color: #be123c; font-weight: 800; }
.price-slot { display: flex; flex-direction: column; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--primary-50); }
.price-slot b { font-size: 16px; } .price-slot span { font-size: 12.5px; color: var(--muted); }
.hist-list > div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.hist-list p { margin: 6px 0 2px; font-size: 13.5px; } .hist-list small { color: var(--muted); }
@media (max-width: 760px) { .gen-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- choose slots (offers, coupons, memberships) ---------- */
.sp-all { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; cursor: pointer; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.sp-slot { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; margin: 0; background: var(--surface); }
.sp-slot input { position: absolute; opacity: 0; pointer-events: none; }
.sp-slot b { font-size: 12.5px; } .sp-slot small { font-size: 12px; color: var(--muted); } .sp-slot s { color: var(--muted); }
.sp-slot.on { border-color: var(--primary); background: var(--primary-50); }
.sp-slot.on small { color: var(--primary-700); font-weight: 700; }
.dlg-steps > .field { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.dlg-steps > .field:last-child { border-bottom: 0; }
.disc-row { display: flex; gap: 8px; } .disc-row select.input { width: 160px; flex: none; } .disc-row .input[type=number] { flex: 1; }
.sp-grid .sp-slot { display: flex !important; flex-direction: column; align-items: flex-start; }
.sp-grid .sp-slot b, .sp-grid .sp-slot small { display: block; white-space: nowrap; }

/* fold cards */
.fold-head { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 10px; }
.fold-head > h3 { flex: 1; min-width: 0; }
.fold-head [data-fold-btn] { margin-left: auto; flex: 0 0 auto; }
.fold-head:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.fold-card.folded > :not(.fold-head) { display: none !important; }
.fold-card.folded > .fold-head { border-bottom: 0; }
.fold-card [data-fold-btn] i { transition: transform .2s; }
.fold-card.folded [data-fold-btn] i { transform: rotate(-90deg); }

/* slot prices: week table */
.week-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.week-table th, .week-table td { padding: 6px; border-bottom: 1px solid var(--border); text-align: center; }
.week-table thead th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; color: var(--muted); position: sticky; top: 0; }
.week-table tbody th { text-align: left; white-space: nowrap; min-width: 150px; }
.week-table tbody th b { display: block; } .week-table tbody th small { color: var(--muted); font-weight: 500; }
.week-table tr.off { opacity: .55; }
.week-table td.na { color: var(--muted); }
.week-table td.dim { opacity: .3; }
.wk-cell { width: 100%; min-width: 86px; border: 1.5px solid var(--border); background: var(--surface); border-radius: 10px; padding: 6px 4px; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.wk-cell:hover { border-color: var(--primary); background: var(--primary-50); }
.wk-cell s { font-size: 11px; color: var(--muted); }
.wk-cell.unset { border-style: dashed; border-color: #f5a524; background: #fffbeb; }

/* language */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lang-switch:hover { border-color: var(--primary); color: var(--primary-700); }
.lang-m { font-size: 13px !important; font-weight: 800; }
html[lang="bn"] body, html[lang="bn"] .input, html[lang="bn"] .btn, html[lang="bn"] button { font-family: 'Hind Siliguri', 'Plus Jakarta Sans', 'Segoe UI', sans-serif; }
html[lang="bn"] .m-tabs a { font-size: 10px; }

/* =====================================================================
   Compact density (round 9): less empty space everywhere, same look.
   ===================================================================== */
:root { --topbar-h: 52px; }
.content { padding: 14px 18px 28px; }
.page-head { margin-bottom: 12px; gap: 10px; }
.page-head h1 { font-size: 19px; }
.card { margin-bottom: 12px; }
.card-head { padding: 9px 14px; gap: 8px; }
.card-head h2, .card-head h3 { font-size: 14.5px; }
.card-body { padding: 12px 14px; }
.card-foot { padding: 9px 14px; }
.grid { gap: 12px; }
.form-grid { gap: 10px 14px; }
.form-row { gap: 10px; }
.field { gap: 4px; }
.field > label, .lbl { font-size: 12px; }
.input, select.input, textarea.input { height: 34px; padding: 5px 10px; font-size: 13.5px; }
textarea.input { height: auto; }
.btn { height: 34px; padding: 0 13px; font-size: 13px; gap: 6px; }
.btn-sm { height: 30px; padding: 0 10px; }
.btn-lg { height: 40px; }
.alert { padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
.kpi-grid { gap: 10px; }
.kpi { padding: 10px 12px; gap: 10px; }
.vgrid { margin-bottom: 12px; }
.vg-table th, .vg-table td { height: 32px; padding: 0 8px; }
.vg-table thead tr.vg-filter th { top: 33px; height: 34px; padding: 3px 4px; }
.table th { padding: 7px 10px; }
.table td { padding: 7px 10px; }
.filter-bar { gap: 8px 10px; }
.mt-3 { margin-top: 12px !important; }
.mb-3 { margin-bottom: 12px !important; }
/* public site */
.section { padding: 30px 0 4px; }
.section-head { margin-bottom: 12px; }
.section-head h2 { font-size: 21px; }
.how { margin-top: 40px; padding: 42px 0; }
.how-steps { margin: 6px 0 24px; gap: 14px; }
.trust-strip { margin-top: 20px; gap: 10px; }
.fac-grid { gap: 14px; }
.pub-footer { margin-top: 40px; padding: 36px 0 18px; }
.cta-band { padding: 26px; }
.ai-promo { padding: 26px; }
.detail-grid { gap: 16px; }
.empty-state { padding: 30px 16px; }
@media (max-width: 767px) {
  .content { padding: 10px 10px 24px; }
  .section { padding: 22px 0 2px; }
  .card-body { padding: 10px 12px; }
}

/* ---------------- sign-in, sign-up and partner wizards ---------------- */
.auth-wrap { min-height: 0; padding: 22px 12px 30px; place-items: start center; }
.auth-card { padding: 20px 22px; border-radius: 12px; box-shadow: 0 10px 28px rgba(15,23,42,.10); }
.auth-card.mid { width: min(620px, 100%); }
.auth-card .field { margin-bottom: 10px; }
.auth-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-card .form-row .field { margin-bottom: 10px; }
@media (max-width: 560px) { .auth-card .form-row { grid-template-columns: 1fr; gap: 0; } .auth-card { padding: 16px; } }
.auth-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.auth-head h1 { font-size: 19px; margin: 0; line-height: 1.25; }
.auth-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.auth-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50, #e8f8f0); color: var(--primary); font-size: 17px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.auth-row .check { margin: 0; }
.auth-foot { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-card .hint { font-size: 12.5px; color: var(--muted); margin: -2px 0 10px; }
.auth-card .check { font-size: 13px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; font-weight: 600; }
.btn-link:disabled { color: var(--muted); cursor: default; }
.btn-link:hover:not(:disabled) { text-decoration: underline; }
.otp-input { letter-spacing: .5em; font-size: 20px !important; height: 44px !important; text-align: center; font-variant-numeric: tabular-nums; }
.wiz-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 14px; padding: 0; counter-reset: none; }
.wiz-steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding-bottom: 6px; border-bottom: 3px solid var(--border); min-width: 0; }
.wiz-steps li b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-3, #eef1f4); color: var(--text-2); }
.wiz-steps li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-steps li.on { color: var(--text); font-weight: 600; border-color: var(--primary); }
.wiz-steps li.on b { background: var(--primary); color: #fff; }
.wiz-steps li.done { color: var(--primary); border-color: var(--primary); }
.wiz-steps li.done b { background: var(--primary); color: #fff; }
@media (max-width: 420px) { .wiz-steps li span { display: none; } .wiz-steps li.on span { display: inline; } }
.review-box { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px dashed var(--border-strong); border-radius: 8px; background: var(--surface-2); margin-bottom: 10px; font-size: 13px; }
.review-box span { color: var(--muted); font-size: 12.5px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 36px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 30px; height: 28px; cursor: pointer; }
.pw-meter { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.pw-meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--border); position: relative; overflow: hidden; }
.pw-meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: #dc2626; transition: width .2s, background .2s; }
.pw-meter.s1 i::after { width: 20%; } .pw-meter.s2 i::after { width: 45%; background: #f59e0b; } .pw-meter.s3 i::after { width: 65%; background: #84cc16; }
.pw-meter.s4 i::after { width: 85%; background: #16a34a; } .pw-meter.s5 i::after { width: 100%; background: #15803d; }

/* ---------------- password & sign-ins, security centre ---------------- */
.sec-page { padding-top: 16px; padding-bottom: 20px; }
.sec-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.sec-admin { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 991px) { .sec-grid, .sec-admin { grid-template-columns: minmax(0, 1fr); } }
.sec-note { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); flex-wrap: wrap; }
.table.compact td, .table.compact th { padding: 6px 10px; }
.table.checks td { vertical-align: top; border-bottom: 1px solid var(--border); }
.table.checks .ck-ico { width: 28px; font-size: 15px; }
.ck-ok .ck-ico { color: #16a34a; } .ck-bad .ck-ico { color: #dc2626; } .ck-warn .ck-ico { color: #d97706; } .ck-info .ck-ico { color: #64748b; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; }
.btn-danger-soft { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.btn-danger-soft:hover { background: #fee2e2; }
.mini-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.form-row.tight { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.form-row.tight .field { flex: 1 1 140px; }
.fb-row { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: flex-end; }
.kpi-tight .kpi-value { font-size: 20px; }
.px-3 { padding-left: 12px; padding-right: 12px; } .py-2 { padding-top: 8px; padding-bottom: 8px; }
.p-0 { padding: 0 !important; }
@media (max-width: 767px) { .form-row { gap: 0 10px; } }
.field > label { margin-bottom: 0; }

/* ---------------- shareholders ---------------- */
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row.three .span-2 { grid-column: span 2; }
@media (max-width: 767px) { .form-row.three { grid-template-columns: minmax(0, 1fr); } .form-row.three .span-2 { grid-column: auto; } }
.dlg-body .form-section.mini-title { margin: 4px 0 6px; }
.share-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 9px 14px; margin-bottom: 12px; font-size: 13px; }
.share-meter { flex: 0 0 220px; height: 8px; border-radius: 8px; background: var(--surface-3, #eef1f4); overflow: hidden; }
.share-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #13c27a); border-radius: 8px; }
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; }
.doc-row > i { grid-row: span 2; color: #dc2626; font-size: 16px; }
.doc-row a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row small { grid-column: 2; color: var(--muted); font-size: 11.5px; }
.doc-row button { grid-column: 3; grid-row: 1 / span 2; }
.due-list { display: flex; flex-direction: column; gap: 6px; }
.due-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.due-row.due { border-color: #fcd34d; background: #fffbeb; }
.dist-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dist-head > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.dist-head span { display: block; font-size: 11.5px; color: var(--muted); }
.dist-head b { font-size: 16px; }
.mode-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; }
.mode-note.on { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.mode-note.off { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* ---------- utilities (replace repeated inline styles) ---------- */
.m-0 { margin: 0 !important; } .ml-auto { margin-left: auto !important; } .mt-4 { margin-top: 16px !important; } .mt-5 { margin-top: 24px !important; }
.text-warning { color: var(--warning); } .text-center { text-align: center; } .text-upper { text-transform: uppercase; }
.pre-line { white-space: pre-line; } .minw-0 { min-width: 0; } .rel { position: relative; } .bg-soft { background: var(--surface-3); }
.mw-460 { max-width: 460px; } .mw-500 { max-width: 500px; } .mw-720 { max-width: 720px; }
.stack-8 { display: grid; gap: 8px; } .row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.split-340 { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; }
@media (max-width: 991px) { .split-340 { grid-template-columns: 1fr; } }

/* =====================================================================
   UI QUALITY PASS - the 10 points
   1 visual consistency  2 typography  3 colour  4 spacing & layout  5 components
   6 iconography  7 responsive  8 accessibility  9 UI states  10 design system (tokens)
   ===================================================================== */
:root {
  /* 10. design system: one spacing + type scale used everywhere */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px;
  --radius: 6px; --radius-sm: 4px; --radius-lg: 8px;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
  --muted: #5b6b80;   /* 3. darker muted text: passes 4.5:1 on white */
}
[data-mode="dark"] { --muted: #9aa8bb; }

/* 2. typography: consistent sizes, weights and rhythm */
body { font-size: var(--fs-md); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 650; }
.field > label, label.lbl { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.small, small { font-size: var(--fs-xs); }
.num, .kpi .v, td.num { font-variant-numeric: tabular-nums; }

/* 4. spacing & layout: tighter, even gaps, no double margins */
.card { margin-bottom: var(--sp-4); }
.card-head { padding: var(--sp-3) var(--sp-4); }
.card-body { padding: var(--sp-4); }
.card-body > :last-child, .field:last-child { margin-bottom: 0; }
.grid { gap: var(--sp-4); }
.filter-card { margin-bottom: var(--sp-3); }
.filter-card > .card-body { padding: var(--sp-3) var(--sp-4); }
.filter-bar .field { margin-bottom: 0; }

/* 5 + 9. components & their states */
.btn { border-radius: var(--radius); transition: background .15s, box-shadow .15s, transform .05s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn.disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--primary-contrast) transparent var(--primary-contrast) transparent; animation: dbSpin .7s linear infinite; }
.btn-ghost.is-loading::after { border-color: var(--primary) transparent var(--primary) transparent; }
@keyframes dbSpin { to { transform: rotate(360deg); } }
.input, select.input, textarea.input { border-radius: var(--radius); }
.input:disabled, .input[readonly] { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.input[aria-invalid="true"], .input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.empty { padding: var(--sp-5) var(--sp-4); }
.empty i { display: block; font-size: 26px; opacity: .45; margin-bottom: var(--sp-2); }
.badge { border-radius: 999px; font-weight: 600; }

/* 6. iconography: one size and alignment for every Font Awesome icon */
.btn > i, .sb-link > i, .card-head h3 > i, .card-head h2 > i { width: 1.15em; text-align: center; flex: 0 0 auto; }
.icon-btn { min-width: 34px; min-height: 34px; border-radius: var(--radius); }
.icon-btn i { font-size: 14px; }

/* 8. accessibility: visible keyboard focus, readable links, reduced motion */
a:focus-visible, button:focus-visible, .btn:focus-visible, .icon-btn:focus-visible, .sb-link:focus-visible,
[tabindex]:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: var(--focus-ring); }
.input:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--primary); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* 7. responsive: tables scroll inside their card, controls are touch-sized on phones */
.card-body.p-0, .card-body.tight { overflow-x: auto; }
@media (max-width: 767px) {
  .card-head { padding: var(--sp-3); }
  .card-body { padding: var(--sp-3); }
  .filter-bar .field { max-width: none; flex: 1 1 140px; }
  .filter-bar .actions, .filter-bar > .btn { flex: 1 1 100%; }
  .btn, .input, select.input { min-height: 40px; }
  .input, select.input, textarea.input { font-size: 16px; } /* stops iOS zoom */
  .table th, .table td { padding: 8px; }
}

/* ---------- user dialog: menu permissions ---------- */
.dlg-box.dlg-lg { width: min(760px, 100%); }
.perm-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-3) var(--sp-4); margin: var(--sp-3) 0 0; background: var(--surface-2); }
.perm-box legend { font-weight: 650; font-size: var(--fs-sm); padding: 0 6px; display: flex; gap: 6px; align-items: center; color: var(--text-2); }
.perm-mode { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-2); }
.perm-tools { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-2); }
.perm-list[hidden] { display: none; }
.perm-tools { grid-column: 1 / -1; margin: 0; }
.perm-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); display: grid; gap: 4px; align-content: start; }
.perm-group .check { font-size: var(--fs-sm); display: flex; gap: 6px; align-items: center; }
.perm-sec { display: flex; gap: 6px; align-items: center; padding-bottom: 4px; margin-bottom: 2px; border-bottom: 1px dashed var(--border); color: var(--primary-700); }
.perm-group .badge { font-size: 10px; padding: 1px 6px; margin-left: auto; }
.otp-switch { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.otp-switch > i { font-size: 18px; }
