/* Brahmins Community Hall — Donation & Contribution
   Saffron / gold / cream theme only. No dark backgrounds anywhere. */

.bch-root {
  max-width: 720px;
  margin: 20px auto;
  font-family: 'Noto Sans Telugu', Arial, sans-serif;
  background: #FFFDF7;
  border: 2px solid #C97A1E;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  color: #3a2c1a;
}

/* language toggle */
.bch-langbar { display:flex; justify-content:flex-end; gap:8px; padding:10px 16px 0; background:#FFF6E8; }
.bch-lang-btn { border:1.5px solid #C97A1E; background:#fff; color:#A6531A; font-weight:800; font-size:12.5px; padding:5px 14px; border-radius:16px; cursor:pointer; }
.bch-lang-btn.active { background:#C97A1E; color:#fff; }

.bch-root[data-lang="te"] [data-en] { display:none; }
.bch-root[data-lang="en"] [data-te] { display:none; }

/* header */
.bch-header { background:linear-gradient(135deg,#A6531A,#C97A1E); color:#fff; text-align:center; padding:24px 18px 20px; }
.bch-header-icon { font-size:36px; }
.bch-header h1 { margin:8px 0 4px; font-size:22px; font-weight:900; }
.bch-header-sub { font-size:13.5px; font-weight:700; opacity:.95; }

/* nav */
.bch-nav { display:flex; flex-wrap:wrap; gap:8px; padding:14px 16px; background:#FFF6E8; border-bottom:1.5px solid #e2c89a; }
.bch-nav-btn { flex:1 1 auto; min-width:130px; background:#fff; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; font-size:13px; padding:10px 10px; border-radius:10px; cursor:pointer; }
.bch-nav-btn.active, .bch-nav-btn:hover { background:#C97A1E; color:#fff; }

.bch-toast { position:fixed; top:18px; left:50%; transform:translateX(-50%); background:#3a2c1a; color:#fff; padding:10px 20px; border-radius:10px; font-weight:700; font-size:14px; z-index:99999; display:none; box-shadow:0 6px 18px rgba(0,0,0,.2); }
.bch-toast.show { display:block; }
.bch-toast.err { background:#8a1c1c; }
.bch-toast.ok { background:#2e7d32; }

.bch-hidden { display:none !important; }

.bch-view { padding:18px 16px 26px; }

.bch-card { background:#fff; border:1.5px solid #e2c89a; border-radius:16px; padding:20px; margin-bottom:16px; }
.bch-card-narrow { max-width:460px; margin-left:auto; margin-right:auto; }
.bch-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.bch-cardtitle { margin:0 0 16px; color:#A6531A; font-size:19px; font-weight:900; }

.bch-field { margin-bottom:16px; }
.bch-field label { display:block; font-weight:800; color:#3a2c1a; font-size:13.5px; margin-bottom:6px; }
.bch-field input[type="text"],
.bch-field input[type="password"],
.bch-field input[type="date"],
.bch-field input[type="file"],
.bch-field select {
  width:100%; box-sizing:border-box; padding:11px 12px; border:1.5px solid #d9c49a; border-radius:10px;
  font-size:15px; font-weight:700; color:#3a2c1a; background:#FFFDF7;
}
.bch-field input:focus, .bch-field select:focus { outline:none; background:#FFF9C4; border-color:#C97A1E; }

.bch-pin-result, .bch-age-result, .bch-file-hint { margin-top:6px; font-size:13px; font-weight:700; color:#7a4a12; }

.bch-choice-row { display:flex; flex-direction:column; gap:8px; }
.bch-choice-btn { text-align:left; background:#FFFDF7; border:2px solid #d9c49a; color:#3a2c1a; font-weight:800; font-size:14px; padding:12px 14px; border-radius:10px; cursor:pointer; }
.bch-choice-btn.active { background:#C97A1E; color:#fff; border-color:#A6531A; }

.bch-noticebox { background:#FFF3CD; border:1.5px dashed #e0b84a; border-radius:14px; padding:16px; margin-bottom:16px; }
.bch-noticebox-title { font-size:15.5px; font-weight:900; color:#8a1c1c; margin-bottom:4px; }
.bch-noticebox-sub { font-size:13.5px; font-weight:700; color:#5a4326; margin-bottom:12px; }
.bch-bankbox { background:#fff; border:1.5px solid #e0b84a; border-radius:10px; padding:12px 14px; margin-bottom:10px; }
.bch-bankrow { font-size:14px; font-weight:700; color:#3a2c1a; padding:2px 0; }
.bch-noticebox-note { font-size:13px; font-weight:700; color:#5a4326; }

.bch-afterpay-heading { background:#FFF6E8; border-left:4px solid #C97A1E; padding:10px 14px; font-weight:900; font-size:14.5px; color:#A6531A; border-radius:6px; margin-bottom:16px; }

.bch-formmsg { min-height:18px; font-weight:800; font-size:13.5px; color:#8a1c1c; margin-bottom:10px; }
.bch-formmsg.ok { color:#2e7d32; }

.bch-submit-btn { display:block; width:100%; background:linear-gradient(135deg,#C97A1E,#A6531A); color:#fff; border:none; padding:14px; border-radius:12px; font-weight:900; font-size:16px; cursor:pointer; }
.bch-logout-btn, .bch-cancelbtn { background:#fff; border:1.5px solid #A6531A; color:#A6531A; font-weight:800; padding:8px 16px; border-radius:10px; cursor:pointer; }
.bch-editbtn { background:#FFF6E8; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; padding:8px 14px; border-radius:10px; cursor:pointer; font-size:13px; }

.bch-success-icon { font-size:46px; text-align:center; }
.bch-success-text { text-align:center; font-weight:700; color:#3a2c1a; }
.bch-receiptno { text-align:center; font-size:26px; font-weight:900; color:#A6531A; background:#FFF6E8; border:2px dashed #C97A1E; border-radius:12px; padding:14px; margin:14px 0; }
.bch-success-note { text-align:center; font-size:13px; color:#7a4a12; font-weight:700; }

/* stats + progress (public + admin) */
.bch-stats-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin-bottom:16px; }
.bch-stat-box { background:#FFF6E8; border:1.5px solid #e2c89a; border-radius:12px; padding:14px; text-align:center; }
.bch-stat-num { font-size:22px; font-weight:900; color:#A6531A; }
.bch-stat-num.blink { animation: bchBlink 1.3s ease-in-out infinite; }
@keyframes bchBlink { 0%,100%{opacity:1;} 50%{opacity:.4;} }
.bch-stat-lbl { font-size:12px; font-weight:700; color:#7a4a12; margin-top:2px; }

.bch-progress-wrap { margin-bottom:18px; }
.bch-progress-track { background:#FFF3CD; border:1.5px solid #e0b84a; border-radius:14px; height:22px; overflow:hidden; }
.bch-progress-fill { height:100%; background:linear-gradient(135deg,#C97A1E,#A6531A); border-radius:14px 0 0 14px; transition:width .5s ease; }
.bch-progress-label { text-align:center; font-weight:800; color:#7a4a12; font-size:13px; margin-top:6px; }

.bch-donor-list { display:flex; flex-direction:column; gap:8px; }
.bch-donor-card { display:flex; justify-content:space-between; align-items:center; gap:10px; background:#FFFDF7; border:1px solid #e2c89a; border-radius:10px; padding:10px 14px; }
.bch-donor-name { font-weight:800; color:#3a2c1a; font-size:14px; }
.bch-donor-mobile { font-weight:700; color:#7a4a12; font-size:12px; }
.bch-donor-amount { font-weight:900; color:#A6531A; font-size:15px; }
.bch-donor-type { font-size:11px; font-weight:700; color:#7a4a12; }

/* admin */
.bch-goalbox { background:#FFF6E8; border:1.5px solid #e2c89a; border-radius:12px; padding:14px; margin-bottom:16px; }
.bch-goalbox label { font-weight:800; font-size:13px; color:#A6531A; display:block; margin-bottom:8px; }
.bch-goalrow { display:flex; gap:8px; }
.bch-goalrow input { flex:1; padding:9px 10px; border:1.5px solid #d9c49a; border-radius:8px; font-weight:700; }

.bch-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:12px; }
.bch-filter-row { display:flex; flex-wrap:wrap; gap:6px; }
.bch-filter-btn { background:#fff; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; font-size:12.5px; padding:6px 12px; border-radius:16px; cursor:pointer; }
.bch-filter-btn.active { background:#C97A1E; color:#fff; }
.bch-search-input { flex:1; min-width:180px; padding:9px 12px; border:1.5px solid #d9c49a; border-radius:8px; font-weight:700; }

.bch-bulkbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:14px; padding:10px; background:#FFF3CD; border-radius:10px; }
.bch-checklabel { font-weight:800; font-size:13px; color:#3a2c1a; display:flex; align-items:center; gap:6px; }
.bch-bulkbtn { background:#fff; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; font-size:12.5px; padding:7px 12px; border-radius:8px; cursor:pointer; }
.bch-bulkbtn-danger { border-color:#8a1c1c; color:#8a1c1c; }

.bch-admlist { display:flex; flex-direction:column; gap:10px; }
.bch-admrow { background:#FFFDF7; border:1.5px solid #e2c89a; border-radius:12px; padding:12px 14px; }
.bch-admrow-top { display:flex; align-items:flex-start; gap:10px; }
.bch-admrow-body { flex:1; }
.bch-admrow-name { font-weight:900; color:#3a2c1a; font-size:15px; }
.bch-admrow-meta { font-size:12.5px; font-weight:700; color:#7a4a12; margin-top:2px; }
.bch-admrow-amount { font-weight:900; color:#A6531A; font-size:16px; }
.bch-badge { display:inline-block; font-size:11px; font-weight:800; padding:3px 9px; border-radius:12px; margin-right:5px; margin-top:6px; }
.bch-badge-verified { background:#dff5df; color:#2e7d32; }
.bch-badge-unverified { background:#fff0d6; color:#a6531a; }
.bch-badge-public { background:#e0f0ff; color:#155a9c; }
.bch-badge-private { background:#f0e6d6; color:#7a4a12; }
.bch-admrow-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.bch-actbtn { background:#fff; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; font-size:12px; padding:6px 11px; border-radius:8px; cursor:pointer; }
.bch-actbtn-danger { border-color:#8a1c1c; color:#8a1c1c; }
.bch-thumb { width:54px; height:54px; object-fit:cover; border-radius:8px; border:1.5px solid #e2c89a; cursor:pointer; }
.bch-pdf-link { display:inline-block; background:#FFF6E8; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; font-size:12px; padding:8px; border-radius:8px; text-decoration:none; }

/* overlays — fixed to body, never nested */
.bch-overlay { position:fixed; inset:0; background:rgba(58,44,26,.55); display:flex; align-items:center; justify-content:center; z-index:100000; padding:16px; }
.bch-popup { background:#FFFDF7; border-radius:16px; padding:22px; max-width:420px; width:100%; max-height:88vh; overflow-y:auto; box-shadow:0 12px 40px rgba(0,0,0,.3); }
.bch-popup h3 { margin:0 0 14px; color:#A6531A; font-size:18px; }
.bch-popup-actions { display:flex; gap:10px; }
.bch-popup-actions .bch-submit-btn { flex:1; }

.bch-proof-box { position:relative; background:#fff; border-radius:14px; padding:16px; max-width:92vw; max-height:88vh; overflow:auto; }
.bch-proof-box img { max-width:100%; display:block; border-radius:8px; }
.bch-proof-close { position:absolute; top:8px; right:8px; background:#3a2c1a; color:#fff; border:none; width:32px; height:32px; border-radius:50%; font-size:16px; cursor:pointer; z-index:2; }

@media (max-width:480px) {
  .bch-header h1 { font-size:19px; }
  .bch-nav-btn { min-width:100%; }
}
