/* =============================================================
   RIMSONIANS Alumni Portal - theme
   ============================================================= */
:root {
    --primary: #0b5a7a;
    --primary-600: #094c68;
    --primary-800: #06354a;
    --primary-50: #e8f2f7;
    --accent: #c8952e;
    --accent-50: #fbf3e2;
    --bg: #f2f5f8;
    --surface: #ffffff;
    --text: #1d2b3a;
    --muted: #64748b;
    --border: #dfe6ed;
    --success: #157347;  --success-50: #e6f4ec;
    --danger:  #b42318;  --danger-50:  #fdecea;
    --warning: #a15c07;  --warning-50: #fdf4e3;
    --info:    #0b69a3;  --info-50:    #e7f2fa;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
    --shadow-lg: 0 12px 32px rgba(16,24,40,.12);
    --sidebar-w: 256px;
    --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; color: var(--primary-800); }
h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.text-right { text-align: right; } .text-center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem }
.hidden { display: none !important; }
.req { color: var(--danger); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:focus-visible { outline: 3px solid rgba(11,90,122,.3); outline-offset: 1px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #b1821f; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #95190f; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0f5c38; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: .38rem .75rem; font-size: .83rem; }
.btn-xs { padding: .22rem .5rem; font-size: .78rem; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.icon-btn { background: none; border: 0; padding: .4rem; border-radius: 8px; cursor: pointer; color: var(--text); display: inline-flex; }
.icon-btn:hover { background: var(--bg); }

/* ---------- Alerts / badges ---------- */
.alert { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid; font-size: .93rem; }
.alert-success { background: var(--success-50); border-color: #b7e0c8; color: #0d4f30; }
.alert-danger  { background: var(--danger-50);  border-color: #f5c2bd; color: #7a150d; }
.alert-warning { background: var(--warning-50); border-color: #f1d9a8; color: #6b3d05; }
.alert-info    { background: var(--info-50);    border-color: #b9d9ee; color: #0a4a73; }
.alert-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.alert ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-danger  { background: var(--danger-50);  color: var(--danger); }
.badge-info    { background: var(--info-50);    color: var(--info); }
.badge-gold    { background: var(--accent-50);  color: #8a6212; }
.badge-muted   { background: #eef1f4; color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .95rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.card-body { padding: 1.25rem; }
.card-footer { padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: #fafbfc; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem 1.1rem; }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; } .col-5 { grid-column: span 5; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
.field label, .label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: #334155; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
    width: 100%; padding: .6rem .75rem; font: inherit; font-size: .93rem; color: var(--text); background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,90,122,.15); }
input[readonly] { background: #f5f7f9; color: var(--muted); }
.is-invalid { border-color: var(--danger) !important; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-top: .35rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; margin: 0; cursor: pointer; }
.input-group { display: flex; gap: .5rem; }
.input-group > select { width: auto; flex: 0 0 110px; }
.form-section { grid-column: span 12; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: .4rem; margin-top: .6rem; display: flex; align-items: center; gap: .5rem; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.25rem; }

.photo-upload { display: flex; gap: 1rem; align-items: center; }
.photo-preview { width: 96px; height: 120px; border-radius: 8px; border: 2px dashed #cbd5e1; object-fit: cover; background: #f1f5f9; flex-shrink: 0; }

.captcha-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.captcha-row img { border-radius: 8px; border: 1px solid var(--border); height: 50px; }
.captcha-row input { max-width: 180px; }

/* ---------- Fee notice / payment proof ---------- */
.fee-notice { background: var(--accent-50); border: 1px solid #ecd6a6; border-radius: var(--radius); padding: 1rem 1.15rem; color: #5c430f; font-size: .92rem; }
.fee-notice p { margin: 0 0 .75rem; }
.bank-box { background: #fff; border: 1px dashed #d4b06a; border-radius: 8px; padding: .75rem 1rem; line-height: 1.7; color: var(--text); display: inline-block; min-width: min(100%, 340px); }
.bank-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a6212; }
.mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .03em; }
.payment-preview { object-fit: contain; background: #fff; }
.payment-current { display: flex; gap: 1rem; align-items: center; padding: .75rem; border: 1px solid var(--border); border-radius: 10px; background: #fafbfc; margin-bottom: .75rem; flex-wrap: wrap; }
.payment-current img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.pay-row { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid #eef2f5; color: var(--text); text-decoration: none !important; }
.pay-row:last-of-type { border-bottom: 0; }
.pay-row:hover .pay-label .badge { box-shadow: 0 0 0 2px rgba(11,90,122,.15); }
.pay-label { width: 110px; flex-shrink: 0; }
.pay-num { width: 40px; text-align: right; }
.pay-pct { width: 38px; text-align: right; }
.pay-actions { display: flex; flex-direction: column; gap: .5rem; min-width: 240px; }
.proof-large { max-width: 100%; max-height: 520px; border-radius: 10px; border: 1px solid var(--border); display: block; background: #fff; }

/* ---------- Public layout ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.public-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.public-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.public-nav { display: flex; align-items: center; gap: 1.25rem; }
.public-nav a:not(.btn) { color: var(--text); font-weight: 600; font-size: .93rem; }
.public-main { min-height: calc(100vh - 68px - 64px); padding: 1.5rem 0 2.5rem; }
.public-footer { background: var(--primary-800); color: #b9cbd6; font-size: .85rem; }
.public-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.3rem; padding-bottom: 1.3rem; }
.public-footer a { color: #fff; }

.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none !important; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 1.1rem; letter-spacing: .06em; }
.brand small { font-size: .72rem; opacity: .8; }
.brand-dark { color: var(--primary-800); }

.hero { background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary) 60%, #1180a8 100%); color: #fff; border-radius: 16px; padding: 3rem 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero h1 { color: #fff; font-size: 2.1rem; margin-bottom: .75rem; }
.hero p { color: #d5e4ec; font-size: 1.05rem; margin: 0 0 1.5rem; }
.hero .eyebrow { display: inline-block; background: rgba(200,149,46,.2); color: #f3d38e; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 1.5rem; position: relative; z-index: 1; }
.hero-card h3 { color: #fff; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-stats div { background: rgba(0,0,0,.12); border-radius: 10px; padding: .9rem; }
.hero-stats b { display: block; font-size: 1.6rem; color: #fff; }
.hero-stats span { font-size: .8rem; color: #c3d6e1; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.75rem; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.feature .fi { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: .8rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

.auth-shell { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 1rem auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.auth-side { background: linear-gradient(160deg, var(--primary-800), var(--primary)); color: #d7e6ee; padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 1.6rem; }
.auth-side ul { padding-left: 1.1rem; margin: 1rem 0; }
.auth-side li { margin-bottom: .45rem; }
.auth-form { padding: 2.25rem 2.5rem; }
.tabs { display: flex; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 1.4rem; gap: 4px; }
.tabs a, .tabs button { flex: 1; text-align: center; padding: .55rem .5rem; border-radius: 8px; font-weight: 600; font-size: .85rem; color: var(--muted); border: 0; background: none; cursor: pointer; font-family: inherit; text-decoration: none; }
.tabs .active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.auth-form .field { margin-bottom: 1rem; }

.reg-card { max-width: 1000px; margin: 0 auto; }
.success-box { max-width: 620px; margin: 1rem auto; text-align: center; }
.cred-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.cred-box div { background: var(--primary-50); border: 1px dashed var(--primary); border-radius: 10px; padding: 1rem; }
.cred-box span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cred-box b { font-size: 1.45rem; color: var(--primary-800); letter-spacing: .04em; font-family: Consolas, monospace; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-50); color: var(--success); display: grid; place-items: center; margin: 0 auto 1rem; }

/* ---------- Portal layout ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--primary-800); color: #c5d6e0; display: flex; flex-direction: column; z-index: 40; transition: transform .25s ease; }
.sidebar .brand { padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-nav { padding: .75rem .75rem 1.5rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; }
.nav-section { font-size: .68rem; letter-spacing: .1em; font-weight: 700; color: #7f9cae; padding: 1rem .75rem .4rem; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 8px; color: #c5d6e0; font-size: .92rem; font-weight: 500; text-decoration: none; margin-bottom: 2px; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: var(--primary); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side-nav .nav-logout { margin-top: auto; color: #f3b8b1; }
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); height: 64px; display: flex; align-items: center; gap: .75rem; padding: 0 1.5rem; }
.page-title { font-size: 1.2rem; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle { display: none; }
.user-chip { position: relative; display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem; border-radius: 10px; cursor: pointer; }
.user-chip:hover, .user-chip:focus-within { background: var(--bg); }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta b { font-size: .88rem; } .user-meta small { font-size: .75rem; color: var(--muted); }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem; }
.user-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 200px; padding: .4rem; display: none; }
.user-chip:hover .user-menu, .user-chip:focus-within .user-menu { display: block; }
.user-menu a { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: 6px; color: var(--text); font-size: .9rem; text-decoration: none; }
.user-menu a:hover { background: var(--bg); }
.content { padding: 1.5rem; flex: 1; width: 100%; max-width: 1400px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.5rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); background: #fff; }
.sidebar-backdrop { display: none; }

/* ---------- Dashboard ---------- */
.welcome { background: linear-gradient(120deg, var(--primary-800), var(--primary)); color: #dbe8ef; border-radius: var(--radius); padding: 1.5rem 1.75rem; display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.welcome h2 { color: #fff; margin: 0 0 .2rem; }
.welcome img, .welcome .avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.35); }
.welcome .grow { flex: 1; min-width: 200px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; box-shadow: var(--shadow); }
.stat .si { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.stat b { display: block; font-size: 1.55rem; line-height: 1.1; color: var(--primary-800); }
.stat span { font-size: .82rem; color: var(--muted); }
.si-blue { background: var(--primary-50); color: var(--primary); }
.si-green { background: var(--success-50); color: var(--success); }
.si-red { background: var(--danger-50); color: var(--danger); }
.si-gold { background: var(--accent-50); color: #8a6212; }
.si-info { background: var(--info-50); color: var(--info); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }
.chart-box { position: relative; height: 290px; }
.chart-box.tall { height: 340px; }
.progress { height: 8px; border-radius: 99px; background: #e8edf2; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--primary), #1497c4); border-radius: 99px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.quick-links a { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; background: #fff; }
.quick-links a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid #eef2f5; font-size: .9rem; }
.list-plain li:last-child { border-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f7f9fb; font-weight: 700; padding: .7rem .9rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .7rem .9rem; border-bottom: 1px solid #eef2f5; vertical-align: middle; }
.table tbody tr:hover { background: #fafcfd; }
.table tr.group-row td { background: var(--primary-50); color: var(--primary-800); font-weight: 700; font-size: .85rem; }
.table tr.blocked td { background: #fff8f7; }
.table .person { display: flex; align-items: center; gap: .65rem; min-width: 180px; }
.table .person img, .table .person .avatar-initials { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.table .person b { display: block; font-weight: 600; }
.table .person small { color: var(--muted); font-size: .78rem; }
.table tfoot td { font-weight: 700; background: #f7f9fb; }
.actions { display: flex; gap: .35rem; flex-wrap: nowrap; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.pager-info { font-size: .85rem; color: var(--muted); }
.pager-links { display: flex; flex-wrap: wrap; gap: .3rem; }
.pager-links a, .pager-links span { min-width: 36px; padding: .4rem .7rem; border-radius: 8px; border: 1px solid var(--border); font-size: .85rem; text-align: center; color: var(--text); background: #fff; text-decoration: none; }
.pager-links a:hover { border-color: var(--primary); color: var(--primary); }
.pager-links .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pager-links .disabled { color: #b4bfca; }
.pager-links .dots { border: 0; background: none; }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; align-items: end; }
.filters .field label { font-size: .78rem; }
.filters .btns { display: flex; gap: .5rem; }
details.adv summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: .88rem; margin-top: .75rem; }
details.adv[open] summary { margin-bottom: .75rem; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.profile-head .photo { width: 130px; height: 160px; border-radius: 12px; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-lg); background: #eef2f5; }
.profile-head h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.profile-head .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.profile-head .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 2rem; }
.dl > div { display: flex; flex-direction: column; padding: .7rem 0; border-bottom: 1px solid #eef2f5; }
.dl dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.dl dd { margin: .15rem 0 0; font-weight: 500; word-break: break-word; }
.dl dd:empty::before { content: "—"; color: #b4bfca; }

.member-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; padding: 1.25rem; }
.member-card { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; display: flex; gap: .85rem; background: #fff; transition: box-shadow .15s, border-color .15s; color: var(--text); text-decoration: none !important; }
.member-card:hover { border-color: #b8cfdc; box-shadow: var(--shadow-lg); }
.member-card img, .member-card .avatar-initials { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 1.05rem; }
.member-card b { display: block; color: var(--primary-800); }
.member-card .mc-sub { font-size: .8rem; color: var(--muted); display: block; }
.member-card .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }

/* ---------- Report ---------- */
.report-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.report-types a { display: flex; gap: .6rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--text); text-decoration: none; background: #fff; }
.report-types a:hover { border-color: var(--primary); color: var(--primary); }
.report-types a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.print-header { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(6,20,30,.45); z-index: 35; }
    .main { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
    .features { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}
@media (max-width: 720px) {
    .col-8, .col-6, .col-5, .col-4, .col-3 { grid-column: span 12; }
    .content { padding: 1rem; }
    .topbar { padding: 0 1rem; }
    .user-meta { display: none; }
    .auth-form { padding: 1.5rem 1.25rem; }
    .public-nav { gap: .7rem; flex-shrink: 0; }
    .public-nav a:not(.btn) { font-size: .85rem; }
    .public-nav a[href$="index.php"], .public-nav a[href$="register.php"] { display: none; }   /* phones: Members + Login only */
    .public-header .brand { min-width: 0; }
    .public-header .brand b { font-size: .95rem; letter-spacing: .03em; }
    .public-header .brand img { width: 34px; height: 34px; }
    .hero h1 { font-size: 1.6rem; }
    .cred-box { grid-template-columns: 1fr; }
    .card-body { padding: 1rem; }
    .pager { justify-content: center; }
    .profile-head { flex-direction: column; text-align: center; }
    .profile-head .meta { justify-content: center; }
    .brand small { display: none; }
}

/* ---------- Print ---------- */
@media print {
    .sidebar, .topbar, .footer, .no-print, .pager-links, .alert, .btn { display: none !important; }
    .main { margin: 0; }
    .content { padding: 0; max-width: none; }
    body { background: #fff; font-size: 11px; }
    .card { box-shadow: none; border: 0; }
    .print-header { display: block; text-align: center; margin-bottom: 10px; }
    .table th, .table td { padding: 4px 6px; }
    .table-wrap { overflow: visible; }
}

.table tr.deceased td { background: #f7f8f9; color: #5b6673; }
.public-search { display: flex; gap: .5rem; flex-wrap: wrap; }
.public-search input { width: 240px; }
.list-photo { width: 48px; height: 58px; border-radius: 6px; object-fit: cover; display: grid; place-items: center; border: 1px solid var(--border); background: #eef2f5; }
.list-photo.avatar-initials { border: 0; font-size: .95rem; background: var(--primary); color: #fff; }
@media (max-width: 720px) { .public-search, .public-search input { width: 100%; } .public-search .btn { flex: 1; } }
