/* =========================================================
   Ifelodun Community Portal — stylesheet
   Deep green + gold, serif headings, clean sans-serif body.
   ========================================================= */

:root {
  --green-950: #05231a;
  --green-900: #072f22;
  --green-800: #0b3d2c;
  --green-700: #11533c;
  --green-600: #186b4e;
  --green-100: #dcefe4;
  --green-50:  #eff7f2;
  --gold:      #c9a227;
  --gold-600:  #a9861a;
  --gold-300:  #e4c766;
  --gold-100:  #f8f0d6;
  --ink:       #1b2420;
  --ink-2:     #37433d;
  --muted:     #66736c;
  --line:      #e2e7e3;
  --line-2:    #eef1ee;
  --bg:        #f5f6f2;
  --white:     #ffffff;

  --red:       #b42318;  --red-bg:   #fdeceb;  --red-line:   #f6c9c5;
  --amber:     #a15c07;  --amber-bg: #fdf3e1;  --amber-line: #f4d9a6;
  --ok:        #067647;  --ok-bg:    #e5f5ec;  --ok-line:    #b5e2c7;
  --grey:      #4b5563;  --grey-bg:  #eef0f2;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 30, .06);
  --shadow:    0 1px 3px rgba(16, 40, 30, .06), 0 6px 20px rgba(16, 40, 30, .06);
  --shadow-lg: 0 20px 50px rgba(5, 35, 26, .18);
  --sidebar-w: 268px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.text-red { color: var(--red); } .text-green { color: var(--ok); } .text-amber { color: var(--amber); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0 !important; } .mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mb-2 { margin-bottom: 1.5rem; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.2em;
  font: 600 1rem/1.2 var(--sans);
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  background: var(--green-700); color: #fff; cursor: pointer;
  text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--green-800); color: #fff; }
.btn:focus-visible, .input:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-300); color: var(--green-950); }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--line); }
.btn-outline:hover { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #8f1c13; }
.btn-danger-outline { background: #fff; color: var(--red); border-color: var(--red-line); }
.btn-danger-outline:hover { background: var(--red-bg); color: var(--red); }
.btn-success { background: var(--ok); }
.btn-success:hover { background: #05603a; }
.btn-sm { min-height: 38px; padding: .4em .9em; font-size: .92rem; }
.btn-xs { min-height: 32px; padding: .25em .7em; font-size: .85rem; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 1.08rem; padding: .7em 1.6em; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.icon-btn .icon { width: 24px; height: 24px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green-700); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.15rem; }
.field label, .label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink-2); }
.field .req { color: var(--red); }
.field .opt { color: var(--muted); font-weight: 400; font-size: .88rem; }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password],
.field input[type=number], .field input[type=date], .field input[type=month], .field input[type=datetime-local], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid #cfd8d3; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(24,107,78,.14);
}
.field input[type=file] {
  width: 100%; padding: .6rem; font: inherit; font-size: .95rem;
  border: 1.5px dashed #b9c6bf; border-radius: var(--radius-sm); background: var(--green-50); cursor: pointer;
}
.field input[type=file]::file-selector-button {
  margin-right: .8rem; padding: .45rem .9rem; border: 0; border-radius: 6px;
  background: var(--green-700); color: #fff; font: 600 .9rem var(--sans); cursor: pointer;
}
.help { display: block; margin-top: .3rem; color: var(--muted); font-size: .88rem; }
.field-error { display: block; margin-top: .3rem; color: var(--red); font-size: .9rem; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-section { padding-top: .5rem; margin-top: .5rem; }
.form-section + .form-section { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: .4rem; }
.form-section-title { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.12rem; color: var(--green-800); margin: 0 0 1rem; }
.form-section-title .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); font: 700 .9rem var(--sans); }
.choice-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; flex: 1 1 140px; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px; padding: .6rem 1rem;
  border: 1.5px solid #cfd8d3; border-radius: var(--radius-sm); background: #fff; font-weight: 600; color: var(--ink-2);
  transition: all .15s;
}
.choice input:checked + span { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); box-shadow: inset 0 0 0 1px var(--green-600); }
.choice input:focus-visible + span { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-weight: 500; }
.checkbox input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--green-700); flex: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.password-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--green-700); font: 600 .88rem var(--sans); padding: .5rem; cursor: pointer; }
.inline-form { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; flex: 1 1 200px; }
.filters .btn { flex: none; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.1rem; border: 1px solid; font-weight: 500; }
.alert .icon { width: 22px; height: 22px; margin-top: 1px; }
.alert-success { background: var(--ok-bg); border-color: var(--ok-line); color: #05603a; }
.alert-error   { background: var(--red-bg); border-color: var(--red-line); color: #912018; }
.alert-info    { background: #eef5fb; border-color: #c8dcef; color: #1d4f7a; }
.alert-warning { background: var(--amber-bg); border-color: var(--amber-line); color: #7a4504; }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .22em .7em; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; border: 1px solid transparent; }
.badge-red   { background: var(--red-bg);   color: var(--red);   border-color: var(--red-line); }
.badge-amber { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.badge-green { background: var(--ok-bg);    color: var(--ok);    border-color: var(--ok-line); }
.badge-grey  { background: var(--grey-bg);  color: var(--grey); }
.badge-gold  { background: var(--gold-100); color: var(--gold-600); border-color: #ecdca5; }
.badge-navy  { background: #e8eef7; color: #23406e; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.15rem; }
.card-head p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.card-body { padding: 1.3rem; }
.card-foot { padding: .9rem 1.3rem; border-top: 1px solid var(--line-2); background: #fbfcfa; border-radius: 0 0 var(--radius) var(--radius); }
.card-flush .card-body { padding: 0; }
.grid { display: grid; gap: 1.2rem; }
.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-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.grid > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 1.2rem; }

/* Stat cards */
.stat { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm); }
.stat-label { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.stat-label .icon { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--green-50); color: var(--green-700); }
.stat-value { margin-top: .55rem; font-family: var(--serif); font-size: 1.85rem; font-weight: 700; color: var(--green-900); line-height: 1.1; word-break: break-word; }
.stat-sub { margin-top: .3rem; font-size: .88rem; color: var(--muted); }
.stat.is-red .stat-label .icon { background: var(--red-bg); color: var(--red); } .stat.is-red .stat-value { color: var(--red); }
.stat.is-amber .stat-label .icon { background: var(--amber-bg); color: var(--amber); }
.stat.is-gold .stat-label .icon { background: var(--gold-100); color: var(--gold-600); }
.stat.is-ok .stat-label .icon { background: var(--ok-bg); color: var(--ok); } .stat.is-ok .stat-value { color: var(--ok); }
.stat-feature { background: linear-gradient(135deg, var(--green-800), var(--green-950)); border-color: var(--green-900); color: #fff; }
.stat-feature::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(201,162,39,.16); }
.stat-feature .stat-label { color: var(--gold-300); }
.stat-feature .stat-label .icon { background: rgba(255,255,255,.08); color: var(--gold-300); }
.stat-feature .stat-value { color: #fff; }
.stat-feature .stat-sub { color: rgba(255,255,255,.72); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #f8faf8; padding: .75rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfcfa; }
.table .amount { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td.right, .table th.right { text-align: right; }
.table tfoot td { font-weight: 700; background: #f8faf8; border-top: 2px solid var(--line); }
.table .row-paid td { background: #fbfefc; }
.cell-title { font-weight: 600; color: var(--ink); }
.cell-sub { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; }
.person { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.person > span:last-child { min-width: 0; }

/* ---------- Avatar ---------- */
.avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--gold-100); color: var(--gold-600); font: 700 .95rem var(--sans); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar-sm { width: 36px; height: 36px; font-size: .82rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 1.8rem; }
.avatar-xl { width: 128px; height: 128px; font-size: 2.3rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.1rem; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 11px; width: fit-content; max-width: 100%; }
.tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; }
.tabs a:hover { background: var(--green-50); color: var(--green-800); }
.tabs a.active { background: var(--green-700); color: #fff; }
.tabs .count { padding: 0 .45rem; border-radius: 99px; font-size: .78rem; background: rgba(0,0,0,.08); }
.tabs a.active .count { background: rgba(255,255,255,.2); }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: .85rem; padding: .85rem 1.3rem; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .meta { color: var(--muted); font-size: .86rem; }
.list-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; background: var(--green-50); color: var(--green-700); }
.list-icon.red { background: var(--red-bg); color: var(--red); }
.list-icon.amber { background: var(--amber-bg); color: var(--amber); }
.list-icon.ok { background: var(--ok-bg); color: var(--ok); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.2rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 2.4rem 1.2rem; color: var(--muted); }
.empty .icon { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--green-50); color: var(--green-600); margin-bottom: .6rem; }
.empty h3 { font-size: 1.1rem; margin-bottom: .25rem; color: var(--ink-2); }
.empty p { margin: 0; }

/* ---------- Pager ---------- */
.pager { display: flex; gap: .3rem; flex-wrap: wrap; padding: 1rem 1.3rem; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.pager a.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ---------- Bank card ---------- */
.bank-card { position: relative; overflow: hidden; border-radius: 16px; padding: 1.4rem 1.5rem; color: #fff; background: radial-gradient(circle at 100% 0, rgba(201,162,39,.35), transparent 45%), linear-gradient(140deg, var(--green-700), var(--green-950)); box-shadow: var(--shadow); }
.bank-card .bank-label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--gold-300); font-weight: 700; }
.bank-card .bank-name { font-family: var(--serif); font-size: 1.25rem; margin: .2rem 0 1rem; }
.bank-card .acct { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font: 700 1.75rem/1.2 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.bank-card .acct-name { margin-top: .6rem; color: rgba(255,255,255,.85); font-weight: 600; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font: 600 .82rem var(--sans); letter-spacing: 0; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.18); }

/* Payable item picker */
.pick-list { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.pick { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); cursor: pointer; background: #fff; transition: background .12s; }
.pick:last-child { border-bottom: 0; }
.pick:hover { background: var(--green-50); }
.pick input { width: 22px; height: 22px; accent-color: var(--green-700); flex: none; }
.pick .grow { flex: 1; min-width: 0; }
.pick .amount { font-weight: 700; white-space: nowrap; }
.pick:has(input:checked) { background: var(--green-50); }
.pick-total { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; background: var(--gold-100); font-weight: 700; color: var(--green-900); }
.pick-total strong { font-family: var(--serif); font-size: 1.3rem; }

/* Progress */
.progress { height: 9px; border-radius: 99px; background: var(--line-2); overflow: hidden; min-width: 80px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-600), var(--ok)); }

/* Bar chart (income vs expenses) */
.bars { display: flex; align-items: flex-end; gap: .9rem; height: 220px; padding: 1rem 0 0; overflow-x: auto; }
.bar-group { flex: 1 0 46px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bar { width: 42%; max-width: 26px; border-radius: 5px 5px 0 0; min-height: 2px; }
.bar.in { background: var(--green-600); } .bar.out { background: var(--gold); }
.bar-label { margin-top: .4rem; font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.legend { display: flex; gap: 1.2rem; font-size: .88rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

/* Receipt viewer */
.receipt-view { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f2f4f2; display: grid; place-items: center; min-height: 260px; overflow: hidden; }
.receipt-view img { max-height: 640px; width: auto; margin: auto; }
.receipt-view iframe { width: 100%; height: 640px; border: 0; background: #fff; }
.thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-grid figcaption { font-size: .85rem; color: var(--muted); margin-top: .3rem; font-weight: 600; }

/* Dialog */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(5, 35, 26, .55); }
dialog .card { margin: 0; border: 0; }

/* =========================================================
   PUBLIC SITE
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(7, 47, 34, .97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201,162,39,.25); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none !important; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none; background: linear-gradient(145deg, var(--gold-300), var(--gold-600)); color: var(--green-950); font: 700 1.35rem var(--serif); box-shadow: 0 0 0 3px rgba(201,162,39,.25); }
.brand-mark.has-logo { object-fit: cover; background: #fff; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--gold-300); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; gap: .5rem; flex: none; }

.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(ellipse at 85% 10%, rgba(201,162,39,.28), transparent 50%),
  radial-gradient(ellipse at 0% 100%, rgba(24,107,78,.6), transparent 55%),
  linear-gradient(160deg, var(--green-800), var(--green-950)); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 60 30 30 60 0 30Z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; padding: 4.5rem 20px 5.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 99px; border: 1px solid rgba(201,162,39,.45); color: var(--gold-300); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 1rem 0 .9rem; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 1.8rem; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 1.6rem; backdrop-filter: blur(4px); }
.hero-card .label { color: var(--gold-300); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; }
.hero-card .big { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; margin: .2rem 0 1.1rem; }
.hero-card .rows { display: grid; gap: .65rem; }
.hero-card .rows div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .65rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.hero-card .rows strong { color: #fff; }
.hero-card .note { margin: 1rem 0 0; font-size: .85rem; color: rgba(255,255,255,.6); }

.section { padding: 4.5rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.kicker { display: inline-block; color: var(--gold-600); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.about-grid h2 { margin-top: .4rem; }
.text-gold { color: var(--gold-600); }
.lead-dark { font-size: 1.08rem; color: var(--ink-2); }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: .4rem 0 .6rem; }
.section-head p { color: var(--muted); margin: 0; }
.divider-gold { width: 60px; height: 3px; background: var(--gold); border-radius: 3px; margin: 1rem auto 0; }

.stats-strip { position: relative; z-index: 2; margin-top: -3rem; }
.stats-strip .grid { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1.4rem; gap: 0; }
.strip-item { padding: .4rem 1.2rem; border-right: 1px solid var(--line-2); }
.strip-item:last-child { border-right: 0; }
.strip-item .k { color: var(--muted); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.strip-item .v { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--green-900); }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.about-grid h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.feature-list { display: grid; gap: 1rem; }
.feature { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); }
.feature h4 { margin: 0 0 .2rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.news { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); }
.news .date { color: var(--gold-600); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.news h3 { margin: .4rem 0 .6rem; font-size: 1.2rem; }
.news p { color: var(--ink-2); margin: 0; }

.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-950)); color: #fff; border-radius: 18px; padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }

.site-footer { background: var(--green-950); color: rgba(255,255,255,.75); padding: 2.5rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-contact span { display: inline-flex; gap: .45rem; align-items: center; }
.footer-contact .icon { color: var(--gold-300); }
.footer-bottom { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: rgba(255,255,255,.5); }

/* =========================================================
   AUTH PAGES
   ========================================================= */
.auth-page { min-height: 100vh; background:
  radial-gradient(ellipse at 100% 0, rgba(201,162,39,.25), transparent 45%),
  linear-gradient(165deg, var(--green-800), var(--green-950) 70%); }
.auth-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 2.2rem 16px 2rem; }
.auth-wrap.wide { max-width: 860px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: .7rem; color: #fff; font: 700 1.35rem var(--serif); margin-bottom: 1.5rem; text-decoration: none !important; }
.auth-brand:hover { color: #fff; }
.auth-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 2rem; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: .3rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: -.3rem 0 1.2rem; font-size: .95rem; }
.auth-alt { text-align: center; margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); }
.auth-back { text-align: center; margin-top: 1.4rem; }
.auth-back a { color: rgba(255,255,255,.8); display: inline-flex; gap: .4rem; align-items: center; }
.auth-back a:hover { color: #fff; }
/* ---------- Neumorphic ("soft UI") login — body.auth-page.neu ---------- */
.neu {
  --neu-bg: #e4eae6;
  --neu-light: #ffffff;
  --neu-dark: #b4c1b9;
  --neu-out: 10px 10px 22px var(--neu-dark), -10px -10px 22px var(--neu-light);
  --neu-out-sm: 5px 5px 10px var(--neu-dark), -5px -5px 10px var(--neu-light);
  --neu-in: inset 5px 5px 10px var(--neu-dark), inset -5px -5px 10px var(--neu-light);
  --neu-out-md: 7px 7px 16px var(--neu-dark), -7px -7px 16px var(--neu-light);
  --neu-in-sm: inset 3px 3px 6px var(--neu-dark), inset -3px -3px 6px var(--neu-light);
  --muted: #56635b;          /* darker so it stays readable on the grey surface */
  --line: #cdd7d1;
  --line-2: #d5ddd8;
  --neu-gold: #7d620e;       /* gold dark enough for small text on the grey surface */
  --neu-text: #3d4a43;
  --neu-placeholder: #7f8c85;
  --neu-hover: rgba(255,255,255,.4);
  --neu-bar: rgba(228,234,230,.94);
  background: var(--neu-bg);
}
.neu .auth-wrap { max-width: 460px; padding-top: 2.6rem; }
.neu .auth-wrap.wide { max-width: 860px; }
.neu .auth-brand, .neu .auth-brand:hover { color: var(--green-900); }
.neu .auth-brand .brand-mark { box-shadow: var(--neu-out-sm); border-radius: 50%; }
.neu .auth-card {
  position: relative; background: var(--neu-bg); border-radius: 36px;
  padding: 3.6rem 2.2rem 2rem; margin-top: 2.6rem; box-shadow: var(--neu-out);
  text-align: center; animation: neu-rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.neu-badge {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--neu-bg); color: var(--green-700);
  box-shadow: var(--neu-out-sm), inset 0 0 0 6px var(--neu-bg);
  animation: neu-pop .5s .25s cubic-bezier(.3,1.6,.5,1) both;
}
.neu-badge .icon { width: 32px; height: 32px; }
.neu .auth-card h1 { font-size: 1.85rem; color: var(--green-900); }
.neu .auth-card .sub { color: var(--muted); }
.neu .auth-card form, .neu .auth-card .alert, .neu .auth-card .dl { text-align: left; }
.neu .field label { color: var(--neu-text); padding-left: .4rem; }
.neu .field input[type=text], .neu .field input[type=password], .neu .field input[type=email],
.neu .field input[type=tel], .neu .field input[type=number], .neu .field input[type=file],
.neu .field input[type=date], .neu .field input[type=month], .neu .field input[type=datetime-local],
.neu .field select, .neu .field textarea, .neu .input {
  min-height: 52px; padding: .7rem 1.1rem; background: var(--neu-bg);
  border: 0; border-radius: 16px; box-shadow: var(--neu-in); color: var(--ink);
}
.neu .field input[type=file] { padding: .55rem; }
.neu .field input[type=file]::file-selector-button { border-radius: 12px; background: var(--green-700); box-shadow: var(--neu-out-sm); }
.neu .field input::placeholder, .neu .field textarea::placeholder { color: var(--neu-placeholder); }
.neu .field input:focus, .neu .field select:focus, .neu .field textarea:focus, .neu .input:focus {
  box-shadow: var(--neu-in), 0 0 0 3px var(--green-600);
}
.neu .has-error input { box-shadow: var(--neu-in), 0 0 0 2px var(--red); }
.neu .help { color: var(--muted); }
/* register: steps, sections, choices, checkbox, success */
.neu .steps { gap: .8rem; }
.neu .step { background: var(--neu-bg); border-radius: 16px; box-shadow: var(--neu-out-sm); color: var(--muted); }
.neu .step b { background: var(--neu-bg); box-shadow: var(--neu-in); }
.neu .step.active { background: var(--neu-bg); color: var(--green-800); box-shadow: var(--neu-in); }
.neu .step.active b, .neu .step.done b { box-shadow: none; }
.neu .step.done { background: var(--neu-bg); box-shadow: var(--neu-in); }
.neu .form-section + .form-section { border-top: 0; padding-top: 1.2rem; }
.neu .form-section-title .num { background: var(--neu-bg); color: var(--gold-600); box-shadow: var(--neu-out-sm); }
.neu .choice span { background: var(--neu-bg); border: 0; border-radius: 16px; box-shadow: var(--neu-out-sm); }
.neu .choice input:checked + span { background: var(--neu-bg); color: var(--green-800); box-shadow: var(--neu-in), inset 0 0 0 2px var(--green-600); }
.neu .checkbox input { accent-color: var(--green-700); }
.neu .code-input { letter-spacing: .25em; }
.neu .success-mark { width: 96px; height: 96px; background: var(--neu-bg); box-shadow: var(--neu-out); animation: neu-pop-in .5s .2s cubic-bezier(.3,1.6,.5,1) both; }
.neu .success-mark img { width: 64px; height: 64px; border-radius: 50%; }
.neu .code-text { background: var(--neu-bg); border: 0; box-shadow: var(--neu-in); }
.neu .password-wrap input { padding-right: 78px; }
.neu .password-wrap button { border-radius: 10px; right: 8px; }
.neu .password-wrap button:hover { box-shadow: var(--neu-out-sm); }
.neu .auth-links { justify-content: flex-end; }
.neu .auth-card .btn {
  border: 0; border-radius: 18px; color: #fff;
  background: linear-gradient(145deg, var(--green-600), var(--green-800));
  box-shadow: 8px 8px 16px var(--neu-dark), -8px -8px 16px var(--neu-light);
  transition: box-shadow .2s, transform .15s, filter .2s;
}
.neu .auth-card .btn:hover { filter: brightness(1.08); color: #fff; }
.neu .auth-card .btn:active, .neu .auth-card .btn[disabled] {
  transform: scale(.98); opacity: 1;
  box-shadow: inset 4px 4px 10px rgba(0,0,0,.35), inset -3px -3px 8px rgba(255,255,255,.12);
}
.neu .auth-alt { border-top: 0; margin-top: 1.6rem; padding-top: 0; color: var(--muted); }
.neu .auth-back a { color: var(--green-800); padding: .55rem 1.1rem; border-radius: 99px; box-shadow: var(--neu-out-sm); }
.neu .auth-back a:hover { color: var(--green-900); text-decoration: none; box-shadow: var(--neu-in); }
.neu .alert { border-radius: 14px; }
@keyframes neu-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes neu-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes neu-pop-in { from { opacity: 0; transform: scale(.4); } }
@media (max-width: 680px) { .neu .auth-card { padding: 3.4rem 1.3rem 1.6rem; border-radius: 28px; } }
@media (prefers-reduced-motion: reduce) { .neu .auth-card, .neu-badge, .neu .success-mark { animation: none; } }

.steps { display: flex; gap: .5rem; margin-bottom: 1.6rem; }
.step { flex: 1; display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-radius: 10px; background: var(--line-2); color: var(--muted); font-weight: 600; font-size: .92rem; }
.step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--muted); font-size: .85rem; flex: none; }
.step.active { background: var(--green-50); color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--green-600); }
.step.active b { background: var(--green-700); color: #fff; }
.step.done { background: var(--ok-bg); color: var(--ok); }
.step.done b { background: var(--ok); color: #fff; }
.code-input { text-align: center; font: 700 1.5rem/1 var(--sans) !important; letter-spacing: .2em; text-transform: uppercase; min-height: 60px !important; }
.success-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.success-mark .icon { width: 40px; height: 40px; }
.reveal { display: none; }
.reveal.show { display: block; }

/* =========================================================
   APP SHELL (member dashboard + admin)
   ========================================================= */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--green-900), var(--green-950));
  color: rgba(255,255,255,.82); border-right: 1px solid rgba(201,162,39,.18);
}
.area-admin .sidebar { background: linear-gradient(180deg, #0a2a20, #041a13); }
.sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: 1.15rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none !important; }
.sidebar-brand:hover { color: #fff; }
.sidebar-brand .brand-mark { width: 42px; height: 42px; font-size: 1.2rem; }
.sidebar-brand strong { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
.sidebar-brand small { color: var(--gold-300); font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .8rem .7rem; }
.nav-label { padding: 1rem .8rem .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); font-weight: 700; }
.sidebar a { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; margin-bottom: 2px; border-radius: 9px; color: rgba(255,255,255,.8); font-weight: 600; font-size: .98rem; text-decoration: none !important; transition: background .12s, color .12s; }
.sidebar a .icon { width: 20px; height: 20px; opacity: .85; }
.sidebar a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar a.active { background: rgba(201,162,39,.16); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar a.active .icon { color: var(--gold-300); opacity: 1; }
.nav-count { margin-left: auto; min-width: 24px; padding: 0 .45rem; border-radius: 99px; background: var(--gold); color: var(--green-950); font-size: .78rem; font-weight: 800; text-align: center; line-height: 22px; }
.sidebar-foot { padding: .7rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-backdrop { display: none; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .8rem 1.8rem; min-height: 76px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.menu-btn { display: none; color: var(--green-800); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 1.45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .3rem .8rem .3rem .3rem; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; flex: none; }
.user-chip:hover { background: var(--green-50); color: var(--ink); }
.user-chip strong { display: block; font-size: .92rem; line-height: 1.2; }
.user-chip small { display: block; color: var(--muted); font-size: .78rem; }
.content { flex: 1; padding: 1.8rem; max-width: 1720px; width: 100%; margin-inline: auto; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.page-actions h2 { margin: 0; font-size: 1.3rem; }
.print-header { display: none; }

.welcome { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; margin-bottom: 1.4rem; border-radius: var(--radius); background: linear-gradient(120deg, var(--gold-100), #fff 70%); border: 1px solid #efe2b8; }
.welcome h2 { margin: 0 0 .2rem; font-size: 1.45rem; }
.welcome p { margin: 0; color: var(--ink-2); }

.announcement { padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line-2); }
.announcement:last-child { border-bottom: 0; }
.announcement h3 { margin: 0 0 .25rem; font-size: 1.12rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.announcement .meta { color: var(--muted); font-size: .86rem; margin-bottom: .6rem; }
.announcement .body { white-space: pre-line; color: var(--ink-2); }

.profile-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.profile-head h2 { margin: 0 0 .2rem; }
.code-text { font: 700 1.02rem/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--green-900); background: var(--green-50); padding: .3rem .55rem; border-radius: 6px; border: 1px dashed var(--green-100); }
.kv-total { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.kv-total:last-child { border-bottom: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(5,35,26,.5); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; margin-left: -.5rem; }
  .topbar { padding: .6rem 1rem; min-height: 64px; }
  .topbar-title h1 { font-size: 1.2rem; }
  .user-chip > span:not(.avatar) { display: none; }
  .user-chip { padding: .2rem; }
  .content { padding: 1.1rem 1rem 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 20px 5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats-strip .grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); padding-bottom: 1rem; margin-bottom: 1rem; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.65rem; }
  .grid-2, .grid-3, .form-grid, .form-grid-3, .news-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .grid-4 .stat { padding: .9rem; }
  .grid-4 .stat-value { font-size: 1.35rem; }
  .grid-4 .stat-label { font-size: .75rem; }
  .grid-4 .stat-label .icon { width: 28px; height: 28px; padding: 6px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1.02rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.15rem; }
  .site-nav .btn-ghost { display: none; }
  .section { padding: 3rem 0; }
  .auth-card { padding: 1.4rem; }
  .steps .step span { display: none; }
  .card-head, .card-body { padding: 1rem; }
  .list li { padding: .8rem 1rem; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tabs a { flex: none; }
  .bank-card .acct { font-size: 1.45rem; }
  .cta-band { padding: 1.6rem; }
  .dl { grid-template-columns: 1fr; gap: .1rem; }
  .dl dd { margin-bottom: .6rem; }

  /* Tables become stacked cards on phones */
  .table.stack-mobile thead { display: none; }
  .table.stack-mobile, .table.stack-mobile tbody, .table.stack-mobile tr, .table.stack-mobile td { display: block; width: 100%; }
  .table.stack-mobile tr { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  .table.stack-mobile tbody tr:last-child { border-bottom: 0; }
  .table.stack-mobile td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .3rem 0; border: 0; text-align: right; }
  .table.stack-mobile td::before { content: attr(data-label); color: var(--muted); font-weight: 600; font-size: .85rem; text-align: left; flex: none; }
  .table.stack-mobile td[data-label=""]::before, .table.stack-mobile td:not([data-label])::before { content: none; }
  .table.stack-mobile td.td-main { display: block; text-align: left; padding-bottom: .4rem; }
  .table.stack-mobile td.td-main::before { content: none; }
  .table.stack-mobile tbody tr:hover td { background: transparent; }
  .table.stack-mobile tfoot { display: block; }
  .table.stack-mobile tfoot tr { display: flex; justify-content: space-between; padding: .8rem 1rem; background: #f8faf8; }
  .table.stack-mobile tfoot td { display: inline; padding: 0; border: 0; background: none; }
  .table.stack-mobile tfoot td:empty { display: none; }
}

/* =========================================================
   PRINT (Reports → "Print / Save as PDF")
   ========================================================= */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .sidebar, .topbar, .no-print, .btn, .tabs, .filters, .pager, .alert, .site-header, .site-footer { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; max-width: none; }
  .card, .stat { box-shadow: none; break-inside: avoid; border-color: #ccc; }
  .print-header { display: flex; justify-content: space-between; border-bottom: 2px solid var(--green-800); padding-bottom: 6pt; margin-bottom: 12pt; font-family: var(--serif); font-size: 14pt; color: var(--green-900); }
  .print-header span { font: 9pt var(--sans); color: #666; }
  .table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .badge, .stat-feature, .bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}
.center { text-align: center; }
.badge-lg { font-size: .95rem; padding: .5em 1em; }
.link-gold { color: var(--gold-300); }
.link-gold:hover { color: #fff; }
.check-lg { width: 22px; height: 22px; accent-color: var(--green-700); cursor: pointer; }
.legend i.in { background: var(--green-600); }
.legend i.out { background: var(--gold); }
.input-sm { min-height: 40px !important; width: auto !important; padding: .35rem .7rem !important; }
.alert-compact { padding: .5rem .7rem; font-size: .92rem; }
.steps-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; color: var(--ink-2); }
.steps-list li::marker { color: var(--gold-600); font-weight: 700; }
.card-success { border-color: var(--ok-line); box-shadow: 0 0 0 3px var(--ok-bg); }
.code-text-lg { font-size: 1.3rem; padding: .5rem .8rem; }
.d-block { display: block; }
.justify-end { justify-content: flex-end; }
a.stat { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.stat:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; text-decoration: none; }
.pb-0 { padding-bottom: 0 !important; }
.grow-wide { flex: 1; min-width: 220px; }
.stat-value-sm { font-size: 1.3rem; }
.house-picker { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.house-picker label { display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.house-picker label:last-child { border-bottom: 0; }
.house-picker label:hover { background: var(--green-50); }
.house-picker input { width: 20px; height: 20px; accent-color: var(--green-700); flex: none; }
.house-picker .all { background: #f8faf8; font-weight: 700; position: sticky; top: 0; z-index: 1; }

/* Let grid/flex children shrink on small screens (prevents sideways scrolling) */
.grid > *, .grid-main > *, .content, .main, .card, .list li .grow, .person > span { min-width: 0; }
.main { overflow-x: hidden; }
.list li .right { flex: none; }
@media (max-width: 680px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-label { letter-spacing: .02em; }
  .stat-label span, .stat-label { overflow-wrap: anywhere; }


  .welcome .btn { width: 100%; }
  .card-head .btn { flex: none; }
}
@media (max-width: 680px) {
  .table.stack-mobile td:empty { display: none; }
  .list li { align-items: flex-start; }
  .list li .right { text-align: right; }
  .list li .right .badge { margin-top: .2rem; }
}

/* ---------- Handshake emblem ---------- */
.brand-mark img { width: 72%; height: 72%; object-fit: contain; }
.brand-mark { overflow: hidden; }
.hero-emblem { position: absolute; right: -60px; bottom: -90px; width: 520px; max-width: 70vw; opacity: .06; pointer-events: none; transform: rotate(-8deg); }
.eyebrow-mark { width: 20px; height: 20px; }
.about-emblem { display: flex; justify-content: center; margin-bottom: .4rem; }
.about-emblem img { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 8px var(--gold-100), var(--shadow); }
.cta-band .grow { flex: 1; min-width: 220px; }
.cta-emblem { width: 76px; height: 76px; flex: none; }
.success-mark { background: var(--gold); box-shadow: 0 0 0 8px var(--gold-100); }
.success-mark img { width: 62%; }
.welcome { position: relative; overflow: hidden; }
.welcome > *:not(.welcome-emblem) { position: relative; }
.welcome-emblem { position: absolute; right: 18%; top: 50%; width: 150px; transform: translateY(-50%) rotate(-8deg); opacity: .14; pointer-events: none; }
.print-logo { display: none; }
@media print {
  .print-header { align-items: center; gap: 10pt; }
  .print-header .print-logo { display: inline-grid; width: 30px; height: 30px; }
  .print-header strong { margin-right: auto; }
}
@media (max-width: 680px) {
  .cta-emblem { width: 56px; height: 56px; }
  .welcome-emblem { right: -20px; width: 120px; }
}

/* =========================================================
   NEUMORPHIC DASHBOARD (member + admin) — body.app.neu
   ========================================================= */
.neu.app { background: var(--neu-bg); }

/* Sidebar */
.neu .sidebar, .neu.area-admin .sidebar {
  background: var(--neu-bg); color: var(--ink-2); border-right: 0;
  box-shadow: 8px 0 22px -10px var(--neu-dark);
}
.neu .sidebar-brand, .neu .sidebar-brand:hover { color: var(--green-900); border-bottom: 0; }
.neu .sidebar-brand .brand-mark { border-radius: 50%; box-shadow: var(--neu-out-sm); }
.neu .sidebar-brand small { color: var(--neu-gold); }
.neu .nav-label { color: var(--muted); }
.neu .sidebar a { color: var(--neu-text); border-radius: 14px; margin-bottom: 6px; transition: box-shadow .2s, color .2s; }
.neu .sidebar a .icon { opacity: 1; color: var(--green-700); }
.neu .sidebar a:hover { background: var(--neu-bg); color: var(--green-900); box-shadow: var(--neu-out-sm); }
.neu .sidebar a.active { background: var(--neu-bg); color: var(--green-800); box-shadow: var(--neu-in); }
.neu .sidebar a.active .icon { color: var(--green-700); }
.neu .sidebar-foot { border-top: 0; }
.neu.sidebar-open .sidebar, .neu .sidebar-open .sidebar { box-shadow: var(--neu-out); }

/* Top bar */
.neu .topbar { background: var(--neu-bar); border-bottom: 0; box-shadow: 0 10px 18px -14px var(--neu-dark); }
.neu .menu-btn { box-shadow: var(--neu-out-sm); border-radius: 14px; }
.neu .menu-btn:active { box-shadow: var(--neu-in); }
.neu .user-chip { border: 0; box-shadow: var(--neu-out-sm); }
.neu .user-chip:hover { background: var(--neu-bg); box-shadow: var(--neu-in); }
.neu .avatar { border-color: var(--neu-bg); box-shadow: var(--neu-out-sm); }

/* Cards, stats, welcome */
.neu .card { background: var(--neu-bg); border: 0; border-radius: 24px; box-shadow: var(--neu-out-md); }
.neu .card-head { border-bottom-color: var(--line); }
.neu .card-foot { background: transparent; border-top-color: var(--line); border-radius: 0 0 24px 24px; }
.neu .card-success { box-shadow: var(--neu-out-md), 0 0 0 3px var(--ok-line); }
.neu .stat { background: var(--neu-bg); border: 0; border-radius: 22px; box-shadow: var(--neu-out-md); }
.neu .stat .stat-label .icon { background: var(--neu-bg); box-shadow: var(--neu-in-sm); border-radius: 12px; }
.neu .stat-feature { background: linear-gradient(135deg, var(--green-700), var(--green-950)); }
.neu .stat-feature .stat-label .icon { background: rgba(255,255,255,.08); box-shadow: none; }
.neu a.stat:hover { box-shadow: var(--neu-out); transform: translateY(-2px); }
.neu a.stat:active { box-shadow: var(--neu-in); transform: none; }
.neu .welcome { background: var(--neu-bg); border: 0; border-radius: 24px; box-shadow: var(--neu-out-md); }
.neu .bank-card { border-radius: 22px; box-shadow: var(--neu-out-md); }

/* Buttons */
.neu .btn { border-radius: 14px; box-shadow: var(--neu-out-sm); }
.neu .btn:active { box-shadow: inset 3px 3px 8px rgba(0,0,0,.3); }
.neu .btn-outline, .neu .btn-danger-outline { background: var(--neu-bg); border-color: transparent; }
.neu .btn-outline:hover, .neu .btn-danger-outline:hover { background: var(--neu-bg); border-color: transparent; box-shadow: var(--neu-in-sm); }
.neu .btn-outline:active, .neu .btn-danger-outline:active { box-shadow: var(--neu-in); }
.neu .btn[disabled] { box-shadow: none; }
.neu .bank-card .btn, .neu .stat-feature .btn, .neu .copy-btn { box-shadow: none; }

/* Tables */
.neu .table th { background: transparent; }
.neu .table tbody tr:hover td, .neu .table .row-paid td { background: var(--neu-hover); }
.neu .table tfoot td { background: transparent; }
.neu .table tbody tr.audit-high td { background: var(--red-bg); }

/* Tabs, pager */
.neu .tabs { background: var(--neu-bg); border: 0; border-radius: 16px; box-shadow: var(--neu-in); padding: .4rem; }
.neu .tabs a { border-radius: 12px; }
.neu .tabs a:hover { background: var(--neu-bg); box-shadow: var(--neu-out-sm); }
.neu .tabs a.active { background: var(--green-700); color: #fff; box-shadow: var(--neu-out-sm); }
.neu .pager a { border: 0; border-radius: 12px; box-shadow: var(--neu-out-sm); }
.neu .pager a:hover { box-shadow: var(--neu-in-sm); text-decoration: none; }
.neu .pager a.active { background: var(--green-700); box-shadow: var(--neu-in-sm); }

/* Lists, icons, empty states */
.neu .list-icon { background: var(--neu-bg); box-shadow: var(--neu-in-sm); border-radius: 12px; }
.neu .empty .icon { background: var(--neu-bg); box-shadow: var(--neu-out-sm); }
.neu .alert { border-radius: 14px; }

/* Payments, pickers, progress, media */
.neu .pick-list { border: 0; border-radius: 18px; box-shadow: var(--neu-in); }
.neu .pick { background: transparent; }
.neu .pick:hover, .neu .pick:has(input:checked) { background: var(--neu-hover); }
.neu .pick-total { background: var(--gold-100); }
.neu .house-picker { border: 0; border-radius: 16px; box-shadow: var(--neu-in); }
.neu .house-picker label:hover { background: var(--neu-hover); }
.neu .house-picker .all { background: var(--neu-bg); }
.neu .progress { background: var(--neu-bg); box-shadow: var(--neu-in-sm); }
.neu .receipt-view { border: 0; border-radius: 16px; background: var(--neu-bg); box-shadow: var(--neu-in); }
.neu .thumb, .neu .photo-grid img { border: 0; box-shadow: var(--neu-out-sm); }
.neu dialog { background: var(--neu-bg); border-radius: 24px; }
.neu dialog .card { box-shadow: none; }

/* Print edition of the soft style: white paper, no shadows (they print muddy and waste ink),
   rounded cards with thin soft borders, a tinted header band and pill labels. */
@media print {
  .neu, .neu.app { background: #fff !important; }
  .neu .card, .neu .stat, .neu .welcome, .neu .bank-card, .neu .pick-list, .neu .house-picker, .neu .receipt-view {
    box-shadow: none !important; background: #fff; border: 1px solid #d5ddd8; border-radius: 14px;
  }
  .neu .card { overflow: hidden; }
  .neu .card-head { background: #f1f5f2; border-bottom: 1px solid #d5ddd8; }
  .neu .stat .stat-label .icon, .neu .list-icon, .neu .empty .icon { box-shadow: none; background: #eef3f0; }
  .neu .print-header {
    align-items: center; padding: 8pt 12pt; margin-bottom: 14pt; border: 0; border-radius: 14px;
    background: #eef3f0; color: #072f22; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .neu .print-header .print-logo { border-radius: 50%; border: 2px solid #fff; }
  .neu .print-header span { padding: 2pt 8pt; border-radius: 99px; background: #fff; color: #56635b; }
  .neu .table th { background: #eef3f0 !important; color: #3d4a43; border-bottom: 1px solid #d5ddd8; }
  .neu .card-head, .neu .stat .stat-label .icon, .neu .list-icon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .neu .progress { box-shadow: none; background: #e6ece8; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .neu .code-text { box-shadow: none; border: 1px solid #d5ddd8; }
}

/* =========================================================
   NEUMORPHIC HOME PAGE — body.public.neu
   ========================================================= */
.neu.public { background: var(--neu-bg); }

/* Header */
.neu .site-header { background: var(--neu-bar); border-bottom: 0; box-shadow: 0 10px 18px -14px var(--neu-dark); }
.neu .brand, .neu .brand:hover { color: var(--green-900); }
.neu .brand-text small { color: var(--neu-gold); }
.neu .brand .brand-mark { box-shadow: var(--neu-out-sm); }
.neu .btn-ghost { background: var(--neu-bg); color: var(--green-800); border-color: transparent; }
.neu .btn-ghost:hover { background: var(--neu-bg); color: var(--green-900); box-shadow: var(--neu-in-sm); }

/* Hero */
.neu .hero { color: var(--ink); background: radial-gradient(ellipse at 85% 10%, rgba(201,162,39,.14), transparent 50%), var(--neu-bg); }
.neu .hero::before { opacity: .55; }
.neu .hero-emblem { opacity: .08; }
.neu .eyebrow { border: 0; color: var(--neu-gold); background: var(--neu-bg); box-shadow: var(--neu-out-sm); }
.neu .hero h1 { color: var(--green-900); }
.neu .hero h1 em { color: var(--gold-600); }
.neu .hero p.lead { color: var(--neu-text); }
.neu .hero-card { background: var(--neu-bg); border: 0; border-radius: 28px; box-shadow: var(--neu-out); backdrop-filter: none; animation: neu-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.neu .hero-card .label { color: var(--neu-gold); }
.neu .hero-card .big { color: var(--green-900); }
.neu .hero-card .rows div { border-top-color: var(--line); color: var(--neu-text); }
.neu .hero-card .rows strong { color: var(--ink); }
.neu .hero-card .note { color: var(--muted); }

/* Stats strip, sections */
.neu .stats-strip .grid { background: var(--neu-bg); border: 0; border-radius: 24px; box-shadow: var(--neu-out); }
.neu .section-alt { background: var(--neu-bg); border: 0; box-shadow: inset 0 12px 20px -18px var(--neu-dark), inset 0 -12px 20px -18px var(--neu-dark); }
.neu .kicker, .neu .news .date { color: var(--neu-gold); }

/* About + features */
.neu .about-emblem img { box-shadow: var(--neu-out); }
.neu .feature { background: var(--neu-bg); border: 0; border-radius: 20px; box-shadow: var(--neu-out-md); }
.neu .feature .icon { background: var(--neu-bg); color: var(--gold-600); box-shadow: var(--neu-in-sm); }

/* Announcements */
.neu .news { background: var(--neu-bg); border: 0; border-radius: 22px; box-shadow: var(--neu-out-md); }
.neu .news h3::before { content: ""; display: block; width: 36px; height: 4px; margin: .5rem 0 .7rem; border-radius: 4px; background: var(--gold); }

/* Call to action stays dark green as the page's accent */
.neu .cta-band { border-radius: 24px; box-shadow: var(--neu-out-md); }
.neu .cta-band .btn { box-shadow: none; }

/* Footer */
.neu .site-footer { background: var(--neu-bg); color: var(--neu-text); box-shadow: inset 0 14px 22px -18px var(--neu-dark); }
.neu .site-footer .brand { color: var(--green-900); }
.neu .footer-contact .icon { color: var(--gold-600); }
.neu .footer-bottom { border-top-color: var(--line); color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .neu .hero-card { animation: none; } }

/* =========================================================
   THEME TOGGLE + DARK MODE  (html[data-theme="dark"], set in <head>)
   ========================================================= */
.theme-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--green-700);
  background: var(--neu-bg, #fff); box-shadow: var(--neu-out-sm, var(--shadow-sm));
  transition: box-shadow .2s, color .2s;
}
.theme-toggle:hover { box-shadow: var(--neu-in-sm, none); }
.theme-toggle:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.theme-toggle .icon { width: 22px; height: 22px; transition: transform .35s ease; }
.theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: block; color: var(--gold-300); }
.theme-toggle:active .icon { transform: rotate(-30deg) scale(.9); }
/* Error pages (error_page() in includes/layout.php) */
.error-code {
  display: inline-block; margin-bottom: .9rem; padding: .3rem .9rem; border-radius: 99px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--neu-gold, var(--gold-600)); background: var(--neu-bg, var(--gold-100)); box-shadow: var(--neu-in-sm, none);
}
.error-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .4rem; }
.error-actions .btn { flex: 1 1 160px; }
.error-actions .btn[hidden] { display: none; }
.theme-toggle-float { position: absolute; top: 16px; right: 16px; z-index: 40; }
@media (max-width: 680px) { .neu .auth-wrap { padding-top: 4.6rem; } }
.site-nav { align-items: center; }

@media screen {
  [data-theme="dark"] { color-scheme: dark; }
  [data-theme="dark"] .neu {
    --neu-bg: #1d2622;
    --neu-light: #27332e;
    --neu-dark: #111714;
    --neu-text: #c9d3cd;
    --neu-placeholder: #7d8a83;
    --neu-hover: rgba(255,255,255,.04);
    --neu-bar: rgba(29,38,34,.94);
    --neu-gold: #e4c766;
    --ink: #e6ece8;  --ink-2: #c9d3cd;  --muted: #9aa8a0;
    --line: #2f3b36; --line-2: #2a3530;
    /* the green scale is used for text/icons; lighten it so it reads on dark */
    --green-900: #d6efe2; --green-800: #a8e2c3; --green-700: #7fd1a8; --green-600: #4fb985;
    --green-100: rgba(127,209,168,.2); --green-50: rgba(127,209,168,.08);
    --gold-100: rgba(201,162,39,.16);
    --red: #f2958c;   --red-bg: rgba(180,35,24,.2);   --red-line: rgba(242,149,140,.35);
    --amber: #f0b45a; --amber-bg: rgba(161,92,7,.22); --amber-line: rgba(240,180,90,.35);
    --ok: #6fd6a2;    --ok-bg: rgba(6,118,71,.24);    --ok-line: rgba(111,214,162,.35);
    --grey: #c0c8c4;  --grey-bg: rgba(255,255,255,.08);
    color: var(--ink);
  }
  /* Solid green surfaces keep real dark-green colours (the scale above is lightened for text) */
  [data-theme="dark"] .neu .btn { background: #1d7a55; color: #fff; }
  [data-theme="dark"] .neu .btn:hover { background: #23905f; color: #fff; }
  [data-theme="dark"] .neu .btn-gold { background: var(--gold); color: #05231a; }
  [data-theme="dark"] .neu .btn-gold:hover { background: var(--gold-300); color: #05231a; }
  [data-theme="dark"] .neu .btn-success { background: #067647; }
  [data-theme="dark"] .neu .btn-danger { background: #b42318; }
  [data-theme="dark"] .neu .btn-outline, [data-theme="dark"] .neu .btn-ghost { background: var(--neu-bg); color: var(--green-800); }
  [data-theme="dark"] .neu .btn-danger-outline { background: var(--neu-bg); color: var(--red); }
  [data-theme="dark"] .neu .auth-card .btn { background: linear-gradient(145deg, #1f8a5f, #0e4a35); }
  [data-theme="dark"] .neu .tabs a.active, [data-theme="dark"] .neu .pager a.active,
  [data-theme="dark"] .neu .step.active b { background: #1d7a55; color: #fff; }
  [data-theme="dark"] .neu .step.done b { background: #067647; color: #fff; }
  [data-theme="dark"] .neu .field input[type=file]::file-selector-button { background: #1d7a55; }
  [data-theme="dark"] .neu .stat-feature { background: linear-gradient(135deg, #11533c, #05231a); }
  [data-theme="dark"] .neu .stat-feature .stat-value { color: #fff; }
  [data-theme="dark"] .neu .bank-card { background: radial-gradient(circle at 100% 0, rgba(201,162,39,.3), transparent 45%), linear-gradient(140deg, #11533c, #05231a); }
  [data-theme="dark"] .neu .cta-band { background: linear-gradient(120deg, #11533c, #05231a); }
  [data-theme="dark"] .neu .pick-total { color: var(--ink); }
  [data-theme="dark"] .neu .alert-success { color: #a6e8c5; }
  [data-theme="dark"] .neu .alert-error { color: #f7b4ad; }
  [data-theme="dark"] .neu .alert-info { background: rgba(70,130,190,.18); border-color: rgba(120,170,220,.35); color: #b8d6f2; }
  [data-theme="dark"] .neu .alert-warning { color: #f5cd8f; }
  [data-theme="dark"] .neu .badge-navy { background: rgba(120,160,220,.18); color: #b8cdee; }
  [data-theme="dark"] .neu .badge-gold { border-color: rgba(201,162,39,.35); color: var(--gold-300); }
  [data-theme="dark"] .neu .hero::before { opacity: .05; }
  [data-theme="dark"] .neu .hero-emblem { opacity: .06; }
  [data-theme="dark"] .neu .audit-diff td:nth-child(2) { background: var(--red-bg); }
  [data-theme="dark"] .neu .theme-toggle { color: var(--gold-300); }
}

/* =========================================================
   LARGE SCREENS — use the full width instead of leaving an empty band on the right
   ========================================================= */
@media screen and (min-width: 1440px) {
  .container { max-width: 1320px; }
  .content { padding: 2rem 2.4rem; }
  .topbar { padding-left: 2.4rem; padding-right: 2.4rem; }
  .grid { gap: 1.5rem; }
}
@media screen and (min-width: 1920px) {
  .container { max-width: 1480px; }
  .content { max-width: 1880px; }
}

/* Elements marked hidden stay hidden even if a class sets display (e.g. the Install app button) */
[hidden] { display: none !important; }

/* Photo preview shown under a file input before uploading (data-preview) */
.upload-preview { display: flex; align-items: center; gap: .9rem; margin-top: .7rem; padding: .7rem; border-radius: 14px; border: 1px solid var(--line); background: var(--green-50); }
.upload-preview img { flex: none; object-fit: cover; background: var(--line-2); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.upload-preview-round img { width: 84px; height: 84px; border-radius: 50%; }
.upload-preview-wide img { width: 148px; height: 100px; border-radius: 10px; }
.upload-preview-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.upload-preview-info strong { max-width: 100%; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview-info .help { margin: 0; }
.neu .upload-preview { border: 0; background: var(--neu-bg); box-shadow: var(--neu-in-sm); }
@media (max-width: 680px) { .upload-preview-wide img { width: 112px; height: 80px; } }
