/* ===== Version 3 additions ===== */
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpis .kpi { border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: -1px 0 0 -1px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi:nth-child(3) { border-left: 1px solid var(--line); } }
.nav-group { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6F819A; font-weight: 600; padding: 12px 12px 4px; }
.nav-group:first-child { padding-top: 2px; }
.nav a { padding: 7px 12px; }
@media (max-width: 960px) { .nav-group { display: none; } }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); }
.strong { font-weight: 600; }
.demo-note { background: #FFF8E6; border: 1px dashed #E2C27A; color: #6A4B0B; border-radius: var(--r); padding: 9px 14px; font-size: 13.5px; }
.demo-note b { background: #E2C27A; color: #3B2A05; border-radius: 4px; padding: 0 6px; margin-right: 4px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.sw.a, .ch-a, .dn-a { background: #2F5D8A; fill: #2F5D8A; stroke: #2F5D8A; }
.sw.b, .ch-b { background: #C98B2B; fill: #C98B2B; }
.dn-b { stroke: #E3E8EE; }
.dn-t { font: 600 20px var(--display); fill: var(--ink); }
.chart svg { width: 100%; height: auto; display: block; }
.ch-grid { stroke: #E3E8EE; } .ch-tick { font-size: 11px; fill: var(--muted); }
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut svg { width: 120px; height: 120px; }
.bb { display: flex; flex-direction: column; gap: 6px; }
.bb-row, .catrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13px; }
.catrow { grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 70px; }
.bb-row b, .catrow b { text-align: right; }
.bb-lbl { color: var(--muted); }
.bb-track { height: 10px; background: #E9EDF2; border-radius: 99px; overflow: hidden; }
.bb-fill { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bb-fill.ok { background: #2E8B57; } .bb-fill.warn { background: #D08A2E; } .bb-fill.bad { background: #C2412D; } .bb-fill.work { background: #6E8BAA; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 14px 18px 18px; }
.site-mini { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; background: var(--surface); }
.site-mini.warn { border-color: #EBCBAE; } .site-mini.bad { border-color: #E9BDB8; }
.site-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.site-card { text-decoration: none; color: inherit; transition: box-shadow .15s; }
.site-card:hover { box-shadow: 0 6px 20px rgba(15, 27, 45, .08); }
.wa { background: #E7DED3; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wa-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #3D4A3F; font-weight: 600; }
.wa-bubble { background: #DCF8C6; border-radius: 10px 10px 10px 2px; padding: 10px 12px; white-space: pre-line; font-size: 13.5px; line-height: 1.55; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); max-width: 520px; }
.wa-time { font-size: 11.5px; color: #66705F; }
.ask { display: flex; flex-direction: column; min-height: 520px; }
.ask-log { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: auto; max-height: 60vh; }
.ask-msg { display: flex; gap: 10px; align-items: flex-start; }
.ask-msg.me { justify-content: flex-end; }
.ask-av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.ask-bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.ask-msg.me .ask-bubble { background: var(--accent); color: #fff; border-color: var(--accent); }
.ask-bubble.pending { color: var(--muted); }
.ask-table .t { font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.ask-compose { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.stepper { display: flex; gap: 4px; }
.stepper span { width: 22px; height: 6px; border-radius: 99px; background: #E3E8EE; }
.stepper span.on { background: var(--accent); }
.stepper.big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper.big div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border-top: 4px solid #E3E8EE; padding-top: 8px; }
.stepper.big div.on { color: var(--ink); border-top-color: var(--accent); }
.stepper.big i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: #E3E8EE; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.stepper.big div.on i { background: var(--accent); color: #fff; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tool-card { display: flex; gap: 12px; padding: 12px; align-items: center; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.tool-card:hover { border-color: var(--accent); }
.qr svg { display: block; border-radius: 6px; }
.tool-detail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
@media (max-width: 620px) { .tool-detail { grid-template-columns: 1fr; } }
.qr-sticker { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: #fff; }
.qr-sticker b { font-family: var(--display); font-size: 22px; letter-spacing: .06em; }
.qr-sticker small { color: var(--muted); }
.qr-print { display: flex; justify-content: center; padding-top: 20px; }
.qr-sticker .qr-keyword { max-width: 230px; font-size: 9px; overflow-wrap: anywhere; }
.big-check { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px; font-size: 19px; font-weight: 600; border: 0; border-radius: 14px; background: var(--accent); color: #fff; cursor: pointer; font-family: var(--display); letter-spacing: .04em; }
.big-check svg { width: 24px; height: 24px; }
.big-check:hover { filter: brightness(1.08); }
.big-time { font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1.1; }
.selfie { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.att-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.att-day { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; font-size: 12.5px; background: #F4FAF6; }
.att-day.late { background: var(--warn-bg); }
.portal-hero { background: linear-gradient(120deg, #13203A, #2F5D8A); color: #fff; border-radius: 14px; padding: 22px 24px; }
.portal-hero h2 { font-size: 28px; }
.next-pay { border-radius: 12px; padding: 14px 16px; background: var(--accent-soft); }
.next-pay.overdue { background: var(--bad-bg); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-m { border: 2px solid var(--line); background: var(--surface); border-radius: 10px; padding: 12px 6px; font-weight: 700; cursor: pointer; }
.pay-m.bkash { color: #D12053; } .pay-m.nagad { color: #EC1C24; } .pay-m.card { color: var(--accent); font-size: 13px; }
.pay-m.on { border-color: currentColor; box-shadow: 0 0 0 3px rgba(209, 32, 83, .08); }
.gateway { border-radius: 12px; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; color: #fff; background: #2F5D8A; }
.gateway.bkash { background: #D12053; } .gateway.nagad { background: #EC1C24; }
.spin-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pay-ok { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 10px; }
.pay-ok .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.building { display: flex; flex-direction: column; gap: 6px; }
.floor { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.floor-lbl { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.unit { border: 0; border-radius: 8px; padding: 10px; text-align: left; display: flex; flex-direction: column; gap: 1px; cursor: pointer; font: inherit; font-size: 12.5px; }
.unit b { font-size: 16px; font-family: var(--display); }
.fl-available, .unit.fl-available { background: #DFF1E7; color: #174F37; }
.fl-booked, .unit.fl-booked { background: #FBEBDC; color: #7A3A0E; }
.fl-sold, .unit.fl-sold { background: #DDE5EE; color: #2B4864; }
.unit:hover { outline: 2px solid var(--accent); }
.ground { margin-left: 100px; text-align: center; font-size: 12px; color: var(--muted); border-top: 3px solid #9AA8B8; padding-top: 4px; }
.filters > select.select { width: auto; flex: 0 0 auto; }
.dl > div > span:first-child { display: block; font-size: 12px; color: var(--muted); }
.dl > div > b { font-weight: 600; }
.banner.ok-b { background: var(--ok-bg); border-color: #B9DEC8; }
.cal-wrap { overflow-x: auto; padding: 0 0 6px; }
.cal { display: grid; min-width: 860px; grid-auto-rows: 40px; position: relative; }
.cal-h { font-size: 11.5px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.cal-h b { font-size: 14px; color: var(--ink); }
.cal-h.today, .cal-cell.today { background: #EEF4FA; }
.cal-room { grid-column: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.2; }
.cal-room b { font-size: 14px; color: var(--ink); }
.cal-cell { border: 0; border-bottom: 1px solid var(--line); border-left: 1px solid #EEF1F4; background: transparent; cursor: pointer; }
.cal-cell:hover { background: #F2F6FA; }
.cal-bk { margin: 6px 2px; border: 0; border-radius: 6px; font-size: 12px; font-weight: 600; text-align: left; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; z-index: 1; }
.cal-bk.booked, .sw.bk-booked { background: #CFE0F1; color: #1D3F63; }
.cal-bk.checked_in, .sw.bk-in { background: #2E8B57; color: #fff; }
.cal-bk.checked_out, .sw.bk-out { background: #DDE2E8; color: #4A5868; }
.room-tag { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-weight: 600; font-size: 13px; }
.t tr.sec td { background: var(--surface-2); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.t tr.tot td { font-weight: 600; border-top: 1px solid var(--line); }
.t tr.grand td { font-weight: 700; font-size: 17px; border-top: 2px solid var(--ink); }
.t tr.row-bad td { background: #FDF3F2; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.doc-card { text-align: left; padding: 14px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; font: inherit; color: inherit; }
.doc-card.expired { border-color: #E9BDB8; background: #FFF8F7; } .doc-card.soon { border-color: #EBCBAE; }
.ch-badge { flex: none; width: 38px; height: 26px; border-radius: 6px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #fff; background: #5B6B7C; }
.ch-badge.whatsapp { background: #25A35A; }
.switch-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.demo-phone { background: #111; color: #fff; border-radius: 22px; padding: 14px; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.demo-phone-top { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9aa; text-align: center; }
.demo-sms { background: #2B2B2E; border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.demo-sms b { display: block; font-size: 11.5px; color: #8fb3d9; letter-spacing: .08em; }
.login-col .demo-phone { margin: 0 auto; }
@media print { .demo-phone, .demo-note { display: none !important; } }
