/* ══════════════════════════════════════════════════════
   JSTLCS – Global Stylesheet
   Primary: #1a5c38 | Accent: #f4a61c | BG: #f0f4f2
══════════════════════════════════════════════════════ */
:root {
  --primary:      #1a5c38;
  --primary-dark: #0f3d25;
  --primary-light:#e8f5ee;
  --accent:       #f4a61c;
  --accent-dark:  #c7870f;
  --bg:           #f0f4f2;
  --card:         #ffffff;
  --text:         #1a1a1a;
  --muted:        #6b7280;
  --border:       #e2e8e4;
  --danger:       #dc2626;
  --success:      #16a34a;
  --warning:      #d97706;
  --info:         #2563eb;
  --radius:       12px;
  --radius-lg:    18px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-md:    0 4px 24px rgba(0,0,0,.12);
  --nav-h:        64px;
  --transition:   .2s ease;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}

/* ── Typography ─────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight:700; line-height:1.2; }
a { color:var(--primary); text-decoration:none; }
a:hover { text-decoration:underline; }
img { max-width:100%; display:block; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:12px 22px; border-radius:10px; font-size:14px; font-weight:600;
  border:none; cursor:pointer; transition:all var(--transition);
  text-decoration:none; white-space:nowrap; font-family:inherit;
}
.btn-primary   { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); color:#fff; }
.btn-accent    { background:var(--accent); color:#fff; }
.btn-accent:hover { background:var(--accent-dark); color:#fff; }
.btn-outline   { background:transparent; color:var(--primary); border:2px solid var(--primary); }
.btn-outline:hover { background:var(--primary-light); }
.btn-white     { background:#fff; color:var(--primary); }
.btn-white:hover { background:#f5f5f5; color:var(--primary); }
.btn-danger    { background:var(--danger); color:#fff; }
.btn-sm        { padding:7px 14px; font-size:12px; border-radius:8px; }
.btn-lg        { padding:14px 28px; font-size:16px; border-radius:12px; }
.btn-block     { width:100%; }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background:var(--card); border-radius:var(--radius-lg);
  box-shadow:var(--shadow); padding:20px;
}
.card-sm { padding:14px; border-radius:var(--radius); }

/* ── Badges / Pills ─────────────────────────────────── */
.badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 10px; border-radius:99px; font-size:11px; font-weight:700;
}
.badge-success  { background:#dcfce7; color:#15803d; }
.badge-danger   { background:#fee2e2; color:#b91c1c; }
.badge-warning  { background:#fef3c7; color:#b45309; }
.badge-info     { background:#dbeafe; color:#1d4ed8; }
.badge-muted    { background:#f3f4f6; color:#6b7280; }
.badge-primary  { background:var(--primary-light); color:var(--primary); }
.badge-pending  { background:#fef9c3; color:#854d0e; }

/* ── Form ───────────────────────────────────────────── */
.form-group { margin-bottom:16px; }
.form-label { display:block; font-size:12px; font-weight:600; color:var(--muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:.04em; }
.form-control {
  width:100%; padding:12px 14px; border:1.5px solid var(--border);
  border-radius:10px; font-size:14px; color:var(--text); font-family:inherit;
  background:#fff; transition:border-color var(--transition);
  outline:none;
}
.form-control:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(26,92,56,.12); }
.form-control::placeholder { color:#aab; }
select.form-control { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:16px; padding-right:36px; }
.form-hint { font-size:11px; color:var(--muted); margin-top:4px; }
.form-error { font-size:11px; color:var(--danger); margin-top:4px; }
.input-group { position:relative; }
.input-group .form-control { padding-right:44px; }
.input-group-icon { position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--muted); cursor:pointer; }

/* ── Alerts ─────────────────────────────────────────── */
.alert { display:flex; align-items:flex-start; gap:10px; padding:12px 16px; border-radius:10px; font-size:13px; margin-bottom:16px; }
.alert-success { background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }
.alert-danger  { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.alert-warning { background:#fffbeb; color:#b45309; border:1px solid #fde68a; }
.alert-info    { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }

/* ── Tables ─────────────────────────────────────────── */
.table-wrap { overflow-x:auto; border-radius:var(--radius); }
table.data-table { width:100%; border-collapse:collapse; font-size:13px; }
table.data-table th { background:#f8faf9; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.05em; padding:10px 14px; text-align:left; border-bottom:2px solid var(--border); }
table.data-table td { padding:12px 14px; border-bottom:1px solid var(--border); color:var(--text); vertical-align:middle; }
table.data-table tr:last-child td { border-bottom:none; }
table.data-table tr:hover td { background:#f8faf9; }

/* ── Divider ────────────────────────────────────────── */
.divider { height:1px; background:var(--border); margin:16px 0; }

/* ── Spinner ────────────────────────────────────────── */
.spinner { width:20px; height:20px; border:2.5px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; display:inline-block; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Utility ────────────────────────────────────────── */
.text-primary { color:var(--primary); }
.text-muted   { color:var(--muted); }
.text-success { color:var(--success); }
.text-danger  { color:var(--danger); }
.text-warning { color:var(--warning); }
.text-center  { text-align:center; }
.text-right   { text-align:right; }
.text-sm      { font-size:12px; }
.text-xs      { font-size:11px; }
.text-bold    { font-weight:700; }
.fw-600       { font-weight:600; }
.mt-1 { margin-top:4px; }  .mt-2 { margin-top:8px; }  .mt-3 { margin-top:12px; } .mt-4 { margin-top:16px; } .mt-6 { margin-top:24px; }
.mb-1 { margin-bottom:4px; }.mb-2 { margin-bottom:8px; }.mb-3 { margin-bottom:12px;}.mb-4 { margin-bottom:16px;}.mb-6 { margin-bottom:24px;}
.p-0 { padding:0; }
.w-full { width:100%; }
.hidden { display:none; }
.flex { display:flex; } .items-center { align-items:center; } .justify-between { justify-content:space-between; }
.gap-2 { gap:8px; } .gap-3 { gap:12px; } .gap-4 { gap:16px; }
.rounded-full { border-radius:99px; }
.truncate { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ════════════════════════════════════════════════════
   PUBLIC WEBSITE STYLES
════════════════════════════════════════════════════ */
.pub-nav {
  position:sticky; top:0; z-index:100;
  background:var(--primary); padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
  height:64px; box-shadow:0 2px 12px rgba(0,0,0,.15);
}
.pub-logo { display:flex; align-items:center; gap:10px; }
.pub-logo-text { color:#fff; font-size:13px; font-weight:700; line-height:1.2; max-width:180px; }
.pub-nav-links { display:flex; align-items:center; gap:4px; }
.pub-nav-links a { color:rgba(255,255,255,.85); font-size:13px; font-weight:500; padding:6px 12px; border-radius:8px; transition:all var(--transition); }
.pub-nav-links a:hover { color:#fff; background:rgba(255,255,255,.12); text-decoration:none; }
.pub-nav-links a.active { color:#fff; background:rgba(255,255,255,.15); }
.pub-hamburger { display:none; background:none; border:none; color:#fff; cursor:pointer; padding:6px; }

.pub-hero {
  background:linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2d8a57 100%);
  padding:80px 24px 100px; text-align:center; position:relative; overflow:hidden;
}
.pub-hero::before {
  content:''; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pub-hero-inner { position:relative; max-width:700px; margin:0 auto; }
.pub-hero-logo {
  width:100px; height:100px; border-radius:50%; background:#fff;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 24px; box-shadow:0 8px 32px rgba(0,0,0,.2);
  overflow:hidden;
}
.pub-hero h1 { color:#fff; font-size:clamp(22px,5vw,42px); margin-bottom:14px; }
.pub-hero p  { color:rgba(255,255,255,.85); font-size:16px; max-width:500px; margin:0 auto 32px; line-height:1.7; }
.pub-hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

.pub-section { padding:70px 24px; }
.pub-section-alt { background:#fff; }
.pub-container { max-width:1100px; margin:0 auto; }
.pub-section-title { font-size:clamp(22px,3vw,32px); color:var(--primary); margin-bottom:8px; }
.pub-section-sub  { color:var(--muted); font-size:15px; margin-bottom:40px; }

.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.stat-item { background:var(--primary-light); border-radius:var(--radius-lg); padding:24px; text-align:center; }
.stat-num  { font-size:32px; font-weight:900; color:var(--primary); }
.stat-lbl  { font-size:13px; color:var(--muted); margin-top:4px; font-weight:500; }

.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.feature-card { background:#fff; border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow); border:1px solid var(--border); }
.feature-ico  { width:52px; height:52px; border-radius:14px; background:var(--primary-light); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.feature-ico svg { width:24px; height:24px; color:var(--primary); stroke:var(--primary); }
.feature-card h3 { font-size:16px; color:var(--text); margin-bottom:8px; }
.feature-card p  { font-size:13px; color:var(--muted); line-height:1.6; }

.board-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.board-card { background:#fff; border-radius:var(--radius-lg); padding:20px; text-align:center; box-shadow:var(--shadow); border:1px solid var(--border); }
.board-avatar { width:80px; height:80px; border-radius:50%; background:var(--primary); margin:0 auto 12px; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:800; color:#fff; overflow:hidden; }
.board-name  { font-size:14px; font-weight:700; color:var(--text); }
.board-role  { font-size:12px; color:var(--primary); font-weight:600; margin-top:2px; }

.loan-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.loan-card { background:#fff; border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow); border:1px solid var(--border); border-top:4px solid var(--primary); }
.loan-card h3 { font-size:18px; color:var(--primary); margin-bottom:10px; }
.loan-card .loan-rate { font-size:28px; font-weight:900; color:var(--text); }
.loan-list { list-style:none; margin:14px 0 20px; }
.loan-list li { font-size:13px; color:var(--muted); padding:5px 0; border-bottom:1px solid var(--border); display:flex; gap:8px; }
.loan-list li::before { content:'✓'; color:var(--success); font-weight:700; }

.faq-item { border:1px solid var(--border); border-radius:var(--radius); margin-bottom:10px; overflow:hidden; }
.faq-q { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; cursor:pointer; font-size:14px; font-weight:600; color:var(--text); background:#fff; }
.faq-q:hover { background:var(--primary-light); }
.faq-a { padding:0 20px; max-height:0; overflow:hidden; transition:max-height .3s ease, padding .3s; font-size:13px; color:var(--muted); line-height:1.7; background:#fff; }
.faq-a.open { max-height:200px; padding:0 20px 16px; }

.pub-footer { background:var(--primary-dark); color:#fff; padding:50px 24px 24px; }
.pub-footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
.pub-footer h4 { font-size:14px; font-weight:700; margin-bottom:14px; color:rgba(255,255,255,.9); }
.pub-footer p, .pub-footer a { font-size:13px; color:rgba(255,255,255,.65); line-height:1.8; }
.pub-footer a:hover { color:#fff; text-decoration:none; }
.pub-footer-links { list-style:none; display:flex; flex-direction:column; gap:4px; }
.pub-footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:20px; display:flex; justify-content:space-between; align-items:center; font-size:12px; color:rgba(255,255,255,.5); }

/* ════════════════════════════════════════════════════
   MEMBER PORTAL (PWA) STYLES
════════════════════════════════════════════════════ */
.pwa-body {
  background:var(--bg);
  padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));
  min-height:100vh;
}

/* Top appbar */
.pwa-topbar {
  position:sticky; top:0; z-index:80;
  background:var(--primary); padding:0 16px;
  display:flex; align-items:center; justify-content:space-between;
  height:56px;
}
.pwa-topbar-title { color:#fff; font-size:16px; font-weight:700; }
.pwa-topbar-back  { color:#fff; background:none; border:none; cursor:pointer; display:flex; align-items:center; gap:4px; font-size:14px; font-weight:500; }
.pwa-topbar-action{ color:#fff; background:none; border:none; cursor:pointer; }
.notif-ico { position:relative; }
.notif-dot { position:absolute; top:-2px; right:-2px; width:8px; height:8px; border-radius:50%; background:var(--accent); border:1.5px solid var(--primary); }

/* Hero balance card */
.balance-hero {
  background:linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 70%, #2d8a57 100%);
  padding:20px 18px 28px; position:relative; overflow:hidden;
}
.balance-hero::after {
  content:''; position:absolute;
  width:300px; height:300px; border-radius:50%;
  background:rgba(255,255,255,.05);
  top:-120px; right:-80px; pointer-events:none;
}
.balance-hero::before {
  content:''; position:absolute;
  width:160px; height:160px; border-radius:50%;
  background:rgba(255,255,255,.04);
  bottom:-60px; left:20%; pointer-events:none;
}
.bh-inner { position:relative; z-index:1; }
.bh-greeting { color:rgba(255,255,255,.75); font-size:13px; margin-bottom:2px; }
.bh-name     { color:#fff; font-size:18px; font-weight:800; margin-bottom:16px; }
.bh-mid      { color:rgba(255,255,255,.65); font-size:11px; margin-bottom:16px; display:flex; align-items:center; gap:6px; }
.bh-bal-label{ color:rgba(255,255,255,.7); font-size:11px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:5px; }
.bh-bal-main { color:#fff; font-size:28px; font-weight:900; letter-spacing:-.5px; display:flex; align-items:center; gap:10px; }
.bh-eye      { background:rgba(255,255,255,.15); border:none; border-radius:8px; width:30px; height:30px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#fff; }
.bh-sub      { display:flex; gap:0; border-top:1px solid rgba(255,255,255,.15); margin-top:16px; padding-top:14px; }
.bh-sub-item { flex:1; }
.bh-sub-item+.bh-sub-item { border-left:1px solid rgba(255,255,255,.15); padding-left:14px; }
.bh-sub-lbl  { color:rgba(255,255,255,.6); font-size:10px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:3px; }
.bh-sub-val  { color:#fff; font-size:14px; font-weight:700; }

/* Quick actions */
.quick-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:0; background:var(--primary); }
.quick-actions.row2 { grid-template-columns:repeat(3,1fr); border-top:1px solid rgba(255,255,255,.15); }
.qa-btn { display:flex; flex-direction:column; align-items:center; gap:5px; padding:14px 8px; cursor:pointer; text-decoration:none; transition:background var(--transition); border:none; background:none; }
.qa-btn:hover { background:rgba(255,255,255,.1); }
.qa-ico { width:40px; height:40px; border-radius:12px; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; }
.qa-ico svg { width:18px; height:18px; stroke:#fff; }
.qa-lbl { color:rgba(255,255,255,.9); font-size:10px; font-weight:600; text-align:center; }

/* Bottom navigation */
.bottom-nav {
  position:fixed; bottom:0; left:0; right:0; z-index:90;
  background:#fff; border-top:1px solid var(--border);
  display:grid; grid-template-columns:repeat(4,1fr);
  padding-bottom:env(safe-area-inset-bottom);
  box-shadow:0 -4px 16px rgba(0,0,0,.08);
  height:var(--nav-h);
}
.bn-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; cursor:pointer; text-decoration:none; padding:6px 0; border:none; background:none; position:relative; }
.bn-item .bn-ico { width:22px; height:22px; stroke:var(--muted); transition:stroke var(--transition); }
.bn-item .bn-lbl { font-size:10px; color:var(--muted); font-weight:600; transition:color var(--transition); }
.bn-item.active .bn-ico { stroke:var(--primary); }
.bn-item.active .bn-lbl { color:var(--primary); }
.bn-item.active::after { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:24px; height:3px; background:var(--primary); border-radius:0 0 4px 4px; }
.bn-badge { position:absolute; top:4px; right:calc(50% - 18px); background:var(--danger); color:#fff; font-size:9px; font-weight:700; min-width:16px; height:16px; border-radius:99px; display:flex; align-items:center; justify-content:center; padding:0 3px; }

/* Section card */
.section-card { background:#fff; border-radius:var(--radius-lg); margin:12px 14px; box-shadow:var(--shadow); overflow:hidden; }
.section-head { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border); }
.section-title { font-size:14px; font-weight:700; color:var(--text); }
.section-link  { font-size:12px; color:var(--primary); font-weight:600; }

/* Transaction list item */
.tx-item { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border); transition:background var(--transition); }
.tx-item:last-child { border-bottom:none; }
.tx-item:hover { background:var(--bg); }
.tx-icon { width:38px; height:38px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:14px; }
.tx-icon.credit { background:#dcfce7; color:#15803d; }
.tx-icon.debit  { background:#fee2e2; color:#b91c1c; }
.tx-icon.info   { background:#dbeafe; color:#1d4ed8; }
.tx-icon.warn   { background:#fef9c3; color:#854d0e; }
.tx-body { flex:1; min-width:0; }
.tx-desc { font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tx-date { font-size:11px; color:var(--muted); margin-top:2px; }
.tx-amt  { font-size:14px; font-weight:700; white-space:nowrap; }
.tx-amt.cr { color:var(--success); }
.tx-amt.dr { color:var(--danger); }

/* Summary row */
.sum-row { display:flex; justify-content:space-between; align-items:center; padding:10px 16px; border-bottom:1px solid var(--border); font-size:13px; }
.sum-row:last-child { border-bottom:none; }
.sum-lbl { color:var(--muted); }
.sum-val { font-weight:700; color:var(--text); }

/* ── Login page ─────────────────────────────────────── */
.auth-body { background:var(--primary); min-height:100vh; display:flex; flex-direction:column; }
.auth-top  { padding:40px 24px 30px; text-align:center; }
.auth-logo { width:72px; height:72px; border-radius:50%; background:#fff; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.auth-title{ color:#fff; font-size:22px; font-weight:800; margin-bottom:4px; }
.auth-sub  { color:rgba(255,255,255,.75); font-size:13px; }
.auth-card { background:#fff; border-radius:24px 24px 0 0; flex:1; padding:28px 24px 40px; margin-top:10px; }
.auth-card h2 { font-size:20px; font-weight:800; color:var(--text); margin-bottom:4px; }
.auth-card p  { font-size:13px; color:var(--muted); margin-bottom:24px; }

/* ── Admin Layout ───────────────────────────────────── */
.admin-layout { display:flex; min-height:100vh; }
.admin-sidebar {
  width:260px; background:var(--primary-dark); flex-shrink:0;
  display:flex; flex-direction:column; position:fixed; top:0; left:0;
  height:100vh; z-index:100; overflow-y:auto; transition:transform var(--transition);
}
.admin-sidebar-logo { padding:20px 18px; border-bottom:1px solid rgba(255,255,255,.1); display:flex; align-items:center; gap:10px; }
.admin-sidebar-logo span { color:#fff; font-size:13px; font-weight:700; line-height:1.3; }
.admin-nav { flex:1; padding:12px 0; }
.admin-nav-section { padding:8px 18px 4px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.4); }
.admin-nav-item { display:flex; align-items:center; gap:10px; padding:10px 18px; color:rgba(255,255,255,.7); font-size:13px; font-weight:500; text-decoration:none; transition:all var(--transition); cursor:pointer; }
.admin-nav-item:hover { background:rgba(255,255,255,.08); color:#fff; text-decoration:none; }
.admin-nav-item.active { background:rgba(255,255,255,.12); color:#fff; border-right:3px solid var(--accent); }
.admin-nav-item svg { width:16px; height:16px; flex-shrink:0; opacity:.7; }
.admin-nav-item.active svg { opacity:1; }
.admin-sidebar-footer { padding:14px 18px; border-top:1px solid rgba(255,255,255,.1); }
.admin-main { margin-left:260px; flex:1; display:flex; flex-direction:column; }
.admin-topbar { background:#fff; height:60px; display:flex; align-items:center; justify-content:space-between; padding:0 24px; border-bottom:1px solid var(--border); box-shadow:var(--shadow); position:sticky; top:0; z-index:50; }
.admin-page-body { padding:24px; }

/* Admin stat cards */
.admin-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.astat { background:#fff; border-radius:var(--radius-lg); padding:18px; box-shadow:var(--shadow); border:1px solid var(--border); }
.astat-ico { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.astat-ico svg { width:20px; height:20px; }
.astat-ico.green { background:#dcfce7; color:#15803d; stroke:#15803d; }
.astat-ico.blue  { background:#dbeafe; color:#1d4ed8; stroke:#1d4ed8; }
.astat-ico.amber { background:#fef3c7; color:#b45309; stroke:#b45309; }
.astat-ico.red   { background:#fee2e2; color:#b91c1c; stroke:#b91c1c; }
.astat-ico.purple{ background:#f3e8ff; color:#7c3aed; stroke:#7c3aed; }
.astat-ico.teal  { background:#ccfbf1; color:#0d9488; stroke:#0d9488; }
.astat-val { font-size:22px; font-weight:900; color:var(--text); letter-spacing:-.5px; }
.astat-lbl { font-size:12px; color:var(--muted); margin-top:2px; }

/* ── Responsive ─────────────────────────────────────── */
@media(max-width:1024px) {
  .admin-main   { margin-left:0; }
  .admin-sidebar{ transform:translateX(-100%); }
  .admin-sidebar.open { transform:translateX(0); }
  .stat-grid    { grid-template-columns:repeat(2,1fr); }
  .board-grid   { grid-template-columns:repeat(2,1fr); }
  .pub-footer-grid { grid-template-columns:1fr 1fr; }
  .admin-stats  { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:768px) {
  .pub-nav-links { display:none; }
  .pub-hamburger { display:flex; }
  .feature-grid  { grid-template-columns:1fr; }
  .loan-grid     { grid-template-columns:1fr; }
  .pub-footer-grid { grid-template-columns:1fr; }
}
@media(max-width:480px) {
  .stat-grid    { grid-template-columns:1fr 1fr; }
  .board-grid   { grid-template-columns:1fr 1fr; }
  .admin-stats  { grid-template-columns:1fr 1fr; }
  .pub-hero     { padding:50px 20px 70px; }
}
@media(max-width:360px) {
  .admin-stats  { grid-template-columns:1fr; }
}
