/* SHOTOTA panel — demo-exact rebuild (Stage 3).
   Mazer-style shell matching somiti.techsmartbd.xyz:
   300px white sidebar, #435ebe primary, #f2f7ff page bg, #25396f ink.
   Font stack: 'SolaimanLipi' (if installed) + Nunito + Noto Sans Bengali.
   Bootstrap Icons (bi-*) for sidebar/menu icons. */

:root {
  --blue: #435ebe;
  --blue-dark: #3950a2;
  --blue2: #f2f7ff;
  --ink: #25396f;
  --muted: #6c757d;
  --line: #dce7f1;
  --green: #198754;
  --green-bg: #d1e7dd;
  --red: #dc3545;
  --red-bg: #fbe9e7;
  --amber: #ffc107;
  --amber-bg: #fff3cd;
  --amber-text: #664d03;
  --teal: #0ea5b7;
  --orange: #f59e0b;
  --bg: #f2f7ff;
  --card: #ffffff;
  --body-text: #607080;
  --cell: #3b4a6b;
  --icon-grey: #7c8db5;
  --hover-bg: #f0f1f5;
  --row-hover: #f8f9fc;
  --radius: .7rem;
  --stat-purple: #9694ff;
  --stat-blue: #57caeb;
  --stat-green: #5ddab4;
  --stat-red: #ff7976;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'SolaimanLipi', 'Nunito', 'Noto Sans Bengali', sans-serif;
  background: var(--bg);
  color: var(--body-text);
  font-size: 1rem;
  line-height: 1.5;
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); margin: 0 0 10px; line-height: 1.3; }
p { margin: 0 0 10px; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 300px; flex: 0 0 300px; background: #fff;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 10;
  display: flex; flex-direction: column; overflow-y: auto;
}
.side-head { padding: 1.6rem 2rem .6rem; }
.side-name { font-weight: 800; color: var(--ink); font-size: 1.35rem; line-height: 1.25; }
.side-name a { color: var(--ink); }
.side-name a:hover { text-decoration: none; }
.side-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.side-menu-label {
  font-size: 1rem; font-weight: 600; color: var(--ink);
  padding: 0 1rem; margin: 1.5rem 0 1rem;
}
.side-nav { flex: 1; padding: 0 2rem; margin-top: 2rem; }
.side-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1rem; margin-top: .5rem; border-radius: .5rem;
  color: var(--ink); font-weight: 400; font-size: 1rem;
  transition: .5s;
}
.side-item:hover { background: var(--hover-bg); text-decoration: none; }
.side-item.active { background-color: var(--blue); color: #fff; }
.side-item .ic { color: var(--icon-grey); font-size: 1.05rem; display: inline-flex; }
.side-item.active .ic { color: #fff; }
.side-foot { padding: 14px 2rem; border-top: 1px solid var(--line); font-size: 13px; }
.side-user { font-weight: 700; color: var(--ink); }
.side-role { color: var(--muted); font-size: 12.5px; }
.side-ver { color: #9aa8bd; font-size: 11.5px; margin-top: 4px; }

.main { flex: 1; min-width: 0; margin-left: 300px; padding: 2rem; display: flex; flex-direction: column; }
@media (max-width: 1199px) {
  .side { left: -300px; transition: left .3s; }
  .side.open { left: 0; }
  .main { margin-left: 0; }
  .burger { display: inline-flex !important; }
}
.burger {
  display: none; background: #fff; border: 1px solid var(--line);
  width: 42px; height: 42px; border-radius: 12px; font-size: 20px;
  color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- topbar ---------- */
.topbar {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .55rem .9rem; box-shadow: 0 2px 10px rgba(30,50,90,.05);
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.top-icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: #43536b; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; cursor: pointer; position: relative; flex: 0 0 42px;
}
.top-icon-btn:hover { text-decoration: none; background: var(--blue2); }
.bell { position: relative; color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.bell .badge, .bell-badge {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px;
  background: #e02424; color: #fff; border-radius: 99px; border: 2px solid #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; flex: 0 0 42px;
}
.who { line-height: 1.2; }
.who b { display: block; color: #1e293b; font-size: .92rem; }
.who span { font-size: .74rem; color: #64748b; }
.btn-profile {
  border: 1.5px solid #2563eb; color: #2563eb; font-weight: 700; border-radius: 10px;
  padding: .42rem .95rem; background: #fff; font-size: .9rem; display: inline-block;
}
.btn-profile:hover { text-decoration: none; background: var(--blue2); }
.link-danger { color: #dc2626; font-weight: 700; background: none; border: 0; cursor: pointer; font-size: 14px; font-family: inherit; padding: 0; }
.link-danger:hover { text-decoration: underline; }
@media (max-width: 575px) { .who, .btn-profile { display: none; } }

/* bell dropdown (member topbar) */
.bell-wrap { position: relative; }
.bell-dropdown {
  position: absolute; right: 0; top: 50px; width: min(92vw, 350px); max-height: 70vh;
  overflow-y: auto; background: #fff; border-radius: 14px; z-index: 50;
  box-shadow: 0 14px 34px rgba(20,40,80,.16); border: 1px solid var(--line); display: none;
}
.bell-dropdown.open { display: block; }
.bell-dropdown .bd-head { background: #f8fafc; padding: 12px 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.bell-dropdown .bd-item { padding: 12px 16px; font-size: .86rem; border-bottom: 1px solid #eef1f6; color: var(--cell); }
.bell-dropdown .bd-item.unread { background: #eff6ff; }
.bell-dropdown .bd-item .bd-time { font-size: .75rem; color: var(--muted); display: block; margin-top: 2px; }
.bell-dropdown .bd-foot { background: #f8fafc; padding: 10px 16px; text-align: center; }
.bell-dropdown .bd-foot a { color: var(--blue); font-weight: 700; font-size: .9rem; }
.bell-dropdown .bd-empty { padding: 22px 16px; text-align: center; color: var(--muted); }

.content { padding: 0; }
.page-head, .heading { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.page-head h2, .heading h2 { margin: 0; flex: 1; font-size: 1.65rem; font-weight: 700; color: var(--ink); }
.eyebrow { font-size: .82rem; font-weight: 700; color: var(--blue); letter-spacing: .03em; display: block; margin-bottom: 2px; }
.page-head .sub { color: var(--muted); font-size: 13.5px; }

/* ---------- cards / panels ---------- */
.panel { background: #fff; border: none; border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.6rem; }
.card { background: var(--card); border: none; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.6rem; }
.card h3 { font-size: 16.5px; margin-bottom: 12px; }

/* stat cards (demo dashboard) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 1.6rem; }
@media (max-width: 992px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .cards { grid-template-columns: 1fr; } }
.stat-card {
  background: #fff; border: none; border-radius: var(--radius); padding: 1.3rem; position: relative;
}
.stat-card .stat-icon {
  width: 3rem; height: 3rem; border-radius: .5rem; float: right;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem;
}
.stat-card .stat-icon i { font-size: 1.7rem; }
.stat-card .stat-icon.purple { background: var(--stat-purple); }
.stat-card .stat-icon.blue { background: var(--stat-blue); }
.stat-card .stat-icon.green { background: var(--stat-green); }
.stat-card .stat-icon.red { background: var(--stat-red); }
.stat-card .metric { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.stat-card .lbl { font-weight: 600; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.stat-card .foot { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* quick tiles */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.quick a, .quick-tile {
  background: var(--blue2); border-radius: var(--radius); padding: 1.1rem .6rem;
  text-align: center; font-weight: 700; color: var(--ink); display: block;
}
.quick a:hover { background: #e3ecff; text-decoration: none; }
.quick a i, .quick-tile i { font-size: 1.5rem; color: var(--blue); display: block; margin-bottom: 6px; }

/* legacy KPI grid (kept for SHOTOTA-only pages still in the ZIP) */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.kpis.six { grid-template-columns: repeat(3, 1fr); }
.kpi {
  background: #fff; border: none; border-radius: var(--radius);
  padding: 16px; display: flex; gap: 12px; align-items: flex-start;
}
.kpi .kicon {
  width: 44px; height: 44px; border-radius: 11px; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.kpi .kicon.blue { background: #dbeafe; }
.kpi .kicon.green { background: #dcfce7; }
.kpi .kicon.amber { background: #fef3c7; }
.kpi .kicon.red { background: #fee2e2; }
.kpi .kicon.teal { background: #ccfbf1; }
.kpi .kicon.violet { background: #ede9fe; }
.kpi .klbl { font-size: 13px; color: var(--muted); }
.kpi .kval { font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.kpi .ksub { font-size: 12.5px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2b { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) { .kpis, .kpis.six, .grid2, .grid2b { grid-template-columns: 1fr; } .side { display: none; } .side.open { display: flex; } }

/* ---------- tables ---------- */
.tbl-wrap, .tablewrap { overflow-x: auto; }
table.tbl, table { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.tbl th, table thead th {
  text-align: left; color: var(--ink); font-weight: 700; font-size: .96rem;
  padding: .8rem .75rem; border-bottom: 2px solid #e9ecef; white-space: nowrap;
}
table.tbl td, table tbody td { padding: .8rem .75rem; border-top: 1px solid #e9ecef; color: var(--cell); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover, table tbody tr:hover { background: var(--row-hover); }
.text-right { text-align: right; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.amt { font-weight: 700; color: var(--ink); }
.pos { color: var(--green); font-weight: 700; }
.neg { color: var(--red); font-weight: 700; }

/* pills — demo solid style */
.pill { display: inline-block; padding: .35em .7em; font-size: .8em; font-weight: 700; border-radius: .45rem; color: #fff; white-space: nowrap; }
.pill.green, .pill.paid, .pill.ok { background: #198754; }
.pill.red { background: var(--red); }
.pill.amber, .pill.due, .pill.warn { background: #ffc107; color: #212529; }
.pill.blue, .pill.active { background: var(--blue); }
.pill.grey, .pill.left, .pill.off { background: #6c757d; }
.pill.partial { background: #57caeb; color: #25396f; }
.pill.light { background: #e9ecef; color: #6c757d; }
.chip-receipt {
  display: inline-block; padding: 2px 9px; border: 1.5px solid var(--blue);
  color: var(--blue); border-radius: 8px; font-size: 12.5px; font-weight: 700;
  background: #eff6ff; white-space: nowrap;
}

/* icon action buttons */
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; border: none;
  color: #fff; font-size: 15px; cursor: pointer; margin-right: 4px;
}
.iconbtn:hover { text-decoration: none; }
.iconbtn.view { background: #0ea5b7; }
.iconbtn.view:hover { background: #0b8696; }
.iconbtn.edit { background: #f59e0b; }
.iconbtn.edit:hover { background: #d97706; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; cursor: pointer; margin-right: 4px;
}
.icon-btn:hover { text-decoration: none; }
.icon-btn.view { color: var(--teal); border-color: #99f6e4; background: #f0fdfa; }
.icon-btn.edit { color: var(--orange); border-color: #fed7aa; background: #fff7ed; }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-block; padding: .5rem 1.05rem; border-radius: .45rem; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.primary, .btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover, .btn-blue:hover { background: var(--blue-dark); }
.btn.secondary { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn.secondary:hover { background: var(--blue2); }
.btn.light { background: #f8f9fa; color: var(--ink); border-color: #e9ecef; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.red { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.grey { background: #e5e7eb; border-color: #d1d5db; color: #374151; }
.btn.outline { background: #fff; border: 1.5px solid var(--blue); color: var(--blue); }
.btn.small { padding: .28rem .7rem; font-size: .86rem; border-radius: .45rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.field { margin-bottom: 1rem; }
.fl { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .45rem; }
.f, select.f, textarea.f {
  width: 100%; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: .45rem;
  font-size: .97rem; font-family: inherit; background: #fff; color: var(--ink);
}
.f:focus { outline: none; border-color: #aebfff; box-shadow: 0 0 0 .22rem rgba(67,94,190,.16); }
input[type="file"].f { background: #f8f9fa; }
input[type="checkbox"], input[type="radio"] { width: 1.05rem; height: 1.05rem; accent-color: var(--blue); }
.frow { display: flex; gap: 14px; }
.frow .field { flex: 1; min-width: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 768px) { .grid { grid-template-columns: 1fr; } .frow { flex-direction: column; } }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.inline-form { display: inline; }

/* filters bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .f { width: auto; min-width: 150px; }
.filters input[type="month"], .filters input[type="date"] { padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 9px; font-family: inherit; }

/* alerts */
.notice { background: #fff3cd; border: 1px solid #ffecb5; color: #664d03; border-radius: .45rem; padding: .95rem 1.1rem; margin-bottom: 1rem; }
.flash { background: #d1e7dd; border: 1px solid #badbcc; color: #0f5132; border-radius: .45rem; padding: .95rem 1.1rem; margin-bottom: 1rem; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.alert.success { background: var(--green-bg); color: #0f5132; border: 1px solid #badbcc; }
.alert.error { background: var(--red-bg); color: #842029; border: 1px solid #f5c2c7; }
.err-list { margin: 6px 0 0; padding-left: 18px; }
.text-muted { color: var(--muted); }
.mt { margin-top: 14px; }
.empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 6px; }

/* pagination */
.pager { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.pager select { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; }
.pager nav { margin-left: auto; }
.pagination { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.pagination li a, .pagination li span {
  display: inline-block; min-width: 34px; height: 34px; line-height: 34px; text-align: center;
  padding: 0 8px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--blue); font-size: 13.5px; font-weight: 600;
}
.pagination li.active span { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination li.disabled span { color: #9aa8bd; }

/* toolbar (legacy class, kept) */
.toolbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.toolbar h2 { margin: 0; flex: 1; font-size: 1.65rem; font-weight: 700; color: var(--ink); }

/* progress bar */
.bar { height: 9px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

/* profile box (demo .profilebox) */
.profilebox {
  max-width: 850px; border: 1.5px solid #cfdef8; border-radius: 18px;
  padding: 14px 16px 16px; box-shadow: 0 4px 18px rgba(30,64,175,.07); background: #fff;
}
.profilebox .pb-head {
  background: linear-gradient(180deg, #eaf1fe, #dde9fc); border-left: 6px solid #1d4ed8;
  border-radius: 12px; padding: 14px 18px; display: flex; gap: 14px; align-items: center;
}
.profilebox .pb-head .pb-photo { width: 60px; height: 60px; border-radius: 12px; border: 2px solid #fff; object-fit: cover; background: #fff; }
.profilebox .pb-head .pb-name { font-size: 1.45rem; font-weight: 800; color: #173a75; }
.profilebox .pb-head .pb-sub { color: #3c5a96; font-weight: 600; }
.profilebox .pb-row { display: flex; gap: 10px; align-items: center; padding: 11px 8px; border-bottom: 1px solid #e3ecfb; }
.profilebox .pb-row:last-child { border-bottom: 0; }
.profilebox .pb-ic {
  width: 42px; height: 42px; border-radius: 50%; background: #e3edfd; color: #1d4ed8;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 42px;
}
.profilebox .pb-label { flex-basis: 150px; color: #1d4ed8; font-weight: 700; flex-shrink: 0; }
.profilebox .pb-value { color: #173a75; font-weight: 600; }
.profilebox .pb-foot {
  background: #e7effd; border-radius: 12px; padding: 14px 18px; margin-top: 12px;
  display: flex; gap: 12px; align-items: center; color: #173a75; font-weight: 600;
}
.profilebox .pb-foot .pb-foot-ic {
  width: 52px; height: 52px; border-radius: 50%; background: #1d4ed8; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 52px;
}
/* Simple profilebox (member show) */
.profilebox-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; flex: 0 0 72px; }
.profilebox-info { flex: 1; min-width: 0; }
.profilebox-info h3 { margin: 0 0 4px; }
.profilebox-stats { display: flex; gap: 24px; }
.profilebox-stats div { display: flex; flex-direction: column; gap: 2px; }
.profilebox-stats span { color: var(--muted); font-size: .85rem; }

/* member card / receipt */
.member-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.member-card .avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800;
}
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }
.receipt-box { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.receipt-box h2 { text-align: center; }
.receipt-box .rhead { text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; }
/* demo receipt print card */
.receipt {
  max-width: 520px; margin: 24px auto; background: #fff;
  border: 1px dashed #b6c2d9; border-radius: var(--radius); padding: 26px;
}
.receipt h2 { text-align: center; color: var(--ink); }
.receipt .r-sub { text-align: center; color: var(--muted); margin-bottom: 14px; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef1f6; }
.receipt .r-row .r-label { color: var(--muted); }
.receipt .r-row .r-value { font-weight: 700; color: var(--ink); }
.receipt .r-sign { display: flex; justify-content: space-between; margin-top: 34px; }
.receipt .r-sign div { text-align: center; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 6px; min-width: 150px; }
.receipt .r-foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 18px; }
@media print {
  .side, .topbar, .no-print, .noprint { display: none !important; }
  body { background: #fff; }
  .shell { display: block; }
  .main { margin-left: 0; padding: 0; }
  .content { padding: 0; }
}

/* login page (demo card) */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--blue2); padding: 20px;
}
.login-card { width: 100%; max-width: 430px; background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: 0 2px 14px rgba(37,57,111,.08); }
.login-card .brand-logo { display: block; max-width: 210px; height: auto; margin: 0 auto 14px; }
.login-card h2 { text-align: center; }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 18px; }
.login-card .btn.primary { width: 100%; padding: 12px; font-size: 15.5px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--blue2); padding: 20px; }
.login-wrap .card { width: 100%; max-width: 430px; box-shadow: 0 2px 14px rgba(37,57,111,.08); }
.login-emoji { font-size: 38px; text-align: center; }
.app-circles { display: flex; gap: 12px; justify-content: center; margin: 16px 0 4px; }
.app-circles a {
  width: 56px; height: 56px; border-radius: 50%; background: #111827; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
}
.app-circles a:hover { text-decoration: none; background: #1f2937; }
.demo-box { border-top: 1px dashed #cbd5e1; margin-top: 18px; padding-top: 16px; }
.demo-box .demo-title { text-align: center; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.demo-box .demo-btns { display: flex; gap: 10px; }
.demo-box .demo-btns a, .demo-box .demo-btns button {
  flex: 1; text-align: center; padding: 10px; border-radius: .45rem; color: #fff; font-weight: 700; border: none; cursor: pointer; font-size: .95rem;
}
.demo-box .demo-btns .demo-admin { background: #0f766e; }
.demo-box .demo-btns .demo-member { background: #2563eb; }
/* 2-option entry buttons */
.entry-btns { display: flex; gap: 12px; margin-top: 18px; }
.entry-btns a {
  flex: 1; text-align: center; padding: 14px 10px; border-radius: .45rem; color: #fff;
  font-weight: 700; font-size: 1.05rem; display: block;
}
.entry-btns a:hover { text-decoration: none; opacity: .92; }
.entry-btns .entry-user { background: #2563eb; }
.entry-btns .entry-admin { background: #0f766e; }

/* language switch pill (kept per owner request) */
.lang-switch { display: flex; background: var(--blue2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.lang-switch a {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
  font-weight: 800; font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: .03em; line-height: 1.2;
}
.lang-switch a.active { background: var(--blue); color: #fff; }
.lang-switch button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13.5px; cursor: pointer; color: var(--muted); letter-spacing: .03em; line-height: 1.2; }
.lang-switch button.active { background: var(--blue); color: #fff; }

/* footer inside panel */
.panel-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 0 6px; }

/* ---- Stage 3 dashboard fix (2026-11-10): demo stat cards ---- */
/* The dashboard blades use .stat-grid/.stat-num/.stat-lbl/.stat-sub/.quick-tiles/.fund-grid;
   these were missing, so the dashboard rendered as plain text.
   Demo layout: icon LEFT, text right (label top, big number middle, sub bottom). */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-card { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon lbl" "icon num" "icon sub"; align-items: center; column-gap: 14px; }
.stat-card .stat-icon { grid-area: icon; float: none; }
.stat-card .stat-lbl { grid-area: lbl; font-weight: 600; font-size: .9rem; color: var(--muted); }
.stat-card .stat-num { grid-area: num; font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.stat-card .stat-sub { grid-area: sub; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.stat-card.stat-1 .stat-icon { background: var(--stat-purple); }
.stat-card.stat-2 .stat-icon { background: var(--stat-blue); }
.stat-card.stat-3 .stat-icon { background: var(--stat-green); }
.stat-card.stat-4 .stat-icon { background: var(--stat-red); }
.quick-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.fund-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fund-item { display: flex; flex-direction: column; gap: 2px; }
.fund-lbl { font-size: .85rem; color: var(--muted); }
.fund-val { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.fund-sub { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .fund-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stat-grid, .fund-grid, .quick-tiles { grid-template-columns: 1fr; }
}
