/* =====================================================================
   FPAA CONNECT — Design System
   Falakata Polytechnic Alumni Association
   Glassmorphism + Neumorphism + 3D UI
   ---------------------------------------------------------------------
   Sections:
     01 Tokens            09 Tables            17 Directory
     02 Base              10 Modals            18 Membership
     03 Background        11 Toasts/Alerts     19 Career / Events
     04 Layout/Sidebar    12 Charts            20 Donations / Achievements
     05 Topbar            13 Home              21 Memories / Scheme / Notices
     06 Glass surfaces    14 Gallery / Feed    22 Admin
     07 Buttons/Chips     15 My FPAA           23 Chat / Notifications
     08 Forms             16 About             24 Login / Footer / Print / Responsive
   ===================================================================== */

/* ---------- 01 TOKENS ---------- */
:root {
  --navy: #15365F;
  --navy-900: #0B2141;
  --navy-700: #1E4A80;
  --blue: #3B82F6;
  --blue-300: #93C5FD;
  --indigo: #6366F1;
  --violet: #8B5CF6;
  --gold: #D7A52B;
  --gold-soft: #F7E7B8;
  --teal: #0EA5A4;
  --green: #16A34A;
  --amber: #D97706;
  --red: #DC2626;

  --bg: #EEF4FF;
  --bg-2: #F7FAFF;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --surface-soft: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.75);
  --line: rgba(21, 54, 95, 0.10);
  --line-strong: rgba(21, 54, 95, 0.18);

  --text: #0F2744;
  --text-2: #29466B;
  --muted: #5B6B82;
  --muted-2: #8394AB;

  --grad-brand: linear-gradient(135deg, #15365F 0%, #3B82F6 55%, #6366F1 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(99, 102, 241, .12));
  --grad-gold: linear-gradient(135deg, #F7DD8B, #D7A52B 55%, #A67C16);

  --shadow-neu: 14px 14px 34px rgba(21, 54, 95, 0.10), -10px -10px 26px rgba(255, 255, 255, 0.85);
  --shadow-soft: 0 10px 30px rgba(21, 54, 95, 0.08);
  --shadow-lift: 0 22px 48px rgba(21, 54, 95, 0.16);
  --shadow-inset: inset 4px 4px 10px rgba(21, 54, 95, 0.08), inset -4px -4px 10px rgba(255, 255, 255, 0.9);
  --glow: 0 0 0 1px rgba(99, 102, 241, .18), 0 8px 30px rgba(59, 130, 246, .22);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --sidebar-w: 272px;
  --topbar-h: 72px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --t-fast: .18s var(--ease);
  --t-med: .35s var(--ease);
}

/* ---------- 02 BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text); margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(59, 130, 246, .45); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--indigo);
}
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }

/* ---------- 03 BACKGROUND ---------- */
.app-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, .14), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(215, 165, 43, .10), transparent 60%),
    linear-gradient(180deg, #F4F8FF 0%, #EAF1FF 100%);
}
.app-bg .orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; animation: orbFloat 22s ease-in-out infinite; }
.app-bg .orb-1 { width: 380px; height: 380px; left: -80px; top: 30%; background: rgba(59, 130, 246, .30); }
.app-bg .orb-2 { width: 300px; height: 300px; right: -60px; top: 60%; background: rgba(139, 92, 246, .26); animation-delay: -7s; }
.app-bg .orb-3 { width: 240px; height: 240px; left: 45%; top: -80px; background: rgba(99, 102, 241, .22); animation-delay: -13s; }
.app-bg .grid-lines { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(21, 54, 95, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 54, 95, .035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }

/* ---------- 04 LAYOUT / SIDEBAR ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 60;
  display: flex; flex-direction: column;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .80), rgba(240, 246, 255, .72));
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 40px rgba(21, 54, 95, .06);
  transition: transform var(--t-med);
}
.sb-brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sb-brand img { width: 50px; height: 50px; filter: drop-shadow(0 6px 12px rgba(21, 54, 95, .30)); transition: transform .6s var(--ease); }
.sb-brand:hover img { transform: perspective(300px) rotateY(-14deg) scale(1.05); }
.sb-brand .t1 { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--navy); line-height: 1.1; }
.sb-brand .t2 { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; line-height: 1.3; }
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 2px; scrollbar-width: thin; }
.sb-group { font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase; padding: 14px 12px 6px; }
.sb-link {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; margin: 2px 0; border: 0; background: transparent; border-radius: 12px;
  color: var(--text-2); font-weight: 600; font-size: .93rem; text-align: left; text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.sb-link:hover { background: rgba(59, 130, 246, .08); color: var(--navy); text-decoration: none; transform: translateX(2px); }
.sb-link .ico { color: var(--muted); transition: color var(--t-fast); }
.sb-link.active { background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(99, 102, 241, .14)); color: var(--navy); box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .18); }
.sb-link.active .ico { color: var(--indigo); }
.sb-link.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad-brand); box-shadow: 0 0 12px rgba(99, 102, 241, .6); }
.sb-link .lock { margin-left: auto; width: 14px; height: 14px; color: var(--muted-2); }
.sb-foot { border-top: 1px solid var(--line); padding: 12px 6px 2px; font-size: .74rem; color: var(--muted); }
.sb-foot .mode { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(215, 165, 43, .14); color: #8A6510; font-weight: 700; }
.sb-foot .mode.live { background: rgba(22, 163, 74, .12); color: var(--green); }
.sb-overlay { position: fixed; inset: 0; background: rgba(11, 33, 65, .35); backdrop-filter: blur(3px); z-index: 55; opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility var(--t-med); }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.view { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 26px 30px 90px; }
.view-enter { animation: morphIn .55s var(--ease) both; }
@keyframes morphIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.reveal { animation: fadeUp .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 05 TOPBAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 30px;
  background: rgba(244, 248, 255, .72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.icon-btn.tb-burger { display: none; }
.tb-title { min-width: 0; flex: 1; }
.tb-title .crumb { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.tb-title .name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border);
  display: inline-grid; place-items: center; color: var(--navy);
  background: var(--surface-strong); box-shadow: 6px 6px 14px rgba(21, 54, 95, .08), -4px -4px 12px rgba(255, 255, 255, .9);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: linear-gradient(135deg, #EF4444, #DB2777); color: #fff; font-size: .7rem; font-weight: 800; display: inline-grid; place-items: center; box-shadow: 0 4px 10px rgba(219, 39, 119, .35); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-strong); box-shadow: var(--shadow-soft); max-width: 260px; }
.user-chip .who { min-width: 0; line-height: 1.2; }
.user-chip .who b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .who span { font-size: .72rem; color: var(--muted); }

/* ---------- 06 GLASS SURFACES ---------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-neu);
}
.card { padding: 22px; min-width: 0; }
.card-lift { transition: transform var(--t-med), box-shadow var(--t-med); }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { margin: 2px 0 0; }
.card-head .sub { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 4px 0 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); max-width: 760px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 6px 0 4px; }
.page-head p { margin: 0; color: var(--muted); max-width: 760px; }
.ico-tile {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  color: #fff; background: var(--grad-brand); box-shadow: 0 10px 22px rgba(59, 130, 246, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.ico-tile.gold { background: var(--grad-gold); box-shadow: 0 10px 22px rgba(215, 165, 43, .35); }
.ico-tile.violet { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.ico-tile.teal { background: linear-gradient(135deg, #0EA5A4, #3B82F6); }
.ico-tile.soft { background: var(--grad-soft); color: var(--indigo); box-shadow: var(--shadow-inset); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.split-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid > *, .quick-list > *, .stack > * { min-width: 0; }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- 07 BUTTONS / CHIPS / PILLS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: .9rem; letter-spacing: .01em; white-space: nowrap; text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), opacity var(--t-fast);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { color: #fff; background: var(--grad-brand); box-shadow: 0 10px 24px rgba(59, 130, 246, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(99, 102, 241, .42); }
.btn-gold { color: #3A2A05; background: var(--grad-gold); box-shadow: 0 10px 22px rgba(215, 165, 43, .35); }
.btn-ghost { color: var(--navy); background: var(--surface-strong); border-color: var(--border); box-shadow: 6px 6px 14px rgba(21, 54, 95, .07), -4px -4px 12px rgba(255, 255, 255, .9); }
.btn-ghost:hover { box-shadow: var(--glow); }
.btn-soft { color: var(--indigo); background: rgba(99, 102, 241, .10); }
.btn-danger { color: #fff; background: linear-gradient(135deg, #EF4444, #DC2626); box-shadow: 0 8px 20px rgba(220, 38, 38, .28); }
.btn-success { color: #fff; background: linear-gradient(135deg, #22C55E, #16A34A); box-shadow: 0 8px 20px rgba(22, 163, 74, .26); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .8rem; border-radius: 10px; }
.btn-xs { min-height: 28px; padding: 4px 10px; font-size: .74rem; border-radius: 8px; gap: 5px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; }
.link-btn:hover { text-decoration: underline; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: rgba(59, 130, 246, .10); color: var(--navy-700); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip.gold { background: rgba(215, 165, 43, .16); color: #7D5B0C; }
.chip.violet { background: rgba(139, 92, 246, .12); color: #5B34C7; }
.chip.teal { background: rgba(14, 165, 164, .12); color: #0B7C7B; }
.chip.slate { background: rgba(91, 107, 130, .12); color: var(--text-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-green { color: #15803D; background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .25); }
.pill-amber { color: #B45309; background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .28); }
.pill-blue { color: #1D4ED8; background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .25); }
.pill-violet { color: #6D28D9; background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .25); }
.pill-red { color: #B91C1C; background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .25); }
.pill-slate { color: #475569; background: rgba(100, 116, 139, .12); border-color: rgba(100, 116, 139, .25); }
.pill-gold { color: #8A6510; background: rgba(215, 165, 43, .16); border-color: rgba(215, 165, 43, .35); }

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .55); border: 1px solid var(--border); box-shadow: var(--shadow-inset); flex-wrap: wrap; max-width: 100%; }
.tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: .86rem; color: var(--muted); transition: all var(--t-fast); white-space: nowrap; }
.tab:hover { color: var(--navy); }
.tab.active { background: #fff; color: var(--navy); box-shadow: 0 6px 16px rgba(21, 54, 95, .10); }

/* ---------- 08 FORMS ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: .8rem; font-weight: 700; color: var(--text-2); letter-spacing: .01em; }
.field .req { color: var(--red); }
.field .hint { font-size: .76rem; color: var(--muted); }
.field .err { font-size: .76rem; color: var(--red); font-weight: 600; min-height: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(21, 54, 95, .12); background: rgba(255, 255, 255, .85);
  box-shadow: inset 2px 2px 6px rgba(21, 54, 95, .05);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  min-width: 0;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235B6B82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(59, 130, 246, .55); box-shadow: 0 0 0 4px rgba(59, 130, 246, .14); background: #fff; }
.input[disabled], .select[disabled], .textarea[disabled] { background: rgba(226, 234, 246, .6); color: var(--muted); cursor: not-allowed; }
.input.invalid, .select.invalid, .textarea.invalid { border-color: rgba(220, 38, 38, .55); box-shadow: 0 0 0 4px rgba(220, 38, 38, .10); }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input-icon .input { padding-left: 40px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--indigo); flex: none; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.file-drop {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px;
  border: 1.5px dashed rgba(99, 102, 241, .35); background: rgba(99, 102, 241, .05);
}
.file-drop input[type=file] { font-size: .82rem; max-width: 100%; min-width: 0; }
.preview-thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--grad-soft); flex: none; border: 2px solid #fff; box-shadow: var(--shadow-soft); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px; margin-bottom: 18px; }
.toolbar .input-icon { flex: 1 1 240px; min-width: 200px; }
.toolbar .select { width: auto; min-width: 150px; flex: 0 1 190px; }
.toolbar .count { margin-left: auto; font-size: .82rem; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---------- 09 TABLES ---------- */
.table-wrap { width: 100%; overflow: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, .6); -webkit-overflow-scrolling: touch; }
.table-wrap.tall { max-height: 560px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; min-width: 640px; }
.data-table th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: rgba(241, 246, 255, .96); padding: 12px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background var(--t-fast); }
.data-table tbody tr:hover { background: rgba(59, 130, 246, .05); }
.data-table .t-strong { font-weight: 700; color: var(--text); }
.data-table .actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.data-table.wide { min-width: 1280px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: .84rem; color: var(--muted); }
.pager .pages { display: flex; gap: 6px; flex-wrap: wrap; }
.pager .pg { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-strong); font-weight: 700; color: var(--navy); }
.pager .pg.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.pager .pg[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 10 MODALS ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal-root.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 33, 65, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity var(--t-med); }
.modal-root.open .modal-backdrop { opacity: 1; }
.modal {
  position: relative; width: min(720px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(240, 246, 255, .90));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); box-shadow: 0 40px 90px rgba(11, 33, 65, .35);
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity var(--t-med), transform var(--t-med);
}
.modal-root.open .modal { opacity: 1; transform: none; }
.modal.sm { width: min(480px, 100%); }
.modal.lg { width: min(960px, 100%); }
.modal.xl { width: min(1140px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head .ttl { flex: 1; min-width: 0; }
.modal-head h3 { margin: 2px 0 0; overflow-wrap: anywhere; }
.modal-close { flex: none; }
.modal-body { padding: 20px 22px; overflow-y: auto; overflow-x: hidden; }
.modal-foot { padding: 14px 22px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-hero-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--r-md); margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 10px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
body.modal-open { overflow: hidden; }

/* ---------- 11 TOASTS / ALERTS / EMPTY / LOADING ---------- */
.toast-stack { position: fixed; top: 16px; right: 16px; z-index: 400; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(11, 33, 65, .18); animation: toastIn .35s var(--ease) both; border-left: 4px solid var(--blue);
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
.toast .t-body { flex: 1; min-width: 0; font-size: .88rem; }
.toast .t-body b { display: block; font-size: .9rem; }
.toast.out { animation: toastOut .3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; font-size: .88rem; border: 1px solid; }
.alert .ico { margin-top: 1px; }
.alert b { display: block; }
.alert-info { background: rgba(59, 130, 246, .08); border-color: rgba(59, 130, 246, .22); color: #1E3A8A; }
.alert-success { background: rgba(34, 197, 94, .09); border-color: rgba(34, 197, 94, .28); color: #14532D; }
.alert-error { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .26); color: #7F1D1D; }
.alert-warn { background: rgba(245, 158, 11, .10); border-color: rgba(245, 158, 11, .30); color: #78350F; }
.form-msg:empty { display: none; }
.form-msg { margin-top: 14px; }
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  padding: 40px 20px; border-radius: var(--r-lg); border: 1.5px dashed rgba(99, 102, 241, .25);
  background: linear-gradient(160deg, rgba(255, 255, 255, .6), rgba(238, 244, 255, .5)); color: var(--muted);
}
.empty .ico-tile { margin-bottom: 4px; }
.empty b { color: var(--text); font-size: 1rem; }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, rgba(226, 234, 246, .7) 25%, rgba(255, 255, 255, .9) 50%, rgba(226, 234, 246, .7) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-block { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; color: var(--muted); font-weight: 600; }
.loading-block .spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(99, 102, 241, .25); border-top-color: var(--indigo); animation: spin .8s linear infinite; }

/* ---------- 12 CHARTS ---------- */
.chart-card { display: flex; flex-direction: column; }
.chart-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 18px; align-items: center; }
.donut-wrap { position: relative; width: 100%; max-width: 190px; aspect-ratio: 1; margin: 0 auto; }
.donut-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 10px 18px rgba(21, 54, 95, .15)); }
.donut-wrap circle.seg { transition: stroke-width var(--t-fast), opacity var(--t-fast); cursor: pointer; }
.donut-wrap circle.seg:hover, .donut-wrap circle.seg.hl { stroke-width: 30; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.donut-center b { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1; }
.donut-center span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legend { display: grid; gap: 8px; min-width: 0; }
.legend-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: .84rem; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.legend-item:hover, .legend-item.hl { transform: translateX(3px); box-shadow: var(--shadow-soft); }
.legend-item .sw { width: 12px; height: 12px; border-radius: 4px; }
.legend-item .lb { font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend-item .vl { font-weight: 800; color: var(--navy); white-space: nowrap; }
.legend-item .vl small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.bar-chart { width: 100%; }
.bar-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.bar-chart .bar { transition: opacity var(--t-fast); }
.bar-chart .bar:hover { opacity: .8; }
.chart-legend-inline { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 8px; }
.chart-legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend-inline i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- 13 HOME ---------- */
.home-hero {
  position: relative; overflow: hidden; padding: 34px; border-radius: var(--r-xl);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center;
  background: linear-gradient(135deg, rgba(21, 54, 95, .96), rgba(30, 74, 128, .92) 45%, rgba(99, 102, 241, .88));
  color: #EAF1FF; box-shadow: 0 30px 70px rgba(21, 54, 95, .30); border: 1px solid rgba(255, 255, 255, .2);
}
.home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 85% 10%, rgba(147, 197, 253, .35), transparent 60%), radial-gradient(400px 260px at 0% 100%, rgba(215, 165, 43, .22), transparent 60%);
}
.home-hero .hero-lines { position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.home-hero .float-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); pointer-events: none; animation: ringSpin 30s linear infinite; }
.home-hero .fr-1 { width: 520px; height: 520px; right: -160px; top: -200px; border-style: dashed; }
.home-hero .fr-2 { width: 300px; height: 300px; right: 60px; bottom: -180px; animation-direction: reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.hero-main { position: relative; z-index: 1; display: flex; gap: 24px; align-items: center; min-width: 0; }
.hero-emblem { width: 150px; height: 150px; flex: none; perspective: 700px; }
.hero-emblem img { width: 100%; height: 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)) drop-shadow(0 0 22px rgba(96, 165, 250, .45)); transition: transform .5s var(--ease); animation: emblemFloat 6s ease-in-out infinite; }
@keyframes emblemFloat { 0%, 100% { transform: translateY(0) rotateY(-8deg); } 50% { transform: translateY(-8px) rotateY(8deg); } }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { color: #BFD6FF; }
.hero-copy h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: .02em; margin: 8px 0 8px; text-shadow: 0 6px 30px rgba(96, 165, 250, .45); }
.hero-copy .tagline { font-size: 1.04rem; color: #DCE8FF; font-weight: 500; margin-bottom: 18px; }
.hero-copy .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); box-shadow: none; backdrop-filter: blur(8px); }
.hero-copy .btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-stat { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px); transition: transform var(--t-med), background var(--t-med); min-width: 0; }
.hero-stat:hover { transform: translateY(-3px) rotateX(4deg); background: rgba(255, 255, 255, .18); }
.hero-stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stat span { font-size: .78rem; font-weight: 600; color: #BFD6FF; letter-spacing: .03em; }
.stat-card { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; padding: 18px; min-width: 0; }
.stat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--grad-soft); pointer-events: none; }
.stat-card .sc-body { min-width: 0; position: relative; z-index: 1; }
.stat-card .sc-label { font-size: .74rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.stat-card .sc-value { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--navy); line-height: 1.15; margin-top: 2px; overflow-wrap: anywhere; }
.stat-card .sc-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.home-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.quick-list { display: grid; gap: 10px; }
.quick-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast); text-align: left; width: 100%; }
.quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.quick-item .date-badge { width: 52px; flex: none; text-align: center; border-radius: 12px; padding: 6px 0; background: var(--grad-brand); color: #fff; line-height: 1.1; }
.quick-item .date-badge b { display: block; font-size: 1.15rem; font-family: var(--font-head); }
.quick-item .date-badge span { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quick-item .qi-body { min-width: 0; flex: 1; }
.quick-item .qi-body b { display: block; font-size: .92rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-item .qi-body span { font-size: .8rem; color: var(--muted); }

/* ---------- 14 GALLERY / LIVE FEED ---------- */
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #EF4444; flex: none; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.live-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(21, 54, 95, .92), rgba(59, 130, 246, .85)); color: #fff; margin-bottom: 14px; overflow: hidden; }
.live-bar .lb-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .74rem; letter-spacing: .14em; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .14); flex: none; }
.live-bar .lb-text { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gallery-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-900); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 18px 40px rgba(21, 54, 95, .22); }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 3.6s ease-out; }
.gallery-slide.active { opacity: 1; }
.gallery-slide.active img { transform: scale(1); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(11, 33, 65, .85)); color: #fff; font-weight: 700; font-size: .98rem; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; z-index: 2; transition: background var(--t-fast), transform var(--t-fast); }
.gallery-nav:hover { background: rgba(255, 255, 255, .32); transform: translateY(-50%) scale(1.06); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 5px 12px; border-radius: 99px; background: rgba(11, 33, 65, .55); backdrop-filter: blur(8px); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em; }
.gallery-dots { position: absolute; bottom: 14px; right: 16px; z-index: 2; display: flex; gap: 6px; }
.gallery-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .5); transition: width var(--t-fast), background var(--t-fast); }
.gallery-dots button.active { width: 22px; background: #fff; }
.feed-list { display: flex; flex-direction: column; gap: 10px; max-height: 470px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.feed-item { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); animation: fadeUp .5s var(--ease) both; }
.feed-item .ico-tile { width: 38px; height: 38px; border-radius: 12px; }
.feed-item .fi-body { min-width: 0; flex: 1; }
.feed-item .fi-body b { display: block; font-size: .9rem; color: var(--text); overflow-wrap: anywhere; }
.feed-item .fi-body p { margin: 2px 0 4px; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.feed-item .fi-meta { font-size: .72rem; color: var(--muted-2); font-weight: 700; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 15 MY FPAA ---------- */
.mf-signed { display: flex; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
.mf-signed .who { min-width: 0; flex: 1 1 200px; }
.mf-signed .who .eyebrow { font-size: .68rem; }
.mf-signed .who b { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.mf-signed .who span { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.mf-hero {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-xl);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(229, 238, 255, .7));
  border: 1px solid var(--border); box-shadow: var(--shadow-neu); backdrop-filter: blur(20px);
}
.mf-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 220px at 100% 0%, rgba(99, 102, 241, .16), transparent 60%), radial-gradient(360px 200px at 0% 100%, rgba(215, 165, 43, .12), transparent 60%); }
.mf-avatar { position: relative; width: 132px; height: 132px; flex: none; }
.mf-avatar .av { width: 100%; height: 100%; border-radius: 34px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 18px 40px rgba(21, 54, 95, .25); transform: perspective(600px) rotateY(-6deg); transition: transform .5s var(--ease); }
.mf-avatar:hover .av { transform: perspective(600px) rotateY(6deg); }
.mf-avatar .verified { position: absolute; right: -6px; bottom: -6px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22C55E, #16A34A); border: 3px solid #fff; box-shadow: 0 8px 18px rgba(22, 163, 74, .4); }
.mf-id { position: relative; min-width: 0; }
.mf-id h2 { margin: 6px 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); overflow-wrap: anywhere; }
.mf-id .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.mf-id .email { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.mf-status { position: relative; display: grid; gap: 10px; min-width: 190px; }
.mf-status .box { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-inset); }
.mf-status .box .lbl { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mf-status .box .val { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.mf-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mf-qcard { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); backdrop-filter: blur(14px); box-shadow: var(--shadow-soft); transition: transform var(--t-med), box-shadow var(--t-med); width: 100%; min-width: 0; }
.mf-qcard:hover { transform: translateY(-4px) rotateX(3deg); box-shadow: var(--shadow-lift); }
.mf-qcard .ico-tile { width: 42px; height: 42px; }
.mf-qcard b { display: block; font-size: .95rem; color: var(--text); }
.mf-qcard span { font-size: .8rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.mf-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mf-info { padding: 20px; min-width: 0; display: flex; flex-direction: column; }
.mf-info-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; min-width: 0; }
.mf-info-head .ttl { min-width: 0; }
.mf-info-head .eyebrow { font-size: .66rem; display: block; }
.mf-info-head h3 { margin: 2px 0 0; font-size: 1.02rem; overflow-wrap: anywhere; }
.info-rows { display: flex; flex-direction: column; }
.info-row { display: grid; grid-template-columns: minmax(110px, 44%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); align-items: start; }
.info-row:last-child { border-bottom: 0; }
.info-row .k { font-size: .82rem; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.info-row .v { font-size: .88rem; color: var(--text); font-weight: 700; text-align: right; overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.mf-panels { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mf-panels > * { min-width: 0; }
.member-mini-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 18px; color: #fff; aspect-ratio: 1.586; max-width: 420px; width: 100%;
  background: linear-gradient(135deg, #0B2141, #15365F 40%, #3B82F6 85%, #6366F1);
  box-shadow: 0 24px 50px rgba(21, 54, 95, .35); display: flex; flex-direction: column; justify-content: space-between; margin: 0 auto;
  transform: perspective(900px) rotateX(4deg); transition: transform .5s var(--ease);
}
.member-mini-card:hover { transform: perspective(900px) rotateX(0) rotateY(-4deg); }
.member-mini-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.member-mini-card .mc-top { display: flex; align-items: center; gap: 10px; position: relative; }
.member-mini-card .mc-top img { width: 40px; height: 40px; }
.member-mini-card .mc-top b { font-size: .8rem; letter-spacing: .08em; line-height: 1.2; }
.member-mini-card .mc-top span { font-size: .62rem; letter-spacing: .12em; color: #BFD6FF; display: block; }
.member-mini-card .mc-name { font-family: var(--font-head); font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 800; overflow-wrap: anywhere; position: relative; }
.member-mini-card .mc-no { font-family: ui-monospace, Menlo, monospace; letter-spacing: .12em; font-size: .86rem; color: #DCE8FF; }
.member-mini-card .mc-foot { display: flex; justify-content: space-between; gap: 10px; font-size: .7rem; color: #BFD6FF; position: relative; }
.member-mini-card .mc-foot b { display: block; color: #fff; font-size: .8rem; }
.member-mini-card .chipline { width: 44px; height: 32px; border-radius: 8px; background: var(--grad-gold); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* ---------- 16 ABOUT ---------- */
.about-hero { padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; }
.about-hero img { width: 200px; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(21, 54, 95, .3)); animation: emblemFloat 7s ease-in-out infinite; }
.about-hero .quote { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--indigo); margin: 10px 0 14px; }
.about-panel { padding: 26px; margin-top: 18px; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.pillar { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); transition: transform var(--t-med), box-shadow var(--t-med); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pillar h4 { margin: 12px 0 6px; }
.pillar p { font-size: .88rem; color: var(--muted); margin: 0; }
.value-list { display: grid; gap: 12px; margin-top: 14px; }
.value-item { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.value-item p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- 17 DIRECTORY ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.dir-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px 18px; cursor: pointer; border: 1px solid var(--border); position: relative; width: 100%; font: inherit; color: inherit; }
.dir-card .avatar { width: 78px; height: 78px; font-size: 1.5rem; margin-bottom: 10px; }
.dir-card b { font-size: 1rem; overflow-wrap: anywhere; }
.dir-card .dc-role { font-size: .84rem; color: var(--muted); margin: 2px 0 10px; overflow-wrap: anywhere; min-height: 1.3em; }
.dir-card .dc-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; max-width: 100%; }
.dir-card .dc-foot { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); font-weight: 600; }
.dir-card .dc-status { position: absolute; top: 12px; right: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--font-head); font-weight: 800; color: #fff; overflow: hidden; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(21, 54, 95, .18); font-size: .95rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: .78rem; border-width: 2px; }
.profile-modal-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.profile-modal-top .avatar { width: 92px; height: 92px; font-size: 1.8rem; }
.privacy-note { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 14px; }

/* ---------- 18 MEMBERSHIP ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier {
  position: relative; overflow: hidden; padding: 26px; display: flex; flex-direction: column; border-radius: var(--r-xl);
  transform-style: preserve-3d; transition: transform var(--t-med), box-shadow var(--t-med);
}
.tier:hover { transform: translateY(-6px) perspective(900px) rotateX(2deg); box-shadow: var(--shadow-lift); }
.tier.featured { background: linear-gradient(160deg, rgba(21, 54, 95, .96), rgba(59, 130, 246, .92)); color: #EAF1FF; border-color: rgba(255, 255, 255, .25); }
.tier.featured h3, .tier.featured .price { color: #fff; }
.tier.featured .tier-list li { color: #DCE8FF; }
.tier.gold-tier { background: linear-gradient(160deg, rgba(255, 250, 235, .92), rgba(247, 231, 184, .75)); border-color: rgba(215, 165, 43, .35); }
.tier .ribbon { position: absolute; top: 18px; right: -34px; transform: rotate(45deg); background: var(--grad-gold); color: #3A2A05; font-size: .66rem; font-weight: 800; letter-spacing: .12em; padding: 5px 40px; }
.tier .price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--navy); margin: 8px 0 0; line-height: 1.1; }
.tier .price small { font-size: .9rem; font-weight: 700; opacity: .75; }
.tier .per { font-size: .84rem; opacity: .8; margin-bottom: 14px; }
.tier-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; flex: 1; }
.tier-list li { display: flex; gap: 10px; font-size: .88rem; color: var(--text-2); align-items: flex-start; }
.tier-list li .ico { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.tier.featured .tier-list li .ico { color: #86EFAC; }
.verify-result { margin-top: 16px; }
.verify-card { padding: 20px; border-radius: 20px; background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(59, 130, 246, .08)); border: 1px solid rgba(34, 197, 94, .25); }
.verify-card.bad { background: rgba(239, 68, 68, .06); border-color: rgba(239, 68, 68, .25); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-weight: 800; margin-bottom: 10px; }
.step b { display: block; }
.step span { font-size: .84rem; color: var(--muted); }

/* ---------- 19 CAREER / EVENTS ---------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.job-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.job-card .jc-top { display: flex; gap: 12px; align-items: flex-start; }
.job-card .jc-logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-family: var(--font-head); }
.job-card .jc-top .t { min-width: 0; flex: 1; }
.job-card h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.job-card .company { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.job-card .jc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--text-2); font-weight: 600; }
.job-card .jc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-card .jc-meta .ico { width: 15px; height: 15px; color: var(--muted-2); }
.job-card .desc { font-size: .86rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .jc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.evt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.evt-card { overflow: hidden; display: flex; flex-direction: column; padding: 0; min-width: 0; }
.evt-card .ec-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.evt-card .ec-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.evt-card:hover .ec-img img { transform: scale(1.06); }
.evt-card .ec-date { position: absolute; left: 14px; top: 14px; width: 58px; text-align: center; border-radius: 14px; padding: 6px 0; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); line-height: 1.1; }
.evt-card .ec-date b { display: block; font-size: 1.35rem; font-family: var(--font-head); color: var(--navy); }
.evt-card .ec-date span { font-size: .66rem; font-weight: 800; letter-spacing: .1em; color: var(--indigo); text-transform: uppercase; }
.evt-card .ec-tag { position: absolute; right: 14px; top: 14px; }
.evt-card .ec-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.evt-card h3 { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.evt-card .ec-meta { display: grid; gap: 4px; font-size: .84rem; color: var(--text-2); font-weight: 600; }
.evt-card .ec-meta span { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.evt-card .ec-meta .ico { width: 15px; height: 15px; color: var(--indigo); }
.evt-card p { font-size: .86rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evt-card .ec-foot { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }

/* ---------- 20 DONATIONS / ACHIEVEMENTS ---------- */
.don-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.amount-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.amount-chip { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 8px 14px; font-weight: 800; color: var(--navy); transition: all var(--t-fast); }
.amount-chip:hover { border-color: var(--blue); }
.amount-chip.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(59, 130, 246, .3); }
.progress { height: 12px; border-radius: 99px; background: rgba(21, 54, 95, .08); overflow: hidden; box-shadow: var(--shadow-inset); }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--indigo), var(--gold)); transition: width 1.2s var(--ease); }
.donor-list { display: grid; gap: 8px; }
.donor-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.donor-row .grow b { display: block; font-size: .88rem; overflow-wrap: anywhere; }
.donor-row .grow span { font-size: .76rem; color: var(--muted); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ach-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; min-width: 0; cursor: pointer; border: 1px solid var(--border); text-align: left; font: inherit; color: inherit; width: 100%; }
.ach-card .ac-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ach-card .ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ach-card:hover .ac-img img { transform: scale(1.06); }
.ach-card .ac-medal { position: absolute; left: 14px; bottom: -22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: #3A2A05; border: 3px solid #fff; box-shadow: 0 10px 20px rgba(215, 165, 43, .4); }
.ach-card .ac-body { padding: 30px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ach-card h3 { margin: 0; font-size: 1.04rem; overflow-wrap: anywhere; }
.ach-card .who { font-size: .84rem; font-weight: 700; color: var(--indigo); overflow-wrap: anywhere; }
.ach-card p { font-size: .86rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ach-card .ac-foot { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- 21 MEMORIES / SCHEME / NOTICES ---------- */
.mem-masonry { columns: 4 240px; column-gap: 16px; }
.mem-item { break-inside: avoid; margin-bottom: 16px; border-radius: 18px; overflow: hidden; position: relative; cursor: pointer; background: #fff; box-shadow: var(--shadow-soft); border: 1px solid var(--border); display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; transition: transform var(--t-med), box-shadow var(--t-med); }
.mem-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.mem-item img { width: 100%; height: auto; display: block; }
.mem-item .mi-cap { padding: 12px 14px; }
.mem-item .mi-cap b { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.mem-item .mi-cap span { font-size: .76rem; color: var(--muted); }
.mem-item .mi-badge { position: absolute; top: 10px; left: 10px; }
.lightbox-img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 16px; background: var(--navy-900); }
.sch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-top: 18px; }
.sch-folder {
  position: relative; padding: 26px 22px 22px; border-radius: 6px 22px 22px 22px; cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, .92), rgba(232, 240, 255, .82)); border: 1px solid var(--border);
  box-shadow: var(--shadow-neu); transition: transform var(--t-med), box-shadow var(--t-med); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.sch-folder::before { content: ""; position: absolute; left: -1px; top: -18px; width: 46%; height: 20px; border-radius: 12px 14px 0 0; background: inherit; border: 1px solid var(--border); border-bottom: 0; clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%); }
.sch-folder:hover { transform: translateY(-6px) perspective(800px) rotateX(3deg); box-shadow: var(--shadow-lift); }
.sch-folder.f-rose .ico-tile { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.sch-folder.f-blue .ico-tile { background: var(--grad-brand); }
.sch-folder.f-gold .ico-tile { background: var(--grad-gold); }
.sch-folder h3 { margin: 4px 0 0; overflow-wrap: anywhere; }
.sch-folder p { color: var(--muted); font-size: .88rem; margin: 0; }
.sch-folder .sf-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.sch-detail-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 24px; }
.sch-detail-head .ico-tile { width: 64px; height: 64px; border-radius: 20px; }
.sch-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sch-list li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); font-size: .9rem; }
.sch-list li .ico { color: var(--indigo); margin-top: 2px; }
.ntc-list { display: grid; gap: 14px; }
.ntc-card { padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; border-left: 4px solid transparent; }
.ntc-card.important { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(247, 231, 184, .35), var(--surface) 40%); }
.ntc-card.urgent { border-left-color: var(--red); background: linear-gradient(90deg, rgba(254, 226, 226, .45), var(--surface) 40%); }
.ntc-card .nc-date { width: 62px; text-align: center; border-radius: 14px; padding: 8px 0; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); line-height: 1.1; }
.ntc-card .nc-date b { display: block; font-size: 1.3rem; font-family: var(--font-head); color: var(--navy); }
.ntc-card .nc-date span { font-size: .66rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.ntc-card .nc-body { min-width: 0; }
.ntc-card .nc-body h3 { margin: 6px 0 4px; font-size: 1.04rem; overflow-wrap: anywhere; }
.ntc-card .nc-body p { margin: 0; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.ntc-card .nc-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ntc-card .nc-attach { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--text-2); margin-top: 8px; overflow-wrap: anywhere; }
.ntc-card .nc-actions { display: flex; flex-direction: column; gap: 8px; }
.flag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.flag-important { background: rgba(215, 165, 43, .18); color: #7D5B0C; }
.flag-urgent { background: rgba(239, 68, 68, .12); color: #B91C1C; }
.flag-new { background: rgba(59, 130, 246, .12); color: #1D4ED8; }

/* ---------- 22 ADMIN ---------- */
.adm-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-nav { position: sticky; top: calc(var(--topbar-h) + 16px); padding: 12px; max-height: calc(100vh - var(--topbar-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
.adm-nav .grp { font-size: .64rem; font-weight: 800; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; padding: 12px 10px 4px; line-height: 1.3; }
.adm-nav .grp:first-child { padding-top: 4px; }
.adm-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; border-radius: 10px; font-size: .86rem; font-weight: 600; color: var(--text-2); text-align: left; transition: background var(--t-fast); }
.adm-link:hover { background: rgba(59, 130, 246, .08); }
.adm-link.active { background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(99, 102, 241, .14)); color: var(--navy); font-weight: 700; }
.adm-link .ico { width: 17px; height: 17px; color: var(--muted); }
.adm-link.active .ico { color: var(--indigo); }
.adm-link .badge { margin-left: auto; height: 18px; min-width: 18px; font-size: .64rem; }
.adm-panel { min-width: 0; }
.adm-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.role-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; }
.bubble .meta { font-size: .7rem; color: var(--muted-2); margin-top: 4px; font-weight: 600; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #3B82F6, #6366F1); color: #fff; border-color: transparent; }
.bubble.me .meta { color: rgba(255, 255, 255, .78); }
.gal-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gal-admin-item { position: relative; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.gal-admin-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gal-admin-item .gi-body { padding: 10px; }
.gal-admin-item .gi-body b { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-admin-item .gi-actions { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.gal-admin-item .gi-order { position: absolute; top: 8px; left: 8px; }
.gal-admin-item.dragging { opacity: .45; }
.gal-admin-item.drop-target { outline: 3px dashed var(--indigo); }
.upload-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.upload-previews figure { margin: 0; width: 110px; }
.upload-previews img { width: 110px; height: 80px; object-fit: cover; border-radius: 12px; border: 2px solid #fff; box-shadow: var(--shadow-soft); }
.upload-previews figcaption { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.audit-list { display: grid; gap: 8px; font-size: .84rem; }
.audit-list .al { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.audit-list .al .when { color: var(--muted-2); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.audit-list .al .what { min-width: 0; overflow-wrap: anywhere; }

/* ---------- 23 CHAT / NOTIFICATIONS ---------- */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; height: 58px; padding: 0 20px 0 16px; border-radius: 99px; border: 0;
  display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: .92rem;
  background: var(--grad-brand); box-shadow: 0 16px 36px rgba(59, 130, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform var(--t-med), opacity var(--t-med);
}
.chat-launcher:hover { transform: translateY(-3px) scale(1.02); }
.chat-launcher .badge { position: absolute; top: -4px; right: -4px; }
body.chat-open .chat-launcher { opacity: 0; visibility: hidden; transform: scale(.8); pointer-events: none; }
.chat-window {
  position: fixed; right: 22px; bottom: 22px; z-index: 95; width: min(860px, calc(100vw - 44px)); height: min(620px, calc(100vh - 44px)); height: min(620px, calc(100dvh - 44px));
  display: grid; grid-template-columns: 290px minmax(0, 1fr); overflow: hidden; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(236, 243, 255, .93)); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); box-shadow: 0 40px 90px rgba(11, 33, 65, .35);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.96); transform-origin: bottom right; transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med);
}
body.chat-open .chat-window { opacity: 1; visibility: visible; transform: none; }
.chat-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; min-height: 0; background: rgba(255, 255, 255, .45); }
.chat-side-head { padding: 16px 16px 10px; }
.chat-side-head .row-between h3 { margin: 0; font-size: 1.05rem; }
.chat-side .tabs { width: 100%; margin: 10px 0; }
.chat-side .tabs .tab { flex: 1; padding: 7px 10px; }
.chat-list { flex: 1; overflow-y: auto; padding: 0 8px 10px; min-height: 0; scrollbar-width: thin; }
.chat-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border-radius: 14px; border: 0; background: transparent; text-align: left; transition: background var(--t-fast); }
.chat-item:hover { background: rgba(59, 130, 246, .07); }
.chat-item.active { background: linear-gradient(135deg, rgba(59, 130, 246, .14), rgba(99, 102, 241, .12)); }
.chat-item .ci-body { min-width: 0; flex: 1; }
.chat-item .ci-top { display: flex; justify-content: space-between; gap: 6px; }
.chat-item .ci-top b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .ci-top span { font-size: .68rem; color: var(--muted-2); flex: none; font-weight: 600; }
.chat-item .ci-last { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.chat-item .ci-last span { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .ci-last .badge { height: 18px; min-width: 18px; font-size: .64rem; }
.presence { position: relative; flex: none; }
.presence::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #94A3B8; }
.presence.online::after { background: #22C55E; box-shadow: 0 0 0 2px rgba(34, 197, 94, .25); }
.presence.away::after { background: #F59E0B; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.chat-head .ch-who { min-width: 0; flex: 1; }
.chat-head .ch-who b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .ch-who span { font-size: .76rem; color: var(--muted); }
.chat-head .ch-who span.typing { color: var(--green); font-weight: 700; }
.chat-back { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 0;
  background-image: radial-gradient(rgba(99, 102, 241, .06) 1px, transparent 1px); background-size: 18px 18px; }
.msg { max-width: 76%; display: flex; flex-direction: column; animation: fadeUp .3s var(--ease) both; }
.msg .mb { padding: 9px 13px; border-radius: 16px 16px 16px 6px; background: #fff; border: 1px solid var(--line); font-size: .88rem; box-shadow: 0 3px 8px rgba(21, 54, 95, .05); overflow-wrap: anywhere; white-space: pre-wrap; }
.msg .mb .from { display: block; font-size: .72rem; font-weight: 800; color: var(--indigo); margin-bottom: 2px; }
.msg .mt { font-size: .66rem; color: var(--muted-2); margin: 3px 6px 0; font-weight: 600; display: flex; gap: 4px; align-items: center; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .mb { background: linear-gradient(135deg, #3B82F6, #6366F1); color: #fff; border-color: transparent; border-radius: 16px 16px 6px 16px; }
.msg .ticks { width: 16px; height: 16px; color: var(--muted-2); }
.msg .ticks.read { color: var(--blue); }
.day-sep { align-self: center; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 4px 12px; border-radius: 99px; margin: 8px 0; border: 1px solid var(--line); }
.chat-compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .75); }
.chat-compose .textarea { min-height: 44px; max-height: 120px; resize: none; border-radius: 14px; }
.chat-compose .btn { height: 44px; width: 48px; padding: 0; flex: none; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.notif-list { display: grid; gap: 8px; }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; transition: background var(--t-fast); }
.notif:hover { background: #fff; }
.notif.unread { background: linear-gradient(90deg, rgba(59, 130, 246, .10), rgba(255, 255, 255, .8)); border-color: rgba(59, 130, 246, .25); }
.notif .ico-tile { width: 38px; height: 38px; border-radius: 12px; }
.notif .n-body { min-width: 0; flex: 1; }
.notif .n-body b { display: block; font-size: .88rem; overflow-wrap: anywhere; }
.notif .n-body p { margin: 2px 0; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.notif .n-meta { font-size: .7rem; color: var(--muted-2); font-weight: 700; display: flex; gap: 8px; flex-wrap: wrap; }
.notif .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; margin-top: 6px; }

/* ---------- 24 LOGIN / FOOTER / GATE ---------- */
.gate { padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gate img { width: 110px; filter: drop-shadow(0 16px 26px rgba(21, 54, 95, .3)); }
.gate p { max-width: 560px; color: var(--muted); }
.site-footer { margin-top: auto; padding: 34px 30px 26px; background: linear-gradient(135deg, #0B2141, #15365F 55%, #1E4A80); color: #BFD6FF; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 90% 0, rgba(99, 102, 241, .35), transparent 60%); pointer-events: none; }
.site-footer .ft-inner { position: relative; max-width: 1420px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.site-footer .ft-brand { display: flex; gap: 16px; align-items: center; min-width: 0; }
.site-footer .ft-brand img { width: 64px; height: 64px; flex: none; }
.site-footer .ft-brand b { display: block; color: #fff; font-family: var(--font-head); font-size: .98rem; letter-spacing: .06em; }
.site-footer .ft-brand .fc { color: var(--gold); font-weight: 800; letter-spacing: .14em; font-size: .78rem; }
.site-footer .ft-brand i { display: block; font-size: .86rem; color: #DCE8FF; margin-top: 4px; }
.site-footer .ft-links { display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-footer .ft-links button { background: none; border: 0; color: #DCE8FF; font-weight: 600; font-size: .88rem; padding: 4px 0; }
.site-footer .ft-links button:hover { color: #fff; text-decoration: underline; }
.site-footer .ft-copy { position: relative; max-width: 1420px; margin: 18px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .78rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Login page */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.login-brand { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 22px; color: #EAF1FF;
  background: linear-gradient(145deg, #0B2141, #15365F 45%, #3B82F6 90%, #6366F1); }
.login-brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 90% 10%, rgba(147, 197, 253, .35), transparent 60%), radial-gradient(400px 300px at 0 100%, rgba(215, 165, 43, .22), transparent 60%); pointer-events: none; }
.login-brand > * { position: relative; }
.login-brand img { width: 190px; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .4)) drop-shadow(0 0 30px rgba(96, 165, 250, .5)); animation: emblemFloat 6s ease-in-out infinite; }
.login-brand h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.login-brand .fn { font-weight: 800; letter-spacing: .14em; font-size: .8rem; color: var(--gold); }
.login-brand p { color: #DCE8FF; font-size: 1.02rem; max-width: 520px; }
.login-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.login-feats div { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .86rem; font-weight: 600; backdrop-filter: blur(10px); }
.login-side { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(470px, 100%); padding: 30px; }
.login-card .tabs { width: 100%; margin: 18px 0; }
.login-card .tabs .tab { flex: 1; padding: 8px 6px; font-size: .8rem; }
.demo-accounts { margin-top: 18px; padding: 14px; border-radius: 16px; background: rgba(215, 165, 43, .10); border: 1px dashed rgba(215, 165, 43, .45); font-size: .8rem; }
.demo-accounts .row { gap: 6px; margin-top: 8px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-wrap .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; display: grid; place-items: center; }
.pw-wrap .pw-toggle:hover { background: rgba(59, 130, 246, .08); }

/* Print frame (hidden) */
.print-frame { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; visibility: hidden; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1440px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .mf-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-body { grid-template-columns: 1fr; }
  .donut-wrap { max-width: 180px; }
}
/* ≤1180: stack the large two-panel layouts (My FPAA Profile | Membership) */
@media (max-width: 1180px) {
  .mf-panels { grid-template-columns: minmax(0, 1fr); }
  .home-split { grid-template-columns: minmax(0, 1fr); }
  .split-2 { grid-template-columns: minmax(0, 1fr); }
  .don-layout { grid-template-columns: minmax(0, 1fr); }
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .mf-hero { grid-template-columns: auto minmax(0, 1fr); }
  .mf-status { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .tier-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .sch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-layout { grid-template-columns: minmax(0, 1fr); }
  .adm-nav { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px; flex-wrap: nowrap; }
  .adm-nav .grp { display: none; }
  .adm-link { width: auto; white-space: nowrap; flex: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ≤1024: off-canvas sidebar */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-102%); box-shadow: 20px 0 60px rgba(11, 33, 65, .25); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sb-overlay { opacity: 1; visibility: visible; }
  .main { margin-left: 0; }
  .icon-btn.tb-burger { display: inline-grid; }
  .view { padding: 22px 20px 90px; }
  .topbar { padding: 0 20px; }
  .login-page { grid-template-columns: minmax(0, 1fr); }
  .login-brand { padding: 34px 24px; align-items: center; text-align: center; }
  .login-brand img { width: 120px; }
  .login-feats { display: none; }
  .about-hero { grid-template-columns: minmax(0, 1fr); }
  .about-hero img { width: 150px; order: -1; }
}
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-info-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer .ft-inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer .ft-links { justify-content: flex-start; }
  .chat-window { grid-template-columns: minmax(0, 1fr); }
  .chat-window .chat-side { display: flex; }
  .chat-window .chat-main { display: none; }
  .chat-window.show-conv .chat-side { display: none; }
  .chat-window.show-conv .chat-main { display: flex; }
  .chat-back { display: inline-grid; }
  .sch-grid { grid-template-columns: minmax(0, 1fr); }
  .ntc-card { grid-template-columns: auto minmax(0, 1fr); }
  .ntc-card .nc-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
/* ≤720: mobile single column */
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .view { padding: 18px 14px 96px; }
  .topbar { padding: 0 14px; gap: 10px; height: 64px; }
  .tb-title .crumb { display: none; }
  .tb-title .name { font-size: 1.05rem; }
  .user-chip .who { display: none; }
  .user-chip { padding: 4px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .adm-stat-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .home-hero { padding: 22px; }
  .hero-main { flex-direction: column; align-items: flex-start; }
  .hero-emblem { width: 104px; height: 104px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card { flex-direction: column; gap: 10px; padding: 14px; }
  .stat-card .sc-value { font-size: 1.4rem; }
  .mf-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; text-align: left; }
  .mf-avatar { width: 104px; height: 104px; }
  .mf-status { grid-template-columns: minmax(0, 1fr); }
  .info-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .info-row .v { text-align: left; }
  .toolbar { padding: 12px; }
  .toolbar .select, .toolbar .input-icon { flex: 1 1 100%; min-width: 0; width: 100%; }
  .toolbar .count { margin-left: 0; }
  .toolbar .btn { flex: 1 1 auto; }
  .card { padding: 18px; }
  .modal-root { padding: 10px; align-items: end; }
  .modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 22px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .modal-foot .btn { flex: 1 1 auto; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .chat-window { right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .chat-launcher { right: 14px; bottom: 14px; height: 54px; padding: 0 16px; }
  .chat-launcher .lbl { display: none; }
  .gallery-nav { width: 38px; height: 38px; }
  .job-grid, .evt-grid, .ach-grid, .dir-grid { grid-template-columns: minmax(0, 1fr); }
  .mem-masonry { columns: 2 150px; column-gap: 10px; }
  .mem-item { margin-bottom: 10px; }
  .page-head .btn-group { width: 100%; }
  .page-head .btn-group .btn { flex: 1 1 auto; }
  .sch-detail-head { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .site-footer { padding: 26px 16px 90px; }
  .login-card { padding: 22px; }
    .tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .toast-stack { top: 10px; right: 10px; width: calc(100vw - 20px); }
}
@media (max-width: 400px) {
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .btn { padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  .sidebar, .topbar, .chat-launcher, .chat-window, .site-footer, .toast-stack { display: none !important; }
  .main { margin: 0; }
}

/* ---------- 25 CAMPUS PHOTO BACKGROUNDS ---------- */
:root {
  --campus: url("assets/campus.jpg");
  --campus-shade: linear-gradient(100deg, rgba(11, 33, 65, .94) 0%, rgba(21, 54, 95, .86) 38%, rgba(30, 74, 128, .62) 68%, rgba(99, 102, 241, .55) 100%);
}
@media (max-width: 900px) { :root { --campus: url("assets/campus-sm.jpg"); } }

/* Home hero — photo behind the brand gradient */
.home-hero {
  background: var(--campus-shade), var(--campus) center 58% / cover no-repeat, #15365F;
}
.home-hero .hero-lines { opacity: .12; }
.home-hero .hero-stat { background: rgba(11, 33, 65, .38); }
.home-hero .photo-credit {
  position: absolute; right: 18px; bottom: 12px; z-index: 1; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  color: rgba(255, 255, 255, .78); text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; pointer-events: none;
}

/* Login page brand panel */
.login-brand {
  background: linear-gradient(160deg, rgba(11, 33, 65, .94) 0%, rgba(21, 54, 95, .86) 45%, rgba(30, 74, 128, .72) 100%), var(--campus) center / cover no-repeat, #15365F;
}

/* About hero — light glass over the photo, text side kept bright */
.glass.about-hero {
  background: linear-gradient(90deg, rgba(247, 250, 255, .97) 0%, rgba(247, 250, 255, .93) 58%, rgba(247, 250, 255, .45) 80%, rgba(247, 250, 255, .12) 100%), var(--campus) center 60% / cover no-repeat;
}
.glass.about-hero img { background: #fff; border-radius: 22%; box-shadow: 0 20px 40px rgba(11, 33, 65, .35); }
@media (max-width: 1024px) {
  .glass.about-hero { background: linear-gradient(180deg, rgba(247, 250, 255, .55) 0%, rgba(247, 250, 255, .94) 42%, rgba(247, 250, 255, .97) 100%), var(--campus) center top / cover no-repeat; }
}

/* Signed-out My FPAA gate */
.glass.gate { background: linear-gradient(180deg, rgba(247, 250, 255, .80), rgba(247, 250, 255, .96) 55%), var(--campus) center 40% / cover no-repeat; }

/* Footer — faint campus silhouette under the navy */
.site-footer {
  background: linear-gradient(135deg, rgba(11, 33, 65, .96), rgba(21, 54, 95, .93) 55%, rgba(30, 74, 128, .90)), var(--campus) center 55% / cover no-repeat, #0B2141;
}

/* ---------- 26 VERSION BADGE (FPAA Connect 2.0) ---------- */
.ver-badge { display: inline-block; vertical-align: middle; padding: .12em .42em; margin-left: .12em; border-radius: .35em;
  font-size: .5em; font-weight: 800; letter-spacing: .02em; line-height: 1.15; color: #3A2A05; background: var(--grad-gold);
  box-shadow: 0 .15em .5em rgba(215, 165, 43, .35); text-shadow: none; position: relative; top: -.12em; }
.sb-brand .t1 { white-space: nowrap; }
.sb-brand .t1 .ver-badge { font-size: .62em; }

/* ---------- 27 HOME TOP: compact live gallery + live update, yellow CONNECT ---------- */
.home-split.home-top { width: min(920px, 82%); margin: 0 auto 22px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.home-top > .card { padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.home-top .live-bar { margin-bottom: 10px; padding: 8px 12px; }
.home-top .gallery-frame { aspect-ratio: 16 / 8; }
.home-top .card-head { margin-bottom: 10px; }
.home-top .card-head .sub { display: none; }
.home-top .feed-list { max-height: none; flex: 1 1 0; min-height: 0; overflow-y: auto; }
.home-top .feed-item { padding: 10px; }
.home-top > .card + .card { contain: size; }
.hero-copy h1 .hero-connect {
  color: #FFD43B; background: linear-gradient(180deg, #FFE46B 0%, #FFD43B 45%, #F5B400 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 4px 18px rgba(255, 212, 59, .45));
}
@media (max-width: 1180px) { .home-split.home-top { width: min(720px, 100%); grid-template-columns: minmax(0, 1fr); } .home-top .feed-list { max-height: 320px; flex: none; } .home-top > .card + .card { contain: none; } }

/* ---------- 28 HOME TOP: committee + contact panels in the side gaps ---------- */
.home-top-wrap { display: grid; gap: 16px; margin-bottom: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "top top" "cm ct"; }
.home-top-wrap > .home-split.home-top { grid-area: top; width: 100%; margin: 0; }
.home-top-wrap > .cm-panel { grid-area: cm; }
.home-top-wrap > .cm-contact { grid-area: ct; }
.cm-list { max-height: 330px; }
.cm-panel, .cm-contact { padding: 16px; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cm-panel .card-head, .cm-contact .card-head { margin-bottom: 10px; }
.cm-list { display: grid; gap: 8px; overflow-y: auto; min-height: 0; padding-right: 2px; scrollbar-width: thin; }
.cm-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); min-width: 0; }
.cm-item .avatar { flex: none; }
.cm-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-body b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.cm-pos { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #8A6510; }
.cm-links { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.cm-links a { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.cm-links a .ico { width: 13px; height: 13px; }
.ct-list { display: grid; gap: 8px; margin-bottom: 12px; min-height: 0; overflow-y: auto; }
.ct-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
a.ct-row:hover { text-decoration: none; box-shadow: var(--shadow-soft); }
.ct-row .ico-tile { width: 32px; height: 32px; border-radius: 10px; }
.ct-row > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.ct-row small { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ct-row b { font-size: .84rem; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
@media (min-width: 1680px) {
  .home-top-wrap { grid-template-columns: minmax(240px, .82fr) minmax(0, 2.6fr) minmax(240px, .82fr); grid-template-areas: "cm top ct"; }
  .home-top-wrap > .cm-panel, .home-top-wrap > .cm-contact { contain: size; }
  .cm-list { max-height: none; }
}
@media (max-width: 720px) { .home-top-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "cm" "ct"; } .cm-list { max-height: 360px; } }

/* ---------- 29 COMPACT committee + contact sections ---------- */
.cm-panel, .cm-contact { padding: 14px 16px; }
.cm-panel .card-head, .cm-contact .card-head { margin-bottom: 8px; }
.cm-panel .card-head h3, .cm-contact .card-head h3 { font-size: 1rem; }
.cm-item { padding: 7px 10px; gap: 9px; align-items: center; }
.cm-item .avatar.sm { width: 30px; height: 30px; font-size: .7rem; }
.cm-body { gap: 0; }
.cm-links { margin-top: 1px; }
.ct-row { padding: 6px 10px; align-items: center; }
.ct-row .ico-tile { width: 28px; height: 28px; border-radius: 9px; }
.ct-list { gap: 6px; margin-bottom: 10px; }
.cm-contact .btn-block { min-height: 34px; }
/* Stacked (below 1680px): members in columns, short scroll; contact in a 2×2 grid */
.cm-list { max-height: 170px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.cm-contact .ct-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cm-contact .ct-wide { grid-column: 1 / -1; }
.ct-wide b { font-size: .8rem; }
@media (min-width: 1680px) {
  .home-top .gallery-frame { aspect-ratio: 16 / 7; }
  .cm-list { max-height: none; grid-template-columns: minmax(0, 1fr); }
  .cm-contact .ct-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) { .cm-list { max-height: 230px; grid-template-columns: minmax(0, 1fr); } .cm-contact .ct-list { grid-template-columns: minmax(0, 1fr); } }
.cm-links { flex-wrap: nowrap; align-items: center; gap: 8px; }
.cm-links a.cm-mail { width: 22px; height: 22px; border-radius: 7px; justify-content: center; background: rgba(59, 130, 246, .10); flex: none; }

/* ===================== 30. Memories — Google Drive albums ===================== */
.drive-albums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 14px; }
.drive-album { background: rgba(255, 255, 255, .72); border: 1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-soft); min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.drive-album .da-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.drive-album .da-head h4 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.drive-album .da-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #fff; height: 340px; }
.drive-album .da-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 720px) { .drive-album .da-frame { height: 280px; } .drive-album .da-head .btn { width: 100%; justify-content: center; } }

/* ===================== 31. Scheme portraits ===================== */
.sch-portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #fff; border: 4px solid #fff; box-shadow: 0 0 0 3px rgba(99, 102, 241, .28), 0 12px 26px rgba(21, 54, 95, .22); transition: transform .6s var(--ease); }
.sch-folder.f-rose .sch-portrait { box-shadow: 0 0 0 3px rgba(236, 72, 153, .35), 0 12px 26px rgba(21, 54, 95, .22); }
.sch-folder.f-gold .sch-portrait { box-shadow: 0 0 0 3px rgba(212, 160, 23, .45), 0 12px 26px rgba(21, 54, 95, .22); }
.sch-folder:hover .sch-portrait { transform: perspective(400px) rotateY(-10deg) scale(1.04); }
.sch-portrait.lg { width: 124px; height: 124px; }
.sch-portrait.sm { width: 48px; height: 48px; border-width: 2px; }
@media (max-width: 720px) { .sch-portrait { width: 80px; height: 80px; } .sch-portrait.lg { width: 92px; height: 92px; } }

/* ===================== 32. Scheme rule book PDF ===================== */
.sch-doc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sch-doc-bar .grow b { display: block; overflow-wrap: anywhere; }
.sch-doc-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #525659; height: min(78vh, 900px); }
.sch-doc-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.sch-doc-note { margin: 10px 0 0; }
@media (max-width: 720px) {
  .sch-doc-frame { display: none; }
  .sch-doc-bar .btn-group { width: 100%; }
  .sch-doc-bar .btn-group .btn { flex: 1; justify-content: center; }
  .sch-doc-note { display: none; }
}
