:root {
  --forest: #0028a2;
  --forest-2: #082577;
  --forest-3: #e7ecfa;
  --gold: #970206;
  --gold-pale: #fbeaec;
  --ink: #101a33;
  --muted: #6b7280;
  --line: #e8ece7;
  --paper: #ffffff;
  --canvas: #eef1fb;
  --red: #970206;
  --green: #0028a2;
  --shadow: 0 12px 32px rgba(29, 53, 42, .07);
}
* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); font-family: "Aptos", "Segoe UI", system-ui, sans-serif; font-size: 14px; background-color: var(--canvas); background-image: linear-gradient(rgba(238,241,251,.86),rgba(238,241,251,.86)),url("assets/matex-logo-background.jpeg"); background-repeat: no-repeat; background-position: center 80px; background-size: auto, min(880px,94vw) auto; background-attachment: fixed; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(151,2,6,.35); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; width: 252px; padding: 27px 17px 15px; background: var(--forest); color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; padding: 0 11px 35px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px 12px 12px 3px; background: var(--gold); color: #fff; font: 800 23px "Aptos", "Segoe UI", system-ui, sans-serif; }
.brand b { display: block; font: 800 16px "Aptos", "Segoe UI", system-ui, sans-serif; letter-spacing: .08em; }
.brand small { display: block; margin-top: 1px; color: #c2d0c9; letter-spacing: .25em; font-size: 9px; }
.workspace-label { margin: 0 11px 11px; color: #92aaa0; font-weight: 700; letter-spacing: .12em; font-size: 9px; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 9px; padding: 11px 12px; background: transparent; color: #cfdbd5; text-align: left; font-size: 13px; transition: .15s ease; }
.admin-nav-item[hidden] { display: none; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: #153b87; color: #fff; box-shadow: inset 3px 0 var(--gold); }
.nav-icon { width: 18px; text-align: center; font-size: 17px; color: #b6c8bf; }
.nav-count { margin-left: auto; min-width: 20px; padding: 2px 5px; border-radius: 99px; background: rgba(214,167,68,.2); color: #f0cd7f; text-align: center; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.help-card { padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.045); }
.help-icon { color: var(--gold); font-size: 19px; }
.help-card b { display: block; margin-top: 6px; font-size: 12px; }
.help-card p { margin: 6px 0 12px; color: #aec0b8; font-size: 11px; line-height: 1.55; }
.text-button { border: 0; padding: 0; background: transparent; color: #f1cb72; font-size: 11px; font-weight: 700; }
.text-button span { margin-left: 4px; }
.sidebar-user { margin-top: 15px; padding: 12px 5px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 9px; }
.user-label { min-width: 0; flex: 1; }
.user-label b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.user-label small { display: block; margin-top: 3px; color: #a4b8ae; font-size: 10px; }
.icon-button { border: 0; border-radius: 8px; background: transparent; color: inherit; min-width: 32px; min-height: 32px; }
.icon-button:hover { background: rgba(0,0,0,.06); }
.sidebar .icon-button:hover { background: rgba(255,255,255,.09); }
.avatar { display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; background: #e6c97e; color: #4e482f; font-weight: 700; }
.avatar-sm { width: 33px; height: 33px; font-size: 11px; }
.main-area { min-height: 100vh; margin-left: 252px; }
.topbar { height: 69px; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: space-between; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #9aa49e; font-size: 12px; }
.breadcrumbs b { color: #46554e; font-weight: 600; }
.crumb-sep { color: #c5cec7; }
.top-actions { display: flex; align-items: center; gap: 17px; }
.install-button { white-space: nowrap; }
.install-button[hidden], .install-prompt-card[hidden] { display: none !important; }
.install-prompt-card { margin: 14px 0 18px; padding: 14px 17px; border: 1px solid var(--gold); border-radius: 11px; background: var(--gold-pale); display: flex; align-items: center; gap: 12px; }
.install-prompt-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--gold); color: var(--forest); font-size: 20px; font-weight: 700; }
.install-prompt-copy { flex: 1; }
.install-prompt-copy b { color: var(--forest); font-size: 11px; }
.install-prompt-copy p { margin: 4px 0 0; color: #52675b; font-size: 10px; }
.install-prompt-card .btn { background: var(--forest); color: #fff; }
.zelle-qr-block { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.zelle-qr-block img { display: block; width: min(170px, 100%); height: auto; border: 1px solid #edf0ec; border-radius: 8px; background: #fff; }
.notification-button { position: relative; width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #e6ece6; border-radius: 9px; background: #fff; color: #426653; }
.notification-bell { font-size: 16px; line-height: 1; }
.notification-count { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid #fff; border-radius: 99px; background: #c45c4d; color: #fff; font-size: 8px; font-weight: 700; display: grid; place-items: center; }
.notification-count:empty { display: none; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; color: #768b80; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.demo-pill i { width: 6px; height: 6px; border-radius: 50%; background: #79aa7d; }
.mode-switch { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); color: #829087; font-size: 11px; }
.mode-switch select { padding: 7px 28px 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--forest); background-color: #fff; font-size: 11px; font-weight: 700; }
.top-avatar { background: var(--forest); color: white; }
.mobile-menu { display: none; }
.content-wrap { width: min(1120px, 100%); margin: 0 auto; padding: 24px 40px 18px; }
.demo-banner { position: relative; margin: 0 0 26px; padding: 12px 42px 12px 14px; border: 1px solid #f0e4c4; border-radius: 9px; background: #fcf8ed; color: #72674d; display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.55; }
.demo-banner b { color: #5c553f; }
.banner-mark { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #eed99d; color: #736037; font: 700 11px "Aptos", "Segoe UI", system-ui, sans-serif; }
.banner-close { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; color: #9b906e; font-size: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.eyebrow { color: #84958c; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 7px 0 7px; color: #1a2a22; font: 700 clamp(24px,3vw,32px)/1.2 "Aptos", "Segoe UI", system-ui, sans-serif; letter-spacing: -.04em; }
.page-subtitle { margin: 0; color: #7c8982; font-size: 12px; line-height: 1.6; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 11px; font-weight: 700; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 4px 9px rgba(23,62,52,.13); }
.btn-primary:hover { background: #082577; }
.btn-outline { border-color: #dfe6e0; background: white; color: var(--forest); }
.btn-outline:hover { background: #f8faf7; border-color: #bbcec2; }
.btn-soft { background: var(--forest-3); color: var(--forest); }
.btn-danger { border-color: #f0d8d4; background: #fff8f7; color: var(--red); }
.btn-small { min-height: 31px; padding: 0 10px; font-size: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.welcome-panel { position: relative; overflow: hidden; min-height: 185px; padding: 28px 32px; border-radius: 16px; background: linear-gradient(112deg, #082577 0%, #0028a2 72%, #153b87 100%); color: #fff; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 13px 24px rgba(0,40,162,.15); }
.welcome-panel:after { content: ""; position: absolute; right: 9%; top: -85px; width: 245px; height: 245px; border: 1px solid rgba(151,2,6,.35); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.018), 0 0 0 52px rgba(255,255,255,.018); }
.welcome-panel .eyebrow { color: #dce5ff; }
.welcome-panel h1 { color: #fff; margin-top: 8px; }
.welcome-panel p { margin: 0; max-width: 470px; color: #e0e7ff; font-size: 12px; line-height: 1.6; }
.welcome-panel .btn { position: relative; z-index: 1; background: var(--gold); color: #fff; }
.welcome-mark { position: absolute; right: 42px; bottom: -36px; color: rgba(255,255,255,.13); font: 800 188px/.9 "Aptos", "Segoe UI", system-ui, sans-serif; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 17px 0 24px; }
.stat-card { min-height: 99px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 11px; background: white; display: flex; align-items: flex-start; justify-content: space-between; }
.stat-label { color: #829088; font-size: 10px; }
.stat-value { margin: 9px 0 0; color: #233a2f; font: 700 21px "Aptos", "Segoe UI", system-ui, sans-serif; letter-spacing: -.03em; }
.stat-hint { margin-top: 4px; color: #a1aaa5; font-size: 9px; }
.stat-icon { width: 34px; height: 34px; border-radius: 9px; background: #e7ecfa; color: #0028a2; display: grid; place-items: center; font-size: 16px; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; }
.card { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(25,45,34,.018); }
.card-pad { padding: 18px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.card-header h2 { margin: 0; font: 700 14px "Aptos", "Segoe UI", system-ui, sans-serif; color: #263c31; }
.card-header p { margin: 4px 0 0; color: #95a098; font-size: 10px; }
.link-button { border: 0; padding: 0; background: transparent; color: #49765d; font-size: 10px; font-weight: 700; }
.membership-summary { padding: 14px; border: 1px solid #e6eee7; border-radius: 10px; background: linear-gradient(120deg,#f7faf6,#fff); }
.membership-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.membership-summary h3 { margin: 0; font: 700 13px "Aptos", "Segoe UI", system-ui, sans-serif; }
.status-badge { padding: 5px 8px; border-radius: 99px; background: #e7f3e9; color: #3e7656; font-size: 9px; font-weight: 700; }
.status-badge.pending { background: #fbf0da; color: #9a7533; }
.membership-summary p { margin: 8px 0 13px; color: #87938c; font-size: 10px; }
.summary-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid #ebefeb; }
.summary-bottom span { color: #8c9791; font-size: 10px; }
.summary-bottom b { color: #2f5742; font-size: 13px; }
.announcement-row { padding: 12px 0; border-bottom: 1px solid #eff2ee; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 11px; }
.announcement-row:last-child { border-bottom: 0; }
.admin-announcement-row .announcement-info small { max-width: 760px; }
.date-chip { width: 39px; height: 42px; border-radius: 8px; background: #f6f3e8; color: #77643a; display: grid; place-items: center; align-content: center; }
.date-chip b { font: 700 14px "Aptos", "Segoe UI", system-ui, sans-serif; line-height: 1; }
.date-chip small { margin-top: 3px; font-size: 8px; letter-spacing: .06em; }
.announcement-info b { display: block; color: #244b39; font-size: 14px; font-weight: 700; line-height: 1.35; }
.announcement-info small { display: block; margin-top: 5px; color: #53665b; font-size: 12px; font-weight: 600; line-height: 1.5; }
.announcement-tag { padding: 4px 6px; border-radius: 5px; background: #f1f5f1; color: #73857a; font-size: 8px; }
.section-gap { margin-top: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.plan-card { position: relative; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.plan-card.selected { border-color: #89a992; box-shadow: 0 0 0 3px #edf4ef; }
.plan-card h3 { margin: 0 0 7px; color: #365344; font: 700 14px "Aptos", "Segoe UI", system-ui, sans-serif; }
.plan-price { margin: 0; font: 800 28px "Aptos", "Segoe UI", system-ui, sans-serif; letter-spacing: -.05em; color: #193f34; }
.plan-price small { font: 500 10px "Aptos", "Segoe UI", system-ui, sans-serif; color: #89958e; letter-spacing: 0; }
.plan-note { margin: 9px 0 15px; color: #8b9790; font-size: 10px; line-height: 1.55; }
.plan-card .btn { width: 100%; }
.check-list { display: grid; gap: 9px; margin: 14px 0; padding: 0; list-style: none; color: #77857c; font-size: 10px; }
.check-list li:before { content: "✓"; color: #498466; font-weight: 700; margin-right: 8px; }
.payment-method-card { padding: 15px; border: 1px solid var(--line); border-radius: 10px; }
.payment-method-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pay-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #eef5ef; color: #397259; font-weight: 800; font-size: 13px; }
.pay-icon.paypal { background: #edf1fb; color: #2865a6; }
.payment-method-top b { font-size: 11px; }
.payment-method-card p { margin: 0; color: #87938c; font-size: 10px; line-height: 1.55; }
.payment-note { margin-top: 13px; padding: 11px 12px; border-radius: 8px; background: #fbf8ed; color: #756b50; font-size: 10px; line-height: 1.55; }
.notice-bar { display: flex; gap: 10px; padding: 13px 14px; border: 1px solid #efe6cb; border-radius: 9px; background: #fdf9ef; color: #756a4e; font-size: 10px; line-height: 1.55; }
.notice-bar strong { color: #595139; }
.empty-state { padding: 34px 15px; text-align: center; color: #8c9991; }
.empty-icon { width: 45px; height: 45px; margin: 0 auto 10px; border-radius: 15px; background: #eef4ef; display: grid; place-items: center; color: #42745b; font-size: 20px; }
.empty-state b { display: block; margin-bottom: 5px; color: #506258; font-size: 12px; }
.empty-state p { margin: 0; font-size: 10px; line-height: 1.55; }
.profile-head { display: flex; align-items: center; gap: 16px; padding: 18px; }
.avatar-lg { width: 64px; height: 64px; font-size: 19px; background: var(--forest); color: #fff; }
.profile-head h2 { margin: 0; font: 700 17px "Aptos", "Segoe UI", system-ui, sans-serif; }
.profile-head p { margin: 5px 0 0; color: #8b9990; font-size: 10px; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
.public-donation-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.public-donation-options .payment-method-card { min-width: 0; }
.public-donation-options .btn { margin-top: 12px; }
.public-donation-options .zelle-qr-block { align-items: flex-start; }
.public-donation-options .zelle-qr-block img { width: min(120px,100%); }
.couple-fields { grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #5d7065; font-size: 10px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 38px; padding: 10px 11px; border: 1px solid #e1e8e2; border-radius: 7px; background: white; color: #32463a; font-size: 11px; }
.field textarea { min-height: 80px; resize: vertical; }
.field-hint { color: #9aa49e; font-size: 9px; }
.profile-explanation { margin: 8px 0 0; padding: 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 12px; background: #f8faf7; color: #87948d; font-size: 9px; letter-spacing: .04em; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid #eff2ee; color: #53645a; font-size: 10px; vertical-align: middle; }
td .member-name { color: #30473a; font-weight: 700; }
td small { display: block; margin-top: 3px; color: #9aa59e; font-size: 9px; }
.table-actions { display: flex; gap: 6px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin: 18px 0; }
.admin-stat { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.admin-stat span { color: #86948c; font-size: 9px; }
.admin-stat b { display: block; margin-top: 8px; color: #2d4d3a; font: 700 21px "Aptos", "Segoe UI", system-ui, sans-serif; }
.admin-tabs { display: flex; gap: 18px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.admin-tab { padding: 13px 1px 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #87948d; font-size: 10px; }
.admin-tab.active { border-color: var(--gold); color: #345443; font-weight: 700; }
.whatsapp-card { padding: 21px; border-radius: 12px; background: #eaf5ed; display: flex; align-items: center; gap: 16px; }
.whatsapp-icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; background: #2ba36a; color: white; font-size: 24px; }
.whatsapp-card h2 { margin: 0 0 6px; color: #244f39; font: 700 15px "Aptos", "Segoe UI", system-ui, sans-serif; }
.whatsapp-card p { margin: 0; color: #648170; font-size: 10px; line-height: 1.6; }
.whatsapp-card .btn { margin-left: auto; flex: 0 0 auto; }
.event-card { padding: 18px; border-radius: 11px; border: 1px solid var(--line); background: #fff; }
.event-date { display: inline-flex; padding: 5px 8px; border-radius: 6px; background: #f6efd9; color: #7a6533; font-size: 9px; font-weight: 700; }
.event-card h3 { margin: 12px 0 6px; color: #355043; font: 700 13px "Aptos", "Segoe UI", system-ui, sans-serif; }
.event-card p { margin: 0; color: #89968e; font-size: 10px; line-height: 1.55; }
.footer-note { margin-top: 14px; color: #9aa59e; font-size: 9px; }
.app-footer { display: flex; justify-content: space-between; gap: 10px; padding: 27px 2px 6px; color: #a0aaa4; font-size: 9px; }
.toast-region { position: fixed; z-index: 30; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.toast { max-width: 340px; padding: 12px 15px; border-radius: 9px; background: #203f34; color: #fff; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.modal { width: min(490px,calc(100vw - 28px)); padding: 0; border: 0; border-radius: 14px; background: white; color: var(--ink); box-shadow: 0 24px 70px rgba(11,31,23,.25); }
.modal::backdrop { background: rgba(16,34,27,.48); backdrop-filter: blur(2px); }
.modal-inner { padding: 22px; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font: 700 17px "Aptos", "Segoe UI", system-ui, sans-serif; color: #244634; }
.modal-head p { margin: 5px 0 0; color: #8d9992; font-size: 10px; line-height: 1.5; }
.modal-close { border: 0; background: #f3f6f2; border-radius: 7px; width: 28px; height: 28px; color: #68786e; font-size: 17px; }
.modal-body { color: #637368; font-size: 11px; line-height: 1.65; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.instructions-list { margin: 0; padding-left: 17px; display: grid; gap: 8px; }
.field-error { min-height: 12px; color: var(--red); font-size: 9px; }
.pledge-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.amount-choice { position: relative; }
.amount-choice input { position: absolute; opacity: 0; }
.amount-choice label { display: block; padding: 8px 13px; border: 1px solid #e2e9e3; border-radius: 7px; color: #5c7163; font-size: 10px; cursor: pointer; }
.amount-choice input:checked + label { border-color: #87a791; background: #edf4ee; color: #2d5a40; font-weight: 700; }
@media (max-width: 1050px) {
 .content-wrap { padding: 22px 25px; }
 .topbar { padding: 0 25px; }
 .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 780px) {
 .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(13,33,24,.18); }
 .sidebar.open { transform: translateX(0); }
 .main-area { margin-left: 0; }
 .topbar { height: 61px; padding: 0 16px; }
 .mobile-menu { display: inline-grid; place-items: center; margin-right: 9px; }
 .breadcrumbs { margin-right: auto; }
 .top-actions { gap: 9px; }
 .mode-switch { padding-left: 9px; }
 .demo-pill { display: none; }
 .content-wrap { padding: 18px 16px; }
 .dashboard-grid { grid-template-columns: 1fr; }
 .welcome-panel { padding: 23px 21px; }
 .welcome-panel .btn { align-self: flex-end; }
 .welcome-mark { right: 18px; }
 .page-head { align-items: flex-start; flex-direction: column; }
 .page-head > .btn { align-self: flex-start; }
}
@media (max-width: 560px) {
 .topbar { padding: 0 11px; }
 .breadcrumbs { font-size: 10px; gap: 7px; }
 .breadcrumbs span:first-child, .crumb-sep { display: none; }
 #install-button { min-height: 29px; padding: 0 8px; font-size: 9px; }
 .install-prompt-card { align-items: flex-start; flex-wrap: wrap; }
 .install-prompt-card .btn { margin-left: 47px; }
 .mode-switch span { display: none; }
 .mode-switch { border: 0; padding: 0; }
 .mode-switch select { padding: 7px 21px 7px 7px; font-size: 10px; }
 .top-avatar { width: 29px; height: 29px; }
 .welcome-panel { min-height: 205px; display: block; }
 .welcome-panel .btn { margin-top: 17px; }
 .stats-grid { grid-template-columns: 1fr 1fr; }
 .stat-card:last-child { grid-column: 1 / -1; }
 .two-col, .three-col, .profile-fields, .public-donation-options { grid-template-columns: 1fr; }
 .couple-fields { grid-template-columns: 1fr; }
 .field.full { grid-column: auto; }
 .admin-stat-grid { grid-template-columns: 1fr 1fr; }
 .whatsapp-card { align-items: flex-start; flex-wrap: wrap; }
 .whatsapp-card .btn { margin-left: 68px; }
 .app-footer { flex-direction: column; }
}
[hidden] { display: none !important; }
.auth-shell { min-height: 100vh; padding: 26px; display: grid; place-items: center; background-color: var(--canvas); background-image: radial-gradient(circle at 15% 20%,rgba(231,236,250,.55),transparent 35%),linear-gradient(rgba(238,241,251,.86),rgba(238,241,251,.86)),url("assets/matex-logo-background.jpeg"); background-repeat: no-repeat; background-position: center,center,center; background-size: auto,auto,min(880px,94vw) auto; background-attachment: fixed; }
.auth-card { width: min(470px,100%); padding: 32px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
.auth-brand { padding: 0 0 27px; color: var(--forest); }
.auth-brand small { color: #70877b; }
.auth-card form { display: grid; gap: 14px; margin-top: 22px; }
.auth-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 21px; padding: 4px; border-radius: 9px; background: #f1f5f1; }
.auth-method { min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: #6e8075; font-weight: 650; font-size: 11px; }
.auth-method.active { background: #fff; color: var(--forest); box-shadow: 0 1px 4px rgba(20,45,31,.1); }
.auth-card .form-actions { padding: 3px 0 0; }
.auth-card .form-actions .btn { width: 100%; }
.auth-switch { margin: 17px 0; color: var(--muted); font-size: 12px; }
.auth-switch .link-button { color: var(--forest); font-size: 12px; }
.auth-donate { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 4px; padding: 13px 14px; border: 1px solid #e7ecfa; border-radius: 10px; background: #f7f8ff; }
.auth-donate b { color: var(--forest); font-size: 11px; }
.auth-donate p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.auth-donate .btn { flex: 0 0 auto; }
.donation-qr { width: fit-content; display: grid; justify-items: center; gap: 10px; margin: 22px auto 0; padding: 14px; border-radius: 12px; background: #f3f5f2; color: var(--forest); }
.donation-qr canvas { max-width: 100%; height: auto; }
.profile-fields textarea { min-height: 105px; padding: 10px 12px; border: 1px solid #dfe6df; border-radius: 7px; resize: vertical; }
