/* ── Account Modal shell ─────────────────────────────────────────────────────── */
.account-modal {
  width: 320px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* .floating-menu.active đặt display:block (override flex) → flex layout chết →
   body không cuộn được. Dùng ID specificity ép lại flex khi modal mở. */
#account-modal.active {
  display: flex;
  flex-direction: column;
}

.acct-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.acct-modal-title {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  letter-spacing: 0.02em;
}

.acct-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.acct-modal-close:hover { background: rgba(255,255,255,0.08); color: #e5e7eb; }

.acct-modal-body {
  flex: 1;
  min-height: 0;            /* cho phép flex child co lại → overflow-y mới scroll được */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0 8px;
}
.acct-modal-body::-webkit-scrollbar { width: 4px; }
.acct-modal-body::-webkit-scrollbar-track { background: transparent; }
.acct-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ── Guest screen ─────────────────────────────────────────────────────────────── */
.acct-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 24px;
  gap: 12px;
}

.acct-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(168,85,247,0.95), rgba(99,102,241,0.95));
  border: 1px solid rgba(168,85,247,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  margin-bottom: 4px;
}

.acct-hero-title {
  font-size: 15px;
  font-weight: 700;
  color: #f3f4f6;
}

.acct-hero-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}

.acct-google-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1f1f1f;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.95);
}
.acct-google-btn:hover  { opacity: 0.93; }
.acct-google-btn:active { transform: scale(0.98); }

.acct-local-note {
  font-size: 11px;
  color: #6b7280;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* ── Logged-in screen ─────────────────────────────────────────────────────────── */
.acct-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
}

.acct-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
}
.acct-avatar--placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.acct-user-info {
  flex: 1;
  min-width: 0;
}
.acct-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-user-email {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* ── Role badge ───────────────────────────────────────────────────────────────── */
.acct-role-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.acct-role--free {
  background: rgba(107,114,128,0.95);
  color: #9ca3af;
  border: 1px solid rgba(107,114,128,0.95);
}
.acct-role--paid {
  background: linear-gradient(135deg, rgba(234,179,8,0.95), rgba(245,158,11,0.95));
  color: #fbbf24;
  border: 1px solid rgba(234,179,8,0.95);
}
.acct-role--admin {
  background: linear-gradient(135deg, rgba(168,85,247,0.95), rgba(99,102,241,0.95));
  color: #a78bfa;
  border: 1px solid rgba(168,85,247,0.95);
}

/* ── Divider ──────────────────────────────────────────────────────────────────── */
.acct-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 16px 12px;
}

/* ── Section label ────────────────────────────────────────────────────────────── */
.acct-section-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 16px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.acct-count {
  background: rgba(255,255,255,0.08);
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Favorites list ───────────────────────────────────────────────────────────── */
.acct-fav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
  margin-bottom: 12px;
}

.acct-fav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.acct-fav-card:hover { background: rgba(255,255,255,0.06); }

.acct-fav-info { flex: 1; min-width: 0; }
.acct-fav-name {
  font-size: 12px;
  font-weight: 500;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-fav-meta {
  font-size: 10px;
  color: #6b7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acct-fav-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.acct-fav-open, .acct-fav-del {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  transition: background 0.15s;
}
.acct-fav-open {
  background: rgba(99,102,241,0.95);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.95);
}
.acct-fav-open:hover { background: rgba(99,102,241,0.95); }
.acct-fav-del {
  background: rgba(239,68,68,0.95);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.95);
}
.acct-fav-del:hover { background: rgba(239,68,68,0.95); }

.acct-empty {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  padding: 16px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.07);
  line-height: 1.5;
}

/* ── Logout button ────────────────────────────────────────────────────────────── */
/* ── Donate section (VietQR) ─────────────────────────────────────────────────── */
.acct-donate-section {
  margin: 4px 16px 8px;
  padding: 14px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.95);
  border-radius: 10px;
  text-align: center;
}
.acct-donate-title {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 5px;
}
.acct-donate-desc {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 12px;
}
.donate-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.donate-qr-img {
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.95);
}
.donate-bank-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px 10px;
}
.donate-bank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.donate-bank-label {
  color: #9ca3af;
  font-weight: 500;
  flex-shrink: 0;
  width: 64px;
  text-align: left;
}
.donate-bank-val {
  color: #f9fafb;
  font-weight: 600;
  flex: 1;
  text-align: left;
  word-break: break-all;
}
.donate-acc-num {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  color: #fbbf24;
}
.donate-acc-copy {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.95);
  color: #e5e7eb;
  border-radius: 5px;
  padding: 3px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.donate-acc-copy:hover { background: rgba(255,255,255,0.95); }
.donate-acc-copy.copied { background: rgba(52,211,153,0.95); color: #34d399; border-color: rgba(52,211,153,0.95); }

.acct-logout-btn {
  width: calc(100% - 32px);
  margin: 4px 16px 8px;
  padding: 9px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.95);
  border-radius: 8px;
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.acct-logout-btn:hover { background: rgba(239,68,68,0.95); }

/* ── Name editing ─────────────────────────────────────────────────────────────── */
.acct-name-view {
  display: flex;
  align-items: center;
  gap: 5px;
}
.acct-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  flex-shrink: 0;
}
.acct-edit-btn:hover { color: #9ca3af; }

.acct-name-edit {
  flex-direction: column;
  gap: 6px;
}
.acct-name-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 6px;
  color: #f3f4f6;
  font-size: 12px;
  padding: 6px 9px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}
.acct-name-input:focus { border-color: rgba(99,102,241,0.95); }

.acct-name-actions { display: flex; gap: 5px; }
.acct-name-save, .acct-name-cancel {
  flex: 1;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.acct-name-save   { background: #4f46e5; color: #fff; }
.acct-name-cancel { background: rgba(255,255,255,0.07); color: #9ca3af; }
.acct-name-save:hover   { opacity: 0.85; }
.acct-name-cancel:hover { opacity: 0.75; }

.acct-join-date {
  font-size: 10px;
  color: #4b5563;
  margin-top: 2px;
}

/* ── Plan card ────────────────────────────────────────────────────────────────── */
.acct-plan-card {
  margin: 0 8px 12px;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.07);
}
.acct-plan--free { background: rgba(255,255,255,0.03); }
.acct-plan--paid {
  background: linear-gradient(135deg, rgba(234,179,8,0.08), rgba(245,158,11,0.05));
  border-color: rgba(234,179,8,0.95);
}

.acct-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.acct-plan-name {
  font-size: 13px;
  font-weight: 700;
  color: #e5e7eb;
}
.acct-plan--paid .acct-plan-name { color: #fbbf24; }

.acct-plan-tag {
  font-size: 10px;
  color: #6b7280;
  background: rgba(255,255,255,0.05);
  padding: 2px 7px;
  border-radius: 10px;
}

.acct-plan-features {
  list-style: none;
  padding: 0; margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.acct-plan-features li {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
}
.acct-feat-check { color: #34d399; font-size: 11px; flex-shrink: 0; }
.acct-feat-x     { color: #4b5563; font-size: 11px; flex-shrink: 0; }
.acct-feat-locked { color: #4b5563 !important; }

.acct-upgrade-btn {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, #d97706, #b45309);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.acct-upgrade-btn:hover { opacity: 0.88; }

/* ── Data management ──────────────────────────────────────────────────────────── */
.acct-data-row {
  display: flex;
  gap: 6px;
  padding: 0 8px 12px;
}
.acct-data-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: #9ca3af;
}
.acct-data-btn:hover { background: rgba(255,255,255,0.09); color: #e5e7eb; }
.acct-data-btn--danger {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.95);
  color: #f87171;
}
.acct-data-btn--danger:hover { background: rgba(239,68,68,0.95); }

/* ── Admin panel ──────────────────────────────────────────────────────────────── */
/* Badge đỏ trên nút Account */
.admin-notif-badge {
  position: absolute; top: 4px; right: 4px;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; line-height: 1;
}

.acct-admin-label { color: #a78bfa !important; }
.acct-admin-panel { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; }
.acct-admin-loading { font-size: 12px; color: #6b7280; text-align: center; padding: 12px; }
.acct-admin-subsection {
  font-size: 11px; font-weight: 600; color: #6b7280;
  letter-spacing: 0.04em; padding: 0 0 6px;
  display: flex; align-items: center; gap: 6px;
}
.acct-admin-upgrade-list { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.acct-admin-upgrade-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.95);
  border-radius: 6px; padding: 6px 10px;
}
.acct-admin-upgrade-name { font-size: 11px; color: #e5e7eb; font-weight: 500; }
.acct-admin-upgrade-date { font-size: 10px; color: #34d399; }

.acct-admin-card {
  border-radius: 8px;
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.95);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acct-admin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.acct-admin-spot-name { font-size: 12px; font-weight: 600; color: #e5e7eb; }
.acct-admin-date { font-size: 10px; color: #4b5563; flex-shrink: 0; }
.acct-admin-coord { font-size: 10px; color: #6b7280; font-family: monospace; }
.acct-admin-user { font-size: 10px; color: #6b7280; }
.acct-admin-notes {
  font-size: 11px; color: #9ca3af; font-style: italic;
  background: rgba(255,255,255,0.04);
  padding: 5px 7px; border-radius: 5px; line-height: 1.4;
  margin-top: 2px;
}
.acct-admin-btns { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.acct-admin-approve, .acct-admin-reject, .acct-admin-mapbtn {
  border: none; border-radius: 5px; font-size: 10px; font-weight: 600;
  padding: 4px 8px; cursor: pointer; transition: opacity 0.15s;
}
.acct-admin-approve {
  background: rgba(52,211,153,0.95); color: #34d399;
  border: 1px solid rgba(52,211,153,0.95);
}
.acct-admin-reject {
  background: rgba(239,68,68,0.95); color: #f87171;
  border: 1px solid rgba(239,68,68,0.95);
}
.acct-admin-mapbtn {
  background: rgba(255,255,255,0.06); color: #9ca3af;
  border: 1px solid rgba(255,255,255,0.1);
  margin-left: auto;
}
.acct-admin-approve:hover { opacity: 0.8; }
.acct-admin-reject:hover  { opacity: 0.8; }
.acct-admin-mapbtn:hover  { background: rgba(255,255,255,0.95); }

/* ── Comparison table ─────────────────────────────────────────────────────────── */
.acct-compare-table { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); }
.acct-compare-head {
  display: grid; grid-template-columns: 1fr 80px 80px;
  background: rgba(255,255,255,0.04);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #6b7280;
  padding: 8px 10px;
}
.acct-compare-head .acct-compare-active { color: #fbbf24; }
.acct-compare-row {
  display: grid; grid-template-columns: 1fr 80px 80px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
  align-items: center;
}
.acct-compare-feat { font-size: 11px; color: #9ca3af; }
.acct-compare-val  { font-size: 11px; color: #6b7280; text-align: center; }
.acct-compare-val.acct-compare-cur { color: #e5e7eb; font-weight: 600; }
.acct-compare-val.acct-compare-cur.paid { color: #fbbf24; }
.acct-compare-active-label {
  font-size: 11px; color: #fbbf24; text-align: center;
  padding: 8px 0 4px; font-weight: 600;
}

/* ── Category buttons in contribution form ────────────────────────────────────── */
.contrib-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.contrib-cat-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: #9ca3af;
  font-size: 12px; font-weight: 500;
  padding: 8px 6px; cursor: pointer;
  transition: all 0.15s; text-align: center;
}
.contrib-cat-btn:hover { background: rgba(255,255,255,0.09); color: #e5e7eb; }
.contrib-cat-btn.active {
  background: rgba(99,102,241,0.95);
  border-color: rgba(99,102,241,0.95);
  color: #818cf8; font-weight: 700;
}

/* ── Upload area ──────────────────────────────────────────────────────────────── */
.contrib-upload-area {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1.5px dashed rgba(255,255,255,0.95);
  border-radius: 8px; padding: 18px 12px;
  color: #6b7280; font-size: 12px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.contrib-upload-area:hover { border-color: rgba(168,85,247,0.95); background: rgba(168,85,247,0.05); }
.contrib-upload-hint { font-size: 10px; color: #4b5563; }
.contrib-img-preview {
  position: relative; display: flex;
  border-radius: 8px; overflow: hidden;
}
.contrib-img-clear {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.95); border: none;
  border-radius: 50%; color: #fff; width: 22px; height: 22px;
  font-size: 11px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}

/* ── Paid gate ────────────────────────────────────────────────────────────────── */
.contrib-paid-gate {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px; padding: 8px 0 4px;
}
.contrib-gate-icon { font-size: 28px; }
.contrib-gate-title { font-size: 15px; font-weight: 700; color: #f3f4f6; }
.contrib-gate-desc { font-size: 12px; color: #9ca3af; line-height: 1.6; }

/* ── Admin card image ─────────────────────────────────────────────────────────── */
.acct-admin-cat { font-size: 11px; color: #a78bfa; font-weight: 600; }
.acct-admin-img {
  width: 100%; border-radius: 6px; object-fit: cover;
  max-height: 120px; cursor: pointer; margin-top: 2px;
  transition: opacity 0.15s;
}
.acct-admin-img:hover { opacity: 0.85; }

/* ── Admin: user statistics ──────────────────────────────────────────────────── */
.acct-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.acct-stats-card {
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.acct-stats-total { background: rgba(99,102,241,0.10); border-color: rgba(99,102,241,0.95); }
.acct-stats-free  { background: rgba(156,163,175,0.08); border-color: rgba(156,163,175,0.95); }
.acct-stats-paid  { background: rgba(251,191,36,0.10); border-color: rgba(251,191,36,0.95); }
.acct-stats-admin { background: rgba(168,85,247,0.10); border-color: rgba(168,85,247,0.95); }
.acct-stats-num {
  font-size: 18px; font-weight: 700; color: #e5e7eb;
  line-height: 1.1;
}
.acct-stats-total .acct-stats-num { color: #818cf8; }
.acct-stats-paid  .acct-stats-num { color: #fbbf24; }
.acct-stats-admin .acct-stats-num { color: #c084fc; }
.acct-stats-label {
  font-size: 9px; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 2px;
}
.acct-stats-chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; color: #9ca3af; font-weight: 600;
  margin-bottom: 4px;
}
.acct-stats-chart-total { color: #34d399; font-weight: 700; }
.acct-stats-chart {
  display: flex; align-items: flex-end;
  gap: 2px; height: 56px;
  padding: 4px 2px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
.acct-stats-bar-wrap {
  flex: 1; height: 100%;
  display: flex; align-items: flex-end;
  cursor: pointer;
}
.acct-stats-bar {
  width: 100%;
  background: linear-gradient(to top, #6366f1, #a78bfa);
  border-radius: 2px 2px 0 0;
  transition: opacity 0.15s;
}
.acct-stats-bar-wrap:hover .acct-stats-bar { opacity: 0.8; }
.acct-stats-chart-xaxis {
  display: flex; justify-content: space-between;
  font-size: 9px; color: #6b7280;
  padding: 2px 2px 0;
  font-family: monospace;
}

/* ── Contribution form overlay ────────────────────────────────────────────────── */
.contrib-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.contrib-dialog {
  width: 380px; max-width: 100%;
  background: #1a1b26;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.95);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.contrib-dlg-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.contrib-dlg-title { font-size: 14px; font-weight: 700; color: #f3f4f6; }
.contrib-dlg-close {
  background: none; border: none; cursor: pointer; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.contrib-dlg-close:hover { background: rgba(255,255,255,0.08); color: #e5e7eb; }
.contrib-dlg-body {
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
}
.contrib-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-family: monospace; color: #6b7280;
  background: rgba(255,255,255,0.04);
  border-radius: 6px; padding: 7px 10px;
}
.contrib-field { display: flex; flex-direction: column; gap: 5px; }
.contrib-label { font-size: 11px; font-weight: 600; color: #9ca3af; letter-spacing: 0.03em; }
.contrib-input, .contrib-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 7px; color: #f3f4f6; font-size: 12px;
  padding: 8px 10px; outline: none;
  transition: border-color 0.15s;
  width: 100%; box-sizing: border-box;
}
.contrib-input:focus, .contrib-select:focus { border-color: rgba(168,85,247,0.95); }
.contrib-select option { background: #1a1b26; }
.contrib-textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 7px; color: #f3f4f6; font-size: 12px;
  padding: 8px 10px; outline: none; resize: vertical;
  min-height: 72px; transition: border-color 0.15s;
  font-family: inherit; width: 100%; box-sizing: border-box;
}
.contrib-textarea:focus { border-color: rgba(168,85,247,0.95); }
.contrib-actions { display: flex; gap: 8px; margin-top: 4px; }
.contrib-cancel-btn, .contrib-submit-btn {
  border: none; border-radius: 8px; font-size: 12px; font-weight: 600;
  padding: 9px 0; cursor: pointer; transition: opacity 0.15s; flex: 1;
}
.contrib-cancel-btn { background: rgba(255,255,255,0.07); color: #9ca3af; }
.contrib-cancel-btn:hover { opacity: 0.8; }
.contrib-submit-btn { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; }
.contrib-submit-btn:hover { opacity: 0.88; }
.contrib-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.contrib-msg { font-size: 11px; text-align: center; padding: 2px 0; line-height: 1.4; }

/* ── Mobile responsive ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .account-modal {
    width: calc(100vw - 24px);
    max-width: 340px;
  }
}
