/* ============================================================
   SafeAlert — Complete Stylesheet v5
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --accent-grad: transparent;
  --ring-col:    #22c55e;
  --bg:            #f1f5f9;
  --card:          #ffffff;
  --card-border:   #e2e8f0;
  --nav:           #ffffff;
  --nav-border:    #e2e8f0;
  --text:          #0f172a;
  --sub:           #64748b;
  --muted:         #94a3b8;
  --input:         #ffffff;
  --input-border:  #cbd5e1;
  --input-text:    #0f172a;
  --primary:       #ef4444;
  --primary-dark:  #dc2626;
  --primary-light: #fee2e2;
  --primary-text:  #dc2626;
  --green:         #22c55e;
  --green-light:   #dcfce7;
  --green-text:    #16a34a;
  --amber:         #f59e0b;
  --amber-light:   #fef3c7;
  --amber-text:    #d97706;
  --blue:          #3b82f6;
  --blue-light:    #dbeafe;
  --blue-text:     #1d4ed8;
  --purple:        #8b5cf6;
  --shadow:        0 4px 24px rgba(0,0,0,.08);
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --nav-h:         60px;
  --bottom-h:      64px;
  --radius:        14px;
  --radius-lg:     20px;
}
[data-theme="dark"] {
  --bg:           #0f172a;
  --card:         #1e293b;
  --card-border:  #334155;
  --nav:          #1e293b;
  --nav-border:   #334155;
  --text:         #f1f5f9;
  --sub:          #94a3b8;
  --muted:        #475569;
  --input:        #0f172a;
  --input-border: #334155;
  --input-text:   #f1f5f9;
  --primary-light:#450a0a;
  --primary-text: #fca5a5;
  --green-light:  #052e16;
  --green-text:   #4ade80;
  --amber-light:  #451a03;
  --amber-text:   #fbbf24;
  --blue-light:   #0f172a;
  --blue-text:    #93c5fd;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.3);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', 'Noto Sans Bengali', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[data-lang="bn"] { font-family: 'Noto Sans Bengali', 'Outfit', sans-serif; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 3px; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--nav);
  border-bottom: 1px solid var(--nav-border);
  display: flex; align-items: center; padding: 0 16px;
  z-index: 200; gap: 4px;
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; margin-right: 8px;
}
.brand-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; padding: 0;
}
.brand-icon img { width: 38px; height: 38px; object-fit: contain; display: block; }
.brand-icon svg { width: 18px; height: 18px; }
.brand-name {
  font-size: 18px; font-weight: 800;
  color: var(--primary); letter-spacing: -.5px;
}
/* Desktop nav links */
.navbar-links {
  display: flex; align-items: center; gap: 2px; flex: 1;
}
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 10px;
  color: var(--sub); font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: all .18s;
}
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-link:hover, .nav-link.active {
  background: var(--primary-light);
  color: var(--primary-text);
}
/* Navbar right side */
.navbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.navbar-user    { display: flex; align-items: center; gap: 6px; }

/* Icon button */
.btn-icon {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--card-border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text); flex-shrink: 0; position: relative; transition: all .18s;
}
.btn-icon:hover { background: var(--primary-light); color: var(--primary-text); border-color: transparent; }
.btn-icon svg { width: 17px; height: 17px; }
.btn-lang {
  display: flex; align-items: center; gap: 4px;
  width: auto; padding: 6px 10px;
  background: var(--primary-light); color: var(--primary-text);
  border-color: transparent; font-size: 12px; font-weight: 700;
}
/* Notification badge */
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 17px; height: 17px; border-radius: 10px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--nav);
}
/* User button */
.btn-user {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary-text);
  font-weight: 600; font-size: 13px;
  border: none; cursor: pointer; text-decoration: none;
}
.btn-user svg { width: 15px; height: 15px; }
.btn-outline {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 10px;
  border: 1px solid var(--card-border);
  color: var(--text); font-weight: 600; font-size: 13px;
  background: transparent; transition: all .18s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline svg { width: 14px; height: 14px; }
.btn-primary-sm {
  display: flex; align-items: center; padding: 7px 16px;
  border-radius: 10px; background: var(--primary);
  color: #fff; font-weight: 700; font-size: 13px;
  border: none; cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.hamburger-btn { display: none !important; }

/* ── Responsive breakpoints ────────────────────────────────── */
/* Tablet: hide nav text, show icons only */
@media (max-width: 1100px) {
  .nav-link-text { display: none !important; }
  .nav-link { padding: 8px; }
}
/* Mobile: hide desktop nav, show hamburger + bottom nav */
@media (max-width: 767px) {
  .navbar-links   { display: none !important; }
  .navbar-user    { display: none !important; }
  .hamburger-btn  { display: flex !important; }
  .bottom-nav     { display: flex !important; }
}
@media (min-width: 768px) {
  .hamburger-btn { display: none !important; }
  .navbar-links  { display: flex !important; }
  .navbar-user   { display: flex !important; }
  .bottom-nav    { display: none !important; }
  .mobile-menu   { display: none !important; }
}

/* ── Mobile Dropdown Menu ──────────────────────────────────── */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--nav-border);
  z-index: 190; padding: 10px 12px;
  box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 4px;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.mobile-menu.open { display: flex; animation: slideDown .2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.mobile-menu-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--primary-light); margin-bottom: 4px;
}
.mobile-avatar {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
}
.mobile-user-name  { font-weight: 700; font-size: 14px; color: var(--primary-text); }
.mobile-user-role  { font-size: 11px; color: var(--sub); }
.mobile-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--card-border);
  color: var(--text); font-weight: 600; font-size: 14px;
  background: transparent; transition: all .18s;
}
.mobile-menu-item:hover, .mobile-menu-item.mm-active {
  background: var(--primary-light);
  color: var(--primary-text);
  border-color: transparent;
}
.mobile-menu-item.danger  { border-color: #ef444433; color: #ef4444; }
.mobile-menu-item.primary { background: var(--primary); color: #fff; border-color: transparent; }
.mobile-menu-item svg     { width: 16px; height: 16px; flex-shrink: 0; }
.mobile-menu-divider      { height: 1px; background: var(--card-border); margin: 4px 0; }

/* ── Bottom Nav (mobile only) ──────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-h);
  background: var(--nav);
  border-top: 1px solid var(--nav-border);
  display: flex; align-items: center;
  justify-content: space-around;
  z-index: 200; padding: 0 4px;
  box-shadow: 0 -2px 16px rgba(0,0,0,.08);
}
.bottom-nav-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; height: 100%;
  background: transparent; border: none;
  cursor: pointer; color: var(--muted);
  transition: color .18s; text-decoration: none;
  position: relative; min-width: 0;
}
.bottom-nav-item svg       { width: 24px; height: 24px; }
.bottom-nav-item.active    { color: var(--primary); }
.bottom-nav-item.active svg { transform: scale(1.1); }
/* Centre CTA button */
.bottom-nav-cta {
  width: 52px; height: 52px;
  border-radius: 16px !important;
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(239,68,68,.4);
  transform: translateY(-10px);
  flex: 0 0 52px;
}
.bottom-nav-cta svg { width: 24px; height: 24px; }
.bn-badge {
  position: absolute; top: 6px; right: calc(50% - 16px);
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; border: 2px solid var(--nav);
}

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
  padding-top: var(--nav-h);
  min-height: 100vh;
}
@media (max-width: 767px) {
  .main-content { padding-bottom: var(--bottom-h); }
}

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed; top: 72px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999; padding: 10px 22px;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); max-width: 340px; width: calc(100% - 32px);
  text-align: center; display: none; color: #fff;
  pointer-events: none;
}
.toast.show    { display: block; animation: toastIn .3s ease; }
.toast.success { background: #22c55e; }
.toast.error   { background: #ef4444; }
.toast.warn    { background: #f59e0b; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── Confirm Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 9990; display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--card); border-radius: 20px; padding: 24px;
  max-width: 340px; width: 100%; box-shadow: var(--shadow);
}
.modal-icon { background: var(--primary-light); border-radius: 12px; padding: 10px; display: inline-flex; margin-bottom: 12px; }
.modal-icon svg  { width: 22px; height: 22px; color: var(--primary); }
.modal-title     { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.modal-msg       { font-size: 14px; color: var(--sub); line-height: 1.5; margin-bottom: 18px; }
.modal-actions   { display: flex; gap: 10px; }
.btn-modal-cancel  { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--card-border); background: transparent; color: var(--text); font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-modal-confirm { flex: 1; padding: 10px; border-radius: 12px; border: none; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; font-family: inherit; }

/* ── Sheet Modal ───────────────────────────────────────────── */
.modal-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-sheet.open { display: flex; }
.sheet-inner { background: var(--card); border-radius: 20px; padding: 22px; max-width: 460px; width: 100%; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; }
.sheet-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.sheet-input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--input-border); background: var(--input); color: var(--input-text); font-size: 14px; outline: none; font-family: inherit; margin-bottom: 10px; transition: border-color .18s; }
.sheet-input:focus { border-color: var(--primary); }
.sheet-acts { display: flex; gap: 8px; margin-top: 4px; }
.sheet-btn   { flex: 1; padding: 10px; border-radius: 12px; border: none; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 14px; }
.sheet-btn.p { background: var(--primary); color: #fff; }
.sheet-btn.c { background: var(--bg); color: var(--text); border: 1px solid var(--card-border); }

/* ── Hero Banner ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
  padding: 28px 20px 24px; position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.hero::before { right: -20px; top: -20px; width: 140px; height: 140px; }
.hero::after  { right: 50px; bottom: -40px; width: 90px; height: 90px; }
.hero-inner { max-width: 960px; margin: 0 auto; position: relative; }
.hero-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.hero-label svg { width: 14px; height: 14px; color: rgba(255,255,255,.8); }
.hero-label span { font-size: 11px; color: rgba(255,255,255,.8); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.hero h1 { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 6px; letter-spacing: -.5px; }
.hero-sub { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stat { background: rgba(255,255,255,.15); border-radius: 12px; padding: 8px 14px; backdrop-filter: blur(8px); }
.hero-stat-num { font-size: 22px; font-weight: 900; color: #fff; line-height: 1; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.75); font-weight: 600; margin-top: 2px; }
.hero-purpose {
  font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.75;
  max-width: 640px; margin-bottom: 18px;
  background: rgba(255,255,255,.1); border-radius: 12px;
  padding: 12px 16px; border: 1px solid rgba(255,255,255,.15);
}
@media (max-width: 767px) {
  .hero { padding: 18px 14px 16px; }
  .hero h1 { font-size: 21px; }
  .hero-stat { padding: 6px 10px; }
  .hero-stat-num { font-size: 18px; }
  .hero-purpose { font-size: 12px; padding: 10px 12px; }
}

/* ── Paid Search Notice Board ──────────────────────────────── */
.notice-board {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  margin: 0; padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.notice-board-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.notice-board-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notice-board-icon svg { width: 18px; height: 18px; color: #fff; }
.notice-board-text { flex: 1; min-width: 0; }
.notice-board-title { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 1px; }
.notice-board-desc  { font-size: 12px; color: rgba(255,255,255,.78); line-height: 1.4; }
.notice-board-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 10px;
  background: rgba(255,255,255,.2); color: #fff;
  font-weight: 700; font-size: 13px; border: 1.5px solid rgba(255,255,255,.35);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .18s; flex-shrink: 0;
}
.notice-board-btn:hover { background: rgba(255,255,255,.32); }
.notice-board-btn svg { width: 13px; height: 13px; }
@media (max-width: 600px) {
  .notice-board { padding: 12px 14px; }
  .notice-board-icon { display: none; }
  .notice-board-btn  { width: 100%; justify-content: center; margin-top: 6px; }
}

/* ── Search & Filter Bar ───────────────────────────────────── */
.search-wrap { max-width: 960px; margin: 0 auto; padding: 18px 16px 0; }
.search-row  { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.search-box  { flex: 1; position: relative; }
.search-box svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.search-input {
  width: 100%; padding: 11px 14px 11px 38px;
  border-radius: 12px; border: 1.5px solid var(--input-border);
  background: var(--input); color: var(--input-text);
  font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .18s; box-shadow: var(--shadow-sm);
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--muted); }
.filter-tabs  { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-tab   {
  padding: 7px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 600; border: none;
  cursor: pointer; background: var(--card);
  color: var(--sub); transition: all .18s; font-family: inherit;
  border: 1.5px solid var(--card-border);
}
.filter-tab.active        { background: var(--primary); color: #fff; border-color: transparent; }
.filter-tab:hover:not(.active) { background: var(--primary-light); color: var(--primary-text); border-color: transparent; }
.btn-report {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 12px;
  background: var(--primary); color: #fff;
  border: none; cursor: pointer; font-weight: 700; font-size: 14px;
  white-space: nowrap; transition: opacity .18s;
  text-decoration: none; flex-shrink: 0;
}
.btn-report:hover { opacity: .88; }
.btn-report svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .search-wrap { padding: 14px 12px 0; }
  .btn-report span { display: none; }
  .btn-report { padding: 10px 12px; }
}

/* ── Cards Grid ────────────────────────────────────────────── */
.cards-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 32px; }
@media (max-width: 480px) { .cards-wrap { padding: 0 12px 20px; } }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .cards-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ── Person Card ───────────────────────────────────────────── */
.person-card {
  background: var(--card); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-photo {
  height: 180px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
@media (max-width: 500px) { .card-photo { height: 140px; } }
.card-photo-img   { width: 100%; height: 100%; object-fit: cover; }
.card-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  border: 3px solid; display: flex; align-items: center;
  justify-content: center; font-size: 26px; font-weight: 900;
}
.card-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  z-index: 2;
}

.card-body { padding: 12px; }
@media (max-width: 500px) { .card-body { padding: 8px 10px 10px; } }
.card-name {
  font-weight: 800; font-size: 14px; color: var(--text);
  margin-bottom: 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 500px) { .card-name { font-size: 12px; } }
.card-tags  { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; color: var(--sub); background: var(--bg); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--card-border); }
.card-meta { display: flex; align-items: flex-start; gap: 4px; font-size: 11px; color: var(--sub); margin-bottom: 4px; line-height: 1.4; }
.card-meta svg { flex-shrink: 0; margin-top: 1px; }
.card-footer-btn { margin-top: 10px; }
.card-btn {
  width: 100%; padding: 9px; border-radius: 10px; border: none;
  cursor: pointer; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-family: inherit; transition: opacity .18s;
}
.card-btn.btn-primary { background: var(--primary); color: #fff; }
.card-btn.btn-ghost   { background: var(--bg); color: var(--sub); border: 1px solid var(--card-border); }
.card-btn:hover { opacity: .85; }
.card-btn svg   { width: 13px; height: 13px; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}
.card-badges .badge {
  box-shadow: 0 1px 6px rgba(0,0,0,.22);
}
.badge-searching { background: var(--primary-light); color: var(--primary-text); }
.badge-found     { background: var(--green-light); color: var(--green-text); }
.badge-pending   { background: var(--amber-light); color: var(--amber-text); }
.badge-approved  { background: var(--green-light); color: var(--green-text); }
.badge-sm {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--sub); }
.empty-icon  { width: 72px; height: 72px; border-radius: 20px; background: var(--card); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--card-border); }
.empty-icon svg  { width: 32px; height: 32px; color: var(--muted); }
.empty-title { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.empty-desc  { font-size: 13px; }
.empty-adm   { text-align: center; padding: 24px; color: var(--muted); font-size: 13px; }

/* ── Safety Tips ───────────────────────────────────────────── */
.tips-box  { max-width: 960px; margin: 0 auto 32px; padding: 0 16px; }
.tips-card { background: var(--card); border-radius: 18px; padding: 20px; border: 1px solid var(--card-border); }
.tips-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.tips-head svg  { width: 16px; height: 16px; color: var(--primary); }
.tips-head span { font-weight: 700; font-size: 15px; color: var(--text); }
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .tips-grid { grid-template-columns: 1fr; } }
.tip-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--sub); line-height: 1.5; }
.tip-num  { width: 22px; height: 22px; border-radius: 7px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--primary-text); flex-shrink: 0; margin-top: 1px; }

/* ── Notice Box (report page) ──────────────────────────────── */
.notice-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1.5px solid #f59e0b44; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px;
}
[data-theme="dark"] .notice-box { background: linear-gradient(135deg,#78350f22,#92400e22); border-color: #f59e0b33; }
.notice-box-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: #92400e; margin-bottom: 8px; }
[data-theme="dark"] .notice-box-title { color: #fcd34d; }
.notice-box-text  { font-size: 13px; color: #78350f; line-height: 1.7; }
[data-theme="dark"] .notice-box-text { color: #fde68a; }
.notice-box-text a { color: #d97706; font-weight: 700; text-decoration: underline; }
[data-theme="dark"] .notice-box-text a { color: #fbbf24; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-wrap   { max-width: 640px; margin: 0 auto; padding: 24px 16px; }
.back-btn    { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); background: none; border: none; cursor: pointer; font-weight: 600; font-size: 14px; margin-bottom: 16px; font-family: inherit; transition: color .18s; }
.back-btn:hover { color: var(--primary); }
.back-btn svg   { width: 16px; height: 16px; }
.form-card  { background: var(--card); border-radius: 22px; padding: 24px; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
@media (max-width: 480px) { .form-card { padding: 16px; } }
.form-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.form-title-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-title-icon svg { width: 22px; height: 22px; color: var(--primary-text); }
.form-title h2 { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.3px; margin: 0; }
.form-section-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--card-border); }
.form-group  { margin-bottom: 14px; }
.form-label  { display: block; font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.input-wrap  { position: relative; }
.input-icon  { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon svg { width: 14px; height: 14px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border-radius: 12px; border: 1.5px solid var(--input-border);
  background: var(--input); color: var(--input-text);
  font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .18s; -webkit-appearance: none;
}
.form-input.has-icon { padding-left: 38px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input.error { border-color: #ef4444; }
.form-textarea { resize: vertical; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.field-error { font-size: 11px; color: #ef4444; margin-top: 4px; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); display: flex; }
.pw-toggle svg { width: 15px; height: 15px; }
.btn-row    { display: flex; gap: 10px; margin-top: 8px; }
.btn-cancel { flex: 1; padding: 13px; border-radius: 14px; border: 1.5px solid var(--card-border); background: transparent; color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn-submit {
  flex: 2; padding: 13px; border-radius: 14px; border: none;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 15px;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .18s;
}
.btn-submit:hover:not(:disabled) { opacity: .9; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }
.btn-submit svg, .btn-full svg { width: 16px; height: 16px; }
.btn-full {
  width: 100%; padding: 13px; border-radius: 14px; border: none;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 15px;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px; transition: opacity .18s;
}
.btn-full:hover { opacity: .9; }
.link-row { text-align: center; font-size: 13px; color: var(--sub); }
.link-row a { color: var(--primary-text); font-weight: 700; }
.alert-error   { background: #ef444411; border: 1px solid #ef444433; border-radius: 12px; padding: 12px 16px; font-size: 13px; color: #ef4444; margin-bottom: 14px; font-weight: 600; }
.alert-success { background: var(--green-light); border: 1px solid var(--green-text); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: var(--green-text); margin-bottom: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.alert-info    { background: var(--blue-light); border: 1px solid var(--blue-text); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: var(--blue-text); margin-bottom: 14px; font-weight: 600; }
.alert-warn    { background: var(--amber-light); border: 1px solid var(--amber-text); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: var(--amber-text); margin-bottom: 14px; font-weight: 600; }
.demo-box      { background: var(--card); border-radius: 16px; padding: 14px 16px; border: 1px dashed var(--card-border); margin-top: 14px; }
.demo-label    { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.demo-cred     { font-size: 12px; color: var(--sub); margin-bottom: 5px; cursor: pointer; transition: color .18s; }
.demo-cred:hover { color: var(--primary); }

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.auth-box  { width: 100%; max-width: 400px; }
.auth-hero { text-align: center; margin-bottom: 24px; }
.auth-hero-icon { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg,#ef4444,#dc2626); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(239,68,68,.3); }
.auth-hero-icon svg { width: 30px; height: 30px; color: #fff; }
.auth-hero h2 { font-size: 24px; font-weight: 900; color: var(--text); margin-bottom: 6px; letter-spacing: -.5px; }
.auth-hero p  { font-size: 13px; color: var(--sub); }
.photo-upload { height: 140px; border-radius: 16px; border: 2px dashed var(--input-border); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; transition: border-color .18s; }
.photo-upload:hover { border-color: var(--primary); }
.photo-upload svg   { width: 28px; height: 28px; color: var(--muted); }
.photo-upload-text  { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.photo-preview { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.photo-overlay svg  { width: 22px; height: 22px; color: #fff; }
.photo-overlay span { font-size: 12px; font-weight: 700; color: #fff; }

/* ── Detail Page ───────────────────────────────────────────── */
.detail-wrap  { max-width: 680px; margin: 0 auto; padding: 20px 16px; }
.detail-card  { background: var(--card); border-radius: 22px; overflow: hidden; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.detail-photo { height: 280px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
@media (max-width: 480px) { .detail-photo { height: 200px; } }
.detail-photo img  { width: 100%; height: 100%; object-fit: cover; }
.detail-photo-avatar { width: 100px; height: 100px; border-radius: 50%; border: 4px solid; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 900; }
.detail-photo-badges { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.detail-body  { padding: 20px; }
@media (max-width: 480px) { .detail-body { padding: 14px; } }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.detail-name   { font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -.5px; margin-bottom: 6px; }
.detail-tags   { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-tag    { font-size: 13px; color: var(--sub); background: var(--bg); padding: 3px 10px; border-radius: 8px; border: 1px solid var(--card-border); }
.detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-action { display: flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: opacity .18s; text-decoration: none; }
.btn-action:hover { opacity: .8; }
.btn-action svg  { width: 13px; height: 13px; }
.btn-edit   { background: var(--primary-light); color: var(--primary-text); }
.btn-delete { background: #ef444422; color: #ef4444; }
.btn-share  { background: var(--bg); color: var(--sub); border: 1px solid var(--card-border) !important; }
.btn-pdf    { background: #dbeafe; color: #1d4ed8; }
[data-theme="dark"] .btn-pdf { background: #1e3a8a; color: #93c5fd; }
.detail-info-box { background: var(--bg); border-radius: 14px; padding: 14px; margin-bottom: 14px; border: 1px solid var(--card-border); }
.info-row    { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.info-row:last-child { margin-bottom: 0; }
.info-row svg  { flex-shrink: 0; width: 16px; height: 16px; color: var(--primary); margin-top: 2px; }
.info-label    { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.info-value    { font-size: 14px; font-weight: 600; color: var(--text); }
.detail-desc   { font-size: 14px; color: var(--sub); line-height: 1.7; background: var(--bg); padding: 14px; border-radius: 12px; border: 1px solid var(--card-border); margin-bottom: 14px; }
.detail-contact { background: var(--bg); border-radius: 14px; padding: 14px; border: 1px solid var(--card-border); margin-bottom: 14px; }
.contact-name   { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.contact-link   { display: flex; align-items: center; gap: 8px; color: var(--primary-text); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.contact-link svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.contact-link.secondary { color: var(--sub); }
.detail-reporter { font-size: 12px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.detail-reporter strong { color: var(--sub); }
.detail-cta  { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-status  { flex: 1; padding: 12px; border-radius: 14px; border: none; cursor: pointer; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; color: #fff; transition: opacity .18s; min-width: 130px; }
.btn-status:hover { opacity: .9; }
.btn-status.searching { background: var(--green); }
.btn-status.found     { background: var(--primary); }
.btn-status svg { width: 16px; height: 16px; }
.btn-approve { flex: 1; padding: 12px; border-radius: 14px; border: none; cursor: pointer; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; background: var(--amber); color: #fff; min-width: 130px; }

/* ── Profile ───────────────────────────────────────────────── */
.profile-wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
.profile-hero { background: linear-gradient(135deg,#ef4444,#dc2626); border-radius: 22px; padding: 22px; margin-bottom: 14px; position: relative; overflow: hidden; }
.profile-hero::before { content: ''; position: absolute; right: -10px; top: -10px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,.1); }
.profile-hero-inner { display: flex; align-items: center; gap: 14px; position: relative; }
.profile-av   { width: 68px; height: 68px; border-radius: 18px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: #fff; border: 3px solid rgba(255,255,255,.4); flex-shrink: 0; overflow: hidden; }
.profile-av img { width: 100%; height: 100%; object-fit: cover; }
.profile-name   { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.3px; }
.profile-email  { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.profile-badge  { display: inline-block; background: rgba(255,255,255,.2); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,.3); }
.profile-stats  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.profile-stat-card  { background: var(--card); border-radius: 16px; padding: 16px; border: 1px solid var(--card-border); text-align: center; }
.profile-stat-num   { font-size: 26px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.profile-stat-label { font-size: 12px; color: var(--sub); font-weight: 600; }
.btn-logout { width: 100%; padding: 13px; border-radius: 14px; border: 1.5px solid #ef444433; background: #ef444411; color: #ef4444; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; transition: background .18s; text-decoration: none; }
.btn-logout:hover { background: #ef444422; }
.btn-logout svg { width: 16px; height: 16px; }

/* ── Admin Panel ───────────────────────────────────────────── */
.aw { max-width: 1020px; margin: 0 auto; padding: 18px 16px; }
@media (max-width: 767px) { .aw { padding: 12px 10px 80px; } }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
@media (max-width: 700px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px) { .stat-cards { grid-template-columns: 1fr 1fr; } }
.sc      { background: var(--card); border-radius: 14px; padding: 14px; border: 1px solid var(--card-border); }
.sc-icon { padding: 7px; border-radius: 9px; display: inline-flex; margin-bottom: 8px; }
.sc-icon svg { width: 18px; height: 18px; }
.sc-num  { font-size: 24px; font-weight: 900; line-height: 1; }
.sc-lbl  { font-size: 11px; color: var(--sub); font-weight: 600; margin-top: 3px; }
.atabs   { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
a.atab  { display: flex; }
.atab    { display: flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 10px; border: none; cursor: pointer; font-weight: 700; font-size: 12px; font-family: inherit; transition: all .18s; white-space: nowrap; flex-shrink: 0; position: relative; }
.atab.active        { background: var(--primary); color: #fff; }
.atab:not(.active)  { background: var(--card); color: var(--sub); border: 1px solid var(--card-border); }
.atab svg { width: 13px; height: 13px; }
.atab .nb { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid var(--bg); }
.apane { display: none; } .apane.active { display: block; }
.asubtabs  { display: flex; gap: 2px; margin-bottom: 12px; border-bottom: 1px solid var(--card-border); overflow-x: auto; }
.asubtab   { padding: 7px 14px; border: none; background: transparent; cursor: pointer; font-weight: 600; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: inherit; transition: all .18s; white-space: nowrap; }
.asubtab.active { color: var(--text); border-bottom-color: var(--primary); }
.asubpane { display: none; } .asubpane.active { display: block; }
.rc  { background: var(--bg); border-radius: 12px; padding: 12px; margin-bottom: 9px; border: 1px solid var(--card-border); }
.rt  { display: flex; align-items: flex-start; gap: 10px; }
.rav { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; flex-shrink: 0; border: 2px solid; overflow: hidden; }
.rav img { width: 100%; height: 100%; object-fit: cover; }
.ri  { flex: 1; min-width: 0; }
.rn  { font-weight: 800; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rm  { font-size: 11px; color: var(--sub); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs  { font-size: 10px; color: var(--muted); margin-top: 2px; }
.ract{ display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.ba  { display: flex; align-items: center; gap: 3px; padding: 5px 10px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; border: none; font-family: inherit; transition: opacity .18s; text-decoration: none; white-space: nowrap; }
.ba:hover { opacity: .8; }
.ba svg   { width: 11px; height: 11px; }
.bg-g     { background: #22c55e22; color: #22c55e; }
.bg-r     { background: #ef444422; color: #ef4444; }
.bg-b     { background: #3b82f622; color: #3b82f6; }
.bg-a     { background: #f59e0b22; color: #f59e0b; }
.bg-p     { background: #8b5cf622; color: #8b5cf6; }
.bg-k     { background: #ec489922; color: #ec4899; }
.bg-gray  { background: var(--card); color: var(--sub); border: 1px solid var(--card-border) !important; }

/* ── Chat Widget ───────────────────────────────────────────── */
#chatWidget { position: fixed; bottom: calc(var(--bottom-h) + 12px); right: 14px; z-index: 500; }
@media (min-width: 768px) { #chatWidget { bottom: 20px; right: 20px; } }
#chatFab { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg,#ef4444,#dc2626); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 20px rgba(239,68,68,.4); transition: transform .2s; position: relative; }
#chatFab:hover { transform: scale(1.08); }
#chatFab svg   { width: 24px; height: 24px; }
.chat-unread-dot { position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.chat-box { position: absolute; bottom: 62px; right: 0; width: 310px; background: var(--card); border-radius: 20px; border: 1px solid var(--card-border); box-shadow: 0 8px 40px rgba(0,0,0,.18); display: none; flex-direction: column; overflow: hidden; transform-origin: bottom right; }
.chat-box.open { display: flex; animation: chatPop .25s cubic-bezier(.34,1.56,.64,1); }
@keyframes chatPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 360px) { .chat-box { width: calc(100vw - 28px); right: -14px; } }
.chat-header { background: linear-gradient(135deg,#ef4444,#dc2626); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.chat-header-left { display: flex; align-items: center; gap: 10px; }
.chat-av     { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.chat-title  { font-weight: 700; font-size: 14px; color: #fff; }
.chat-subtitle { font-size: 11px; color: rgba(255,255,255,.75); }
.chat-close-btn { background: rgba(255,255,255,.2); border: none; border-radius: 8px; cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; color: #fff; }
.chat-messages { padding: 12px; flex: 1; overflow-y: auto; max-height: 240px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg    { display: flex; align-items: flex-end; gap: 6px; }
.chat-msg.bot  { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble   { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.chat-msg.bot .chat-bubble  { background: var(--bg); color: var(--text); border: 1px solid var(--card-border); border-radius: 4px 14px 14px 14px; }
.chat-msg.user .chat-bubble { background: var(--primary); color: #fff; border-radius: 14px 14px 4px 14px; }
.chat-typing-dots { display: flex; gap: 4px; align-items: center; padding: 2px 0; }
.chat-typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typingDot 1.2s infinite; }
.chat-typing-dots span:nth-child(2) { animation-delay: .2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.chat-input-row  { padding: 10px 12px; border-top: 1px solid var(--card-border); display: flex; gap: 6px; align-items: center; }
.chat-input { flex: 1; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--input-border); background: var(--input); color: var(--input-text); font-size: 13px; outline: none; font-family: inherit; transition: border-color .18s; }
.chat-input:focus { border-color: var(--primary); }
.chat-send-btn   { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; transition: opacity .18s; }
.chat-send-btn:hover { opacity: .85; }

/* ── Footer (desktop/tablet only) ─────────────────────────── */
.site-footer { background: var(--card); border-top: 1px solid var(--card-border); display: none; }
@media (min-width: 768px) { .site-footer { display: block; } }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 36px 24px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 28px;
}
@media (max-width: 1000px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; padding: 28px 16px 20px; } }
.footer-col-title { font-size: 11px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-brand-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.footer-brand-icon svg  { width: 18px; height: 18px; }
.footer-brand-name      { font-weight: 800; font-size: 18px; color: var(--primary); letter-spacing: -.5px; }
.footer-tagline { font-size: 13px; color: var(--sub); margin-bottom: 8px; font-style: italic; }
.footer-desc    { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social  { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--card-border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .18s; }
.footer-social:hover { background: var(--primary-light); color: var(--primary-text); border-color: transparent; }
.footer-social svg { width: 15px; height: 15px; }
.footer-links    { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); transition: color .18s; }
.footer-links li a:hover { color: var(--primary); }
.footer-links li a svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-emergency { display: flex; flex-direction: column; gap: 10px; }
.footer-emg-item  { display: flex; align-items: center; gap: 10px; }
.footer-emg-icon  { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-emg-icon svg  { width: 16px; height: 16px; }
.footer-emg-title     { font-size: 11px; color: var(--muted); font-weight: 600; }
.footer-emg-num       { font-size: 14px; font-weight: 800; color: var(--text); font-family: 'Courier New', monospace; }
.footer-bottom        { border-top: 1px solid var(--card-border); }
.footer-bottom-inner  { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy          { font-size: 12px; color: var(--muted); }
.footer-bottom-links  { display: flex; align-items: center; gap: 12px; font-size: 12px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--sub); transition: color .18s; }
.footer-bottom-links a:hover { color: var(--primary); }
.footer-bottom-links span { color: var(--muted); }

/* ── Legal pages ───────────────────────────────────────────── */
.legal-wrap { max-width: 800px; margin: 0 auto; padding: 24px 20px 48px; }
@media (max-width: 767px) { .legal-wrap { padding: 14px 14px 80px; } }
.legal-hero { background: linear-gradient(135deg,#1d4ed8,#1e40af); border-radius: 20px; padding: 26px 22px; margin-bottom: 22px; color: #fff; }
.legal-hero h1 { font-size: 24px; font-weight: 900; margin: 0 0 6px; }
.legal-hero p  { font-size: 13px; color: rgba(255,255,255,.8); margin: 0; }
.legal-card    { background: var(--card); border-radius: 18px; padding: 24px; border: 1px solid var(--card-border); margin-bottom: 12px; }
@media (max-width: 480px) { .legal-card { padding: 14px; } }
.legal-section { margin-bottom: 22px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.legal-section h2 svg  { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.legal-section p, .legal-section li { font-size: 13.5px; color: var(--sub); line-height: 1.85; margin-bottom: 6px; }
.legal-section ul, .legal-section ol { padding-left: 18px; }
.legal-section li::marker { color: var(--primary); }
.legal-toc { background: var(--bg); border-radius: 14px; padding: 16px 20px; border: 1px solid var(--card-border); margin-bottom: 18px; }
.legal-toc-title { font-weight: 800; font-size: 13px; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.legal-toc ol    { padding-left: 16px; }
.legal-toc li    { font-size: 13px; color: var(--sub); padding: 3px 0; }
.legal-toc li a  { color: var(--primary-text); font-weight: 600; }
.legal-last-updated { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 6px; font-style: italic; }

/* ── Misc page wrappers ────────────────────────────────────── */
.donate-wrap, .psearch-wrap, .pay-wrap, .apply-wrap,
.profile-wrap, .admin-wrap, .team-wrap, .legal-wrap,
.form-wrap, .detail-wrap, .dash-wrap, .userdash-wrap { }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInPage { from { opacity: .7; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.main-content { animation: fadeInPage .22s ease; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── Utility ───────────────────────────────────────────────── */
code { background: var(--bg); padding: 2px 6px; border-radius: 5px; font-size: 12px; font-family: 'Courier New', monospace; border: 1px solid var(--card-border); }
/* ── Mobile-only legal links ───────────────────────────────── */
.mobile-legal-links { display: none; }
@media (max-width: 767px) { .mobile-legal-links { display: block; } }

/* ── Guest Chat Form ───────────────────────────────────────── */
#chatGuestForm .chat-input { margin-bottom: 7px; }
#chatGuestForm input:focus { border-color: var(--primary); }

/* ── Rank Badge Images ─────────────────────────────────────── */
.rank-badge-img {
  width: 40px; height: 40px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
  transition: transform .2s;
}
.rank-badge-img:hover { transform: scale(1.1); }
.rank-badge-lg { width: 56px; height: 56px; }
.rank-badge-sm { width: 24px; height: 24px; }
.rank-badge-xs { width: 18px; height: 18px; }
/* Team member card rank strip */
.rank-badge-sm.rank-badge-sm { display: inline-flex; align-items: center; gap: 4px; }
