/* EziSociety — Housing Society Management System · Ezitech Software House */
:root {
  --bg: #f3f6f5; --card: #fff; --ink: #0f1f1a; --ink2: #334155; --muted: #6b7a76; --line: #e3eae7; --line2: #eef3f1;
  --primary: #0e9f6e; --primary-d: #047857; --primary-l: #e6f6ef; --dark: #0b2a24; --dark2: #12392f;
  --gold: #d4a72c; --gold-l: #fbf3dc; --red: #dc2626; --red-l: #fdecec; --blue: #2563eb; --blue-l: #e8effd;
  --purple: #7c3aed; --purple-l: #f1eafd; --amber: #f59e0b;
  --r: 14px; --r-sm: 10px; --sh: 0 1px 2px rgba(15,31,26,.04), 0 4px 16px rgba(15,31,26,.05);
  --sh-lg: 0 10px 40px rgba(11,42,36,.16); --side: 268px;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14.5px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--primary-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
input, select, textarea, button { font: inherit; color: inherit; }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.d-b { display: block; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.pos { color: var(--primary-d); }
.neg { color: var(--red); }
.warn { color: #b45309; }
.grow { flex: 1; }
.mt { margin-top: 14px; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---------- animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes grow { from { width: 0; } }
@keyframes shimmer { 0%, 100% { opacity: .05; } 50% { opacity: .35; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.08); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,159,110,.55); } 100% { box-shadow: 0 0 0 16px rgba(14,159,110,0); } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 30%, 70% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes ring { from { stroke-dasharray: 0 999; } }
@keyframes spin { to { transform: rotate(360deg); } }
.rise { animation: fadeUp .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.pop { animation: pop .45s var(--ease) both; }
.shake { animation: shake .5s; }
.content > * { animation: fadeUp .55s var(--ease) both; }
.content > *:nth-child(2) { animation-delay: .05s; } .content > *:nth-child(3) { animation-delay: .1s; }
.content > *:nth-child(4) { animation-delay: .15s; } .content > *:nth-child(5) { animation-delay: .2s; } .content > *:nth-child(n+6) { animation-delay: .25s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- layout ---------- */
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: radial-gradient(120% 60% at 0% 0%, #154a3d 0%, var(--dark) 55%); color: #cfe3dc;
  display: flex; flex-direction: column; z-index: 50; transition: transform .35s var(--ease); }
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #34d399 100%); box-shadow: 0 6px 18px rgba(14,159,110,.4); }
.brand-logo.lg { width: 50px; height: 50px; border-radius: 14px; }
.brand-txt { min-width: 0; flex: 1; }
.brand-name { font-weight: 700; color: #fff; font-size: 14.5px; line-height: 1.25; }
.brand-sub { font-size: 11.5px; color: #8fb3a7; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; scrollbar-width: thin; scrollbar-color: #24564a transparent; }
.nav-group { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6f978a; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9.5px 12px; border-radius: 10px; color: #c4dbd3; font-weight: 500; position: relative; transition: background .2s, color .2s, transform .2s; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; transform: translateX(2px); }
.nav a.active { background: linear-gradient(90deg, rgba(52,211,153,.22), rgba(52,211,153,.06)); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #34d399; }
.nav-count { margin-left: auto; font-style: normal; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.me { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.me-txt { min-width: 0; } .me-txt b { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt small { color: #8fb3a7; font-size: 11.5px; }
.logout { color: #9fc2b6; padding: 8px; border-radius: 8px; } .logout:hover { background: rgba(255,255,255,.08); color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #34d399, var(--primary-d));
  color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl { width: 96px; height: 96px; font-size: 30px; border: 4px solid #fff; box-shadow: var(--sh-lg); }
.main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: rgba(243,246,245,.82);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.tb-search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 0 12px; color: var(--muted); transition: box-shadow .2s, border-color .2s; }
.tb-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,159,110,.12); }
.tb-search input { border: 0; outline: 0; background: none; padding: 10px 0; flex: 1; min-width: 0; color: var(--ink); }
.tb-search kbd { font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.gs-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border-radius: 12px; box-shadow: var(--sh-lg); border: 1px solid var(--line);
  overflow: hidden; display: none; max-height: 70vh; overflow-y: auto; }
.gs-results.on { display: block; animation: pop .2s var(--ease); }
.gs-results a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; color: var(--ink); border-bottom: 1px solid var(--line2); }
.gs-results a:hover, .gs-results a.sel { background: var(--primary-l); text-decoration: none; }
.gs-results em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--line2); color: var(--muted); min-width: 62px; text-align: center; }
.gs-results b { display: block; font-size: 13.5px; } .gs-results small { color: var(--muted); font-size: 12px; }
.gs-results .gs-empty { padding: 14px; color: var(--muted); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-bell { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink2); }
.tb-bell:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.tb-bell i { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; min-width: 19px; height: 19px;
  border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.tb-date { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; background: var(--card); border: 1px solid var(--line); padding: 9px 12px; border-radius: 12px; white-space: nowrap; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px 28px 6px; flex-wrap: wrap; animation: fadeUp .5s var(--ease) both; }
.ph-title h1 { font-size: 25px; font-weight: 800; }
.ph-title p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.content { padding: 16px 28px 28px; flex: 1; }
.foot { padding: 18px 28px 26px; color: var(--muted); font-size: 12.5px; text-align: center; }
.only-mobile { display: none !important; }
.backdrop { display: none; }
.tabbar { display: none; }

/* ---------- components ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid var(--line); padding: 20px; margin-bottom: 18px; }
.card.no-pad { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h.pad { padding: 18px 20px 0; }
.card-h h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-h h3 .ic { color: var(--primary); }
.link { font-weight: 600; font-size: 13px; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid .card { margin-bottom: 0; }
.grid + .grid, .grid + .card, .card + .grid { margin-top: 18px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-3-1 { grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr); }
.g-1-2 { grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); }
.g-3-1 > div > .card, .g-1-2 > div > .card { margin-bottom: 18px; }
.span-2 { grid-column: span 2; }
.sticky { position: sticky; top: 84px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 11px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: #c8d6d1; box-shadow: 0 4px 12px rgba(15,31,26,.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(14,159,110,.3); }
.btn-primary:hover { border-color: transparent; box-shadow: 0 8px 22px rgba(14,159,110,.38); }
.btn-danger { background: var(--red); color: #fff; border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost.btn-danger { color: var(--red); background: transparent; }
.btn-wa { background: #25d366; color: #fff; border-color: transparent; }
.btn-wa:hover { border-color: transparent; box-shadow: 0 6px 16px rgba(37,211,102,.35); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 20px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.pulse { animation: pulse 1.2s infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink2); cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: var(--line2); text-decoration: none; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.danger { color: var(--red); }
.stack-btns { display: grid; gap: 8px; margin-top: 16px; }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; animation: slideIn .4s var(--ease); }
.alert-success { background: var(--primary-l); color: var(--primary-d); border: 1px solid #b7e6d2; }
.alert-error { background: var(--red-l); color: #b91c1c; border: 1px solid #f7caca; }
.alert span { flex: 1; }
.alert-x { background: none; border: 0; font-size: 20px; cursor: pointer; color: inherit; opacity: .6; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.b-available, .b-active { background: var(--primary-l); color: var(--primary-d); }
.b-booked { background: var(--blue-l); color: var(--blue); }
.b-sold, .b-completed { background: var(--purple-l); color: var(--purple); }
.b-reserved { background: #fef3c7; color: #b45309; }
.b-cancelled { background: var(--red-l); color: var(--red); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: var(--line2); color: var(--ink2); font-size: 12px; font-weight: 600; }
.tag.gold { background: var(--gold-l); color: #92700c; }
.dot-c { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stats.s3 { grid-template-columns: repeat(3, 1fr); }
.stats.s5 { grid-template-columns: repeat(5, 1fr); }
.stat { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--sh); transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.stat:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,31,26,.09); }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--tone-l, var(--line2)); opacity: .6; }
.stat-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-l, var(--line2)); color: var(--tone, var(--ink2)); flex-shrink: 0; position: relative; z-index: 1; }
.stat-b { min-width: 0; position: relative; z-index: 1; }
.stat small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; white-space: nowrap; }
.stat-sub { font-size: 12px; color: var(--muted); }
.stat-sub .up { color: var(--primary-d); font-weight: 700; }
.t-green { --tone: var(--primary-d); --tone-l: var(--primary-l); }
.t-blue { --tone: var(--blue); --tone-l: var(--blue-l); }
.t-purple { --tone: var(--purple); --tone-l: var(--purple-l); }
.t-red { --tone: var(--red); --tone-l: var(--red-l); }
.t-gold { --tone: #a16207; --tone-l: var(--gold-l); }
.t-gray { --tone: var(--muted); --tone-l: var(--line2); }
.t-red b { color: var(--red); }

/* charts */
.chart-box { position: relative; height: 290px; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i, .mini-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.donut-box { position: relative; height: 200px; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-c b { font-size: 30px; font-weight: 800; } .donut-c small { color: var(--muted); margin-top: -4px; }
.mini-leg { display: grid; gap: 4px; margin-top: 14px; }
.mini-leg a { display: flex; align-items: center; padding: 7px 10px; border-radius: 9px; color: var(--ink2); font-weight: 500; }
.mini-leg a:hover { background: var(--line2); text-decoration: none; }
.mini-leg b { margin-left: auto; }

.progress { height: 8px; background: var(--line2); border-radius: 10px; overflow: hidden; }
.progress.lg { height: 12px; margin: 14px 0 8px; }
.progress i { display: block; height: 100%; width: var(--w); border-radius: 10px; background: linear-gradient(90deg, var(--primary), #34d399); animation: grow 1.3s var(--ease) both; }
.kpi-month .km-row { display: flex; justify-content: space-between; padding: 6px 0; }
.kpi-month .km-row b { font-size: 16px; }
.km-today { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--primary-l); color: var(--primary-d); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.km-today b { margin-left: auto; font-size: 16px; }

.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.blk { display: block; padding: 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.blk:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--sh); }
.blk-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.blk-h i { width: 10px; height: 10px; border-radius: 50%; }
.blk-h small { color: var(--muted); }
.blk-h span { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.stack { display: flex; height: 10px; border-radius: 8px; overflow: hidden; background: var(--line2); }
.stack i { width: var(--w); animation: grow 1.4s var(--ease) both; }
.s-sold { background: #8b5cf6; } .s-booked { background: #3b82f6; } .s-reserved { background: #f59e0b; } .s-available { background: #10b981; }
.blk-f { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }

.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-bottom: 1px solid var(--line2); color: var(--ink); border-radius: 10px; transition: background .15s; }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--line2); text-decoration: none; }
.li-date { width: 46px; text-align: center; background: var(--gold-l); border-radius: 10px; padding: 4px 0; color: #92700c; flex-shrink: 0; }
.li-date b { display: block; font-size: 17px; line-height: 1.1; } .li-date small { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.li-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-l); color: var(--primary-d); flex-shrink: 0; }
.li-b { flex: 1; min-width: 0; } .li-b b { display: block; font-size: 13.5px; } .li-b small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-r { text-align: right; } .li-r b { display: block; font-size: 13.5px; white-space: nowrap; } .li-r small { color: var(--muted); font-size: 12px; }
.warn-card { border-color: #f7dfa6; background: linear-gradient(180deg, #fffbef, #fff); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 13px; }
.chip small { display: block; font-weight: 500; font-size: 11.5px; }
.chip.expired small { color: var(--red); } .chip.soon small { color: #b45309; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { color: #b9cac4; } .empty p { margin: 10px 0 14px; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f8faf9; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: #f7fbf9; }
.tbl tr.click { cursor: pointer; }
.tbl tfoot td { background: #f8faf9; border-top: 1px solid var(--line); }
.who { display: flex; gap: 10px; align-items: center; color: var(--ink); min-width: 0; }
.who:hover { text-decoration: none; }
.who b { font-size: 13.5px; } .who small { color: var(--muted); }
.who.big b { font-size: 16px; display: block; }
.sched .row-paid td { color: var(--muted); }
.sched .row-overdue { background: #fff7f7; }
.st { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.st-paid { background: var(--primary-l); color: var(--primary-d); }
.st-overdue { background: var(--red-l); color: var(--red); }
.st-partial { background: var(--blue-l); color: var(--blue); }
.st-due { background: #fef3c7; color: #b45309; }
.st-upcoming { background: var(--line2); color: var(--muted); }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 8px 0 18px; }
.pager a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pager a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager a:hover { text-decoration: none; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2.5px solid transparent; white-space: nowrap; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--primary-d); border-color: var(--primary); }
.tab-n { font-size: 11px; background: var(--line2); color: var(--ink2); padding: 1px 7px; border-radius: 10px; margin-left: 4px; }
.tab-n.red { background: var(--red-l); color: var(--red); }

/* forms */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; }
.filters select, .filters input[type=date] { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.inp-ic { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--card); color: var(--muted); min-width: 220px; transition: border-color .2s, box-shadow .2s; }
.inp-ic:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,159,110,.12); }
.inp-ic input { border: 0; outline: 0; padding: 10px 0; flex: 1; min-width: 0; background: none; color: var(--ink); }
.inp-ic.grow { flex: 1; }
.fld-inline { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.quick-range { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-range a, .chip-l { padding: 6px 11px; border-radius: 8px; background: var(--line2); color: var(--ink2); font-size: 12.5px; font-weight: 600; }
.chip-l.on { background: var(--primary); color: #fff; }
.seg { display: inline-flex; background: var(--line2); border-radius: 10px; padding: 3px; margin-left: auto; }
.seg a { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: var(--sh); }
.seg a:hover { text-decoration: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.fld input, .fld select, .fld textarea, .join-wide > input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .join-wide > input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,159,110,.12); background: #fff; }
.fld input.ro { background: var(--line2); font-weight: 700; }
.fld input[type=color] { padding: 4px; height: 42px; }
.fld .inp-ic { min-width: 0; background: #fbfdfc; }
.fld .inp-ic input { padding: 11px 0; border: 0; box-shadow: none; background: none; }
.hint { font-size: 12px; font-weight: 600; }
.join { display: flex; } .join input { border-radius: 10px 0 0 10px !important; } .join select { width: auto !important; border-radius: 0 10px 10px 0 !important; border-left: 0 !important; }
.join-wide { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.join-wide > input { flex: 1; min-width: 160px; }
.big-in { font-size: 20px !important; font-weight: 700; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ck { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.checks .ck { padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 500; }
.checks .ck:has(input:checked) { border-color: var(--primary); background: var(--primary-l); color: var(--primary-d); }
.ck input { accent-color: var(--primary); width: 17px; height: 17px; }
.ck.big { font-weight: 600; }
.chips-sel { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-sel button { padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; font-size: 13px; transition: all .2s var(--ease); }
.chips-sel button:hover { border-color: var(--primary); }
.chips-sel button.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(14,159,110,.3); transform: translateY(-1px); }
.chips-sel.big { display: grid; grid-template-columns: repeat(5, 1fr); }
#freq.chips-sel.big { grid-template-columns: repeat(4, 1fr); }
.chips-sel.big button { padding: 11px 4px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1280px) { #freq.chips-sel.big { grid-template-columns: repeat(2, 1fr); } }
.picker select { width: 100%; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; padding: 4px; outline: 0; background: #fbfdfc; }
.picker select option { padding: 9px 10px; border-radius: 7px; }
.picker select option:checked { background: var(--primary-l) linear-gradient(0deg, var(--primary-l), var(--primary-l)); color: var(--primary-d); font-weight: 700; }
.picker .inp-ic { min-width: 0; }
.adv-pay { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--primary-l); display: grid; gap: 12px; }
.adv-pay .fld input, .adv-pay .fld select { background: #fff; }
.role-help { display: grid; gap: 6px; margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--line2); font-size: 12.5px; color: var(--ink2); }
.quick-amts { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-amts button { flex: 1; min-width: 130px; text-align: left; padding: 10px 12px; border: 1px dashed #b7d8cb; background: #f6fbf9; border-radius: 10px; cursor: pointer; font-size: 12px; color: var(--muted); font-weight: 600; transition: all .2s; }
.quick-amts button b { display: block; color: var(--ink); font-size: 15px; }
.quick-amts button:hover, .quick-amts button.on { border-style: solid; border-color: var(--primary); background: var(--primary-l); }
.photo-drop { display: grid; place-items: center; gap: 10px; text-align: center; padding: 18px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.photo-drop:hover { border-color: var(--primary); background: var(--primary-l); }
.photo-drop input { display: none; }
.pd-prev { width: 120px; height: 140px; border-radius: 12px; background: var(--line2); display: grid; place-items: center; overflow: hidden; color: #a8bbb4; }
.pd-prev img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop small { color: var(--muted); font-size: 12px; }

/* steps & booking */
.steps { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.steps span { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; transition: all .3s var(--ease); }
.steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line2); font-size: 12px; transition: all .3s; }
.steps span.on { color: var(--primary-d); border-color: #b7e6d2; background: var(--primary-l); }
.steps span.on i { background: var(--primary); color: #fff; }
.steps span.done i { background: var(--primary-d); color: #fff; }
.plan-sum { overflow: hidden; padding: 0; }
.ps-head { padding: 22px 20px; color: #fff; background: radial-gradient(130% 120% at 0% 0%, #1b6b55, var(--dark)); position: relative; overflow: hidden; }
.ps-head::after { content: ''; position: absolute; width: 160px; height: 160px; right: -50px; top: -60px; border-radius: 50%; background: rgba(52,211,153,.18); }
.ps-head small { color: #9fd3bf; font-weight: 600; }
.ps-head b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; transition: transform .25s var(--ease); }
.ps-head b.bump { transform: scale(1.06); }
.ps-head span { color: #cfe3dc; font-size: 13px; }
.ps-sel { display: grid; gap: 10px; padding: 16px 20px 0; }
.ps-sel small { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ps-sel b { display: block; } .ps-sel span { color: var(--muted); font-size: 12px; }
.plan-sum .kv, .plan-sum .ps-bar, .plan-sum .ps-leg { margin-left: 20px; margin-right: 20px; }
.plan-sum .btn { margin: 4px 20px 20px; width: calc(100% - 40px); }
.ps-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--line2); margin-top: 12px; }
.ps-bar i { transition: width .6s var(--ease); width: 0; }
#barAdv, .ps-leg .a { background: var(--gold); } #barInst, .ps-leg .b { background: var(--primary); } #barPoss, .ps-leg .c { background: var(--purple); }
.ps-leg { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); margin: 8px 0 14px; }
.ps-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.sched-wrap { max-height: 420px; overflow-y: auto; }
.sched-wrap tbody tr { animation: fadeUp .35s var(--ease) both; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv.tight { margin-top: 16px; gap: 7px 12px; }

/* plots map */
.status-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sp { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); color: var(--ink2); font-weight: 600; font-size: 13px; transition: all .2s; }
.sp:hover { text-decoration: none; border-color: var(--primary); }
.sp i { width: 9px; height: 9px; border-radius: 50%; }
.sp b { background: var(--line2); padding: 0 7px; border-radius: 10px; font-size: 12px; }
.sp.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.sp.on b { background: rgba(255,255,255,.16); }
.sp-available i { background: #10b981; } .sp-booked i { background: #3b82f6; } .sp-sold i { background: #8b5cf6; } .sp-reserved i { background: #f59e0b; }
.plotmap { background-image: radial-gradient(#dfe8e4 1px, transparent 1px); background-size: 18px 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.tile { position: relative; aspect-ratio: 1 / .86; border-radius: 10px; border: 1.5px solid; cursor: pointer; display: grid; place-content: center; text-align: center; padding: 4px;
  animation: pop .45s var(--ease) both; animation-delay: calc(var(--i) * 14ms); transition: transform .2s var(--ease), box-shadow .2s; }
.tile:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 22px rgba(15,31,26,.16); z-index: 2; }
.tile b { font-size: 16px; font-weight: 800; line-height: 1.1; }
.tile small { font-size: 10.5px; opacity: .85; font-weight: 600; }
.tile em { position: absolute; top: 3px; right: 6px; font-style: normal; font-size: 11px; color: var(--gold); }
.t-available { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.t-booked { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.t-sold { background: #f5f3ff; border-color: #c4b5fd; color: #6d28d9; }
.t-reserved { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.map-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid; margin-right: 6px; vertical-align: -3px; }

/* dialog */
.dlg { border: 0; padding: 0; border-radius: 18px; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(11,42,36,.35); color: var(--ink); }
.dlg.sm { width: min(420px, calc(100vw - 24px)); }
.dlg[open] { animation: pop .3s var(--ease); }
.dlg::backdrop { background: rgba(11,42,36,.45); backdrop-filter: blur(3px); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h3 { font-size: 17px; }
.dlg-b { padding: 20px; overflow-y: auto; max-height: calc(100vh - 200px); }
.dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #f8faf9; flex-wrap: wrap; }
.pv-hero { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-radius: 14px; margin-bottom: 16px; background: linear-gradient(135deg, var(--dark), #1b6b55); color: #fff; }
.pv-hero b { font-size: 26px; font-weight: 800; }
.pv-owner { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--blue-l); }

/* members */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 18px; }
.mcard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--ink); box-shadow: var(--sh); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.mcard:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,31,26,.1); border-color: #bfe3d4; }
.mc-top { display: flex; gap: 12px; align-items: center; }
.mc-name { flex: 1; min-width: 0; } .mc-name b { display: block; } .mc-name small { color: var(--muted); font-size: 12.5px; }
.mc-rows { display: grid; gap: 5px; margin: 14px 0; font-size: 13px; color: var(--ink2); }
.mc-rows span { display: flex; align-items: center; gap: 8px; }
.mc-rows .ic { color: var(--muted); }
.mc-rows em { margin-left: auto; }
.mc-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line2); }
.mc-foot small { display: block; color: var(--muted); font-size: 11.5px; } .mc-foot b { font-size: 14px; }
.profile { text-align: center; }
.pf-top { display: grid; justify-items: center; gap: 4px; margin-bottom: 18px; }
.pf-top h2 { font-size: 20px; margin-top: 8px; } .pf-top p { margin: 0; color: var(--muted); }
.pf-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.profile .kv { text-align: left; margin-top: 18px; }
.cnic-card { text-align: left; border-radius: 16px; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, #0f6b52 0%, #0b2a24 100%); position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(11,42,36,.25); }
.cnic-card::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cnic-card.expired { background: linear-gradient(135deg, #9f1239, #4c0519); }
.cnic-card.soon { background: linear-gradient(135deg, #a16207, #422006); }
.cc-h { display: flex; justify-content: space-between; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #b8dccd; }
.cnic-card > b { display: block; font-size: 22px; letter-spacing: .08em; margin: 10px 0; font-weight: 800; }
.cc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12.5px; font-weight: 600; }
.cc-row small { display: block; font-size: 10.5px; color: #b8dccd; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.cc-warn { margin-top: 10px; font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,.15); padding: 6px 10px; border-radius: 8px; }
.timeline { display: grid; gap: 0; }
.tl { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
.tl::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl > i { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid var(--primary-l); margin-top: 4px; flex-shrink: 0; box-sizing: content-box; position: relative; left: -3px; }

/* file page */
.file-hero { display: flex; gap: 22px; align-items: center; }
.fh-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.fh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fh-ring circle { fill: none; stroke-width: 11; }
.fh-ring .bg { stroke: var(--line2); }
.fh-ring .fg { stroke: var(--primary); stroke-linecap: round; animation: ring 1.6s var(--ease) both; }
.fh-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fh-ring b { font-size: 26px; font-weight: 800; } .fh-ring small { color: var(--muted); margin-top: -4px; }
.fh-main { flex: 1; min-width: 0; display: grid; gap: 12px; }
.fh-top { display: flex; align-items: center; gap: 10px; } .fh-top h2 { font-size: 22px; font-weight: 800; }
.fh-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.celebrate { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--primary), #34d399); box-shadow: 0 10px 30px rgba(14,159,110,.35); animation: slideIn .6s var(--ease); }
.celebrate b { display: block; font-size: 16px; } .celebrate span { opacity: .9; font-size: 13px; }
.danger-zone { border-color: #f7caca; }
.danger-zone h3 .ic { color: var(--red); }
.danger-zone input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.rcv-sum { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px; border-radius: 12px; background: var(--line2); margin-bottom: 16px; }
.rs-kpis { display: flex; gap: 22px; } .rs-kpis small { display: block; color: var(--muted); font-size: 12px; } .rs-kpis b { font-size: 16px; }
.big-num { font-size: 30px; font-weight: 800; color: var(--primary-d); letter-spacing: -.02em; }
.aging { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.ag { padding: 16px 18px; border-radius: var(--r); color: #fff; box-shadow: var(--sh); position: relative; overflow: hidden; }
.ag small { display: block; opacity: .85; font-weight: 600; } .ag b { font-size: 22px; font-weight: 800; }
.ag.a1 { background: linear-gradient(135deg, #f59e0b, #d97706); } .ag.a2 { background: linear-gradient(135deg, #f97316, #ea580c); }
.ag.a3 { background: linear-gradient(135deg, #ef4444, #dc2626); } .ag.a4 { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }

/* toasts */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { background: var(--dark); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sh-lg); animation: slideIn .3s var(--ease); font-weight: 500; }

/* ---------- login ---------- */
.login-body { background: var(--dark); min-height: 100vh; }
.login-wrap { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 100vh; }
.login-hero { position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 48px 56px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(80% 80% at 20% 10%, #1d7a5f 0%, var(--dark) 65%); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; animation: float 30s ease-in-out infinite; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11,42,36,.4) 0%, rgba(11,42,36,.92) 75%); }
.login-hero::before, .login-hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; animation: float 14s ease-in-out infinite; }
.login-hero::before { width: 380px; height: 380px; background: rgba(52,211,153,.28); top: -100px; right: -60px; }
.login-hero::after { width: 300px; height: 300px; background: rgba(212,167,44,.2); bottom: -80px; left: 10%; animation-delay: -6s; }
.hero-grid { position: absolute; right: 40px; top: 50%; transform: translateY(-50%) rotate(-8deg); display: grid; grid-template-columns: repeat(8, 34px); gap: 8px; z-index: 1; opacity: .9; }
.hero-grid i { width: 34px; height: 30px; border-radius: 6px; border: 1.5px solid rgba(110,231,183,.6); animation: shimmer 3.4s ease-in-out infinite; animation-delay: var(--d); }
.hero-grid i:nth-child(3n) { border-color: rgba(147,197,253,.6); } .hero-grid i:nth-child(7n) { border-color: rgba(252,211,77,.7); }
.hero-in { position: relative; z-index: 2; max-width: 600px; }
.hero-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 40px; }
.hero-brand b { display: block; font-size: 18px; } .hero-brand small { color: #9fd3bf; }
.login-hero h2 { font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.grad { background: linear-gradient(90deg, #6ee7b7, #fcd34d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-p { color: #c2dcd2; font-size: 16px; max-width: 520px; margin: 18px 0 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.hero-stats div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; } .hero-stats small { color: #9fd3bf; font-size: 12px; }
.hero-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; color: #d7ebe3; font-size: 13.5px; }
.hero-feats li { display: flex; gap: 8px; align-items: center; } .hero-feats .ic { color: #6ee7b7; }
.login-side { background: var(--bg); display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 22px; padding: 32px; box-shadow: 0 20px 60px rgba(11,42,36,.12); border: 1px solid var(--line); display: grid; gap: 16px; }
.lc-head { text-align: center; display: grid; justify-items: center; gap: 6px; margin-bottom: 4px; }
.lc-head h1 { font-size: 24px; font-weight: 800; margin-top: 8px; } .lc-head p { margin: 0; color: var(--muted); }
.peek { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; }
.demo-box { display: grid; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--line); }
.demo-t { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.demo-acc { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 12px; border-radius: 13px; border: 1.5px solid var(--line); background: #fbfdfc; cursor: pointer; transition: all .25s var(--ease); }
.demo-acc:hover { border-color: var(--primary); transform: translateX(3px); background: #fff; box-shadow: var(--sh); }
.demo-acc.on { border-color: var(--primary); background: var(--primary-l); }
.da-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.da-ic.a { background: linear-gradient(135deg, #0e9f6e, #047857); } .da-ic.b { background: linear-gradient(135deg, #3b82f6, #1d4ed8); } .da-ic.c { background: linear-gradient(135deg, #f59e0b, #b45309); }
.da-txt { flex: 1; min-width: 0; } .da-txt b { display: block; font-size: 13.5px; } .da-txt small { color: var(--muted); font-size: 12px; }
.demo-acc code { font-size: 11.5px; background: var(--line2); padding: 3px 8px; border-radius: 6px; color: var(--ink2); }
.lc-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .stats.s5 { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { display: none; }
}
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .g-3-1, .g-1-2 { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: 1fr 1fr; }
  .g-3 .span-2 { grid-column: span 2; }
  .sticky { position: static; }
  .aging { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .sidebar.open { transform: none; visibility: visible; box-shadow: var(--sh-lg); transition: transform .35s var(--ease); }
  .backdrop.on { display: block; position: fixed; inset: 0; background: rgba(11,42,36,.45); z-index: 40; animation: fadeUp .2s; }
  .main { margin-left: 0; }
  .only-mobile { display: inline-grid !important; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { padding: 36px 24px 30px; }
  .login-hero h2 { font-size: 32px; }
  .hero-brand { margin-bottom: 24px; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .hide-mobile { display: none !important; }
  .page-head { padding: 18px 16px 4px; }
  .ph-title h1 { font-size: 21px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .content { padding: 12px 16px 90px; }
  .foot { padding-bottom: 90px; }
  .card { padding: 16px; border-radius: 14px; }
  .stats, .stats.s3, .stats.s5 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; gap: 10px; flex-direction: column; }
  .stat b { font-size: 18px; }
  .stat-ic { width: 36px; height: 36px; }
  .g-2, .g-3, .blocks, .form-grid, .form-grid.g3 { grid-template-columns: 1fr; }
  .g-3 .span-2, .span-2 { grid-column: auto; }
  .chart-box { height: 230px; }
  .filters { padding: 10px; }
  .inp-ic { min-width: 0; flex: 1 1 100%; }
  .seg { margin-left: 0; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
  .tile b { font-size: 14px; } .tile small { font-size: 9.5px; }
  .file-hero { flex-direction: column; text-align: center; }
  .fh-top, .fh-tags { justify-content: center; }
  .who.big { justify-content: center; text-align: left; }
  .mcards { grid-template-columns: 1fr; }
  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 10px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 600; padding: 4px 0; border-radius: 10px; }
  .tabbar a.on { color: var(--primary-d); }
  .tabbar a.on .ic { transform: translateY(-1px); }
  .tabbar a:hover { text-decoration: none; }
  .toast-wrap { left: 16px; right: 16px; bottom: 84px; }
  .login-hero h2 { font-size: 27px; }
  .hero-p { font-size: 14.5px; margin: 12px 0 18px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-feats { display: none; }
  .login-card { padding: 22px 18px; }
  .aging { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ag b { font-size: 18px; }
  .rs-kpis { gap: 14px; flex-wrap: wrap; }
  .steps span { padding: 8px; font-size: 12px; }
  .kv dd { word-break: break-word; }
  .dlg { max-height: calc(100vh - 20px); }
}
@media print {
  .sidebar, .topbar, .tabbar, .actions, .foot, .tabs, .filters, .pager { display: none !important; }
  .main { margin: 0; } .content { padding: 0; } body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
