/* Lost & Found — Midnight Aurora theme */
:root {
  --lf-lost:  #ef4444;
  --lf-found: #10b981;
  --lf-badge-lost:  rgba(239,68,68,.12);
  --lf-badge-found: rgba(16,185,129,.12);
}

.lf-wrap { max-width: 560px; margin: 0 auto; padding: 0 0 80px; }

/* Hero */
.lf-hero { background: linear-gradient(135deg,#a855f7,#10b981);
  border-radius: 0 0 28px 28px; padding: 24px 20px 28px; text-align: center;
  color: #fff; margin-bottom: 0; }
.lf-hero h1 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.lf-hero p  { font-size: 13px; opacity: .85; margin: 0; }
.lf-hero-icon { width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 24px; margin: 0 auto 12px; }

/* Tabs */
.lf-tabs { display: flex; gap: 6px; padding: 14px 16px 8px;
  overflow-x: auto; scrollbar-width: none; }
.lf-tabs::-webkit-scrollbar { display: none; }
.lf-tab { flex-shrink: 0; padding: 8px 16px; border-radius: 20px; border: none;
  background: var(--border,#e2e8f0); color: var(--text,#1e293b);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.lf-tab.active { background: linear-gradient(135deg,#a855f7,#10b981);
  color: #fff; }

/* Filter bar */
.lf-filters { display: flex; gap: 8px; padding: 0 16px 10px; flex-wrap: wrap; }
.lf-filters select { flex: 1; min-width: 120px; padding: 8px 10px;
  border-radius: 10px; border: 1px solid var(--border,#e2e8f0);
  background: var(--card-bg,#fff); font-size: 13px; color: var(--text,#1e293b); }
.lf-search { display: flex; gap: 8px; padding: 0 16px 12px; }
.lf-search input { flex: 1; }
.lf-search button { padding: 10px 16px; border: none; border-radius: 10px;
  background: linear-gradient(135deg,#a855f7,#10b981); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer; }

/* Item card */
.lf-item { background: var(--card-bg,#fff); border-radius: 16px;
  padding: 14px 16px; margin: 0 16px 10px;
  border: 1px solid var(--border,#e2e8f0); cursor: pointer;
  transition: transform .15s, box-shadow .15s; }
.lf-item:hover { transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168,85,247,.12); }
.lf-item-top { display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 6px; }
.lf-item-title { font-weight: 700; font-size: 15px; flex: 1; margin-right: 8px; }
.lf-badge { font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 10px; white-space: nowrap; }
.lf-badge.lost  { background: var(--lf-badge-lost);  color: var(--lf-lost); }
.lf-badge.found { background: var(--lf-badge-found); color: var(--lf-found); }
.lf-badge.claimed { background: rgba(168,85,247,.12); color: #a855f7; }
.lf-badge.closed  { background: rgba(100,116,139,.1); color: #64748b; }
.lf-badge.priority { background: rgba(245,158,11,.12); color: #f59e0b; }
.lf-item-meta { font-size: 12px; color: var(--muted,#64748b);
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.lf-item-meta i { margin-right: 3px; }
.lf-item-desc { font-size: 13px; color: var(--muted,#64748b);
  margin-top: 6px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }

/* Detail panel */
.lf-detail { background: var(--card-bg,#fff); border-radius: 20px 20px 0 0;
  padding: 20px 20px 80px; min-height: 60vh; }
.lf-detail-back { display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--purple,#a855f7); font-weight: 700;
  cursor: pointer; margin-bottom: 16px; background: none; border: none; }
.lf-detail h2 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.lf-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.lf-detail-section { margin-bottom: 14px; }
.lf-detail-label { font-size: 11px; font-weight: 700; color: var(--muted,#64748b);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.lf-detail-value { font-size: 14px; font-weight: 600; }
.lf-contact-locked { display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: rgba(168,85,247,.07);
  border: 1px dashed rgba(168,85,247,.3); border-radius: 12px;
  font-size: 13px; color: var(--muted,#64748b); }
.lf-contact-locked i { color: #a855f7; }
.lf-contact-locked a { color: #a855f7; font-weight: 700; margin-left: 4px; }

/* Form */
.lf-form-card { background: var(--card-bg,#fff); border-radius: 16px;
  padding: 18px; margin: 0 16px 12px;
  border: 1px solid var(--border,#e2e8f0); }
.lf-form-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px; }
.lf-type-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.lf-type-btn { flex: 1; padding: 10px; border-radius: 12px; border: 2px solid var(--border,#e2e8f0);
  background: transparent; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .15s; color: var(--text,#1e293b); }
.lf-type-btn.lost.active  { border-color: var(--lf-lost);  background: var(--lf-badge-lost);  color: var(--lf-lost); }
.lf-type-btn.found.active { border-color: var(--lf-found); background: var(--lf-badge-found); color: var(--lf-found); }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 700;
  color: var(--muted,#64748b); margin-bottom: 5px; text-transform: uppercase;
  letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border,#e2e8f0);
  background: var(--card-bg,#fff); font-size: 14px;
  color: var(--text,#1e293b); box-sizing: border-box; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.optional { font-weight: 400; opacity: .6; }
.btn-primary { width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: linear-gradient(135deg,#a855f7,#10b981); color: #fff;
  font-size: 15px; font-weight: 800; cursor: pointer; margin-top: 4px; }
.btn-secondary { padding: 10px 18px; border: 1.5px solid var(--purple,#a855f7);
  border-radius: 12px; background: transparent;
  color: var(--purple,#a855f7); font-size: 13px; font-weight: 700; cursor: pointer; }

/* Premium teaser */
.lf-premium-teaser { text-align: center; padding: 20px 16px;
  background: rgba(168,85,247,.05); border-radius: 16px;
  margin: 0 16px 12px; border: 1px dashed rgba(168,85,247,.25); }
.lf-premium-teaser i { font-size: 28px; color: #a855f7; margin-bottom: 8px; display: block; }
.lf-premium-teaser p { font-size: 13px; color: var(--muted,#64748b); margin: 0 0 10px; }
.lf-premium-teaser a { color: #a855f7; font-weight: 700; }

/* Empty state */
.lf-empty { text-align: center; padding: 50px 16px; color: var(--muted,#64748b); }
.lf-empty i { font-size: 40px; opacity: .3; margin-bottom: 12px; display: block; }
.lf-empty p { font-size: 14px; }

/* Toast */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600; opacity: 0; transition: all .3s;
  z-index: 9999; white-space: nowrap; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #ef4444; }

/* Load more */
.btn-load-more { display: block; margin: 0 auto 16px; padding: 10px 28px;
  border: 1.5px solid var(--purple,#a855f7); border-radius: 20px;
  background: transparent; color: var(--purple,#a855f7);
  font-size: 13px; font-weight: 700; cursor: pointer; }

/* Dark mode */
html.dark-mode .lf-item,
html.dark-mode .lf-form-card,
html.dark-mode .lf-detail { background: #1e293b; border-color: #334155; }
html.dark-mode .lf-filters select,
html.dark-mode .form-group input,
html.dark-mode .form-group select,
html.dark-mode .form-group textarea { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html.dark-mode .lf-tab { background: #1e293b; color: #e2e8f0; }
html.dark-mode .lf-type-btn { border-color: #334155; color: #e2e8f0; }

/* ── People ─────────────────────────────────────────────────────── */
.lf-badge.missing     { background: rgba(239,68,68,.12);   color: #ef4444; }
.lf-badge.found_person{ background: rgba(16,185,129,.12);  color: #10b981; }
.lf-badge.wanted      { background: rgba(245,158,11,.12);  color: #f59e0b; }

.lf-person-avatar {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg,#a855f7,#10b981);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: 900;
}
.lf-person-card { display: flex; gap: 12px; align-items: flex-start; }
.lf-person-info { flex: 1; min-width: 0; }
.lf-person-name { font-size: 15px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-person-sub  { font-size: 12px; color: var(--muted,#64748b);
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 3px; }

.people-type-toggle { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.people-type-btn { flex: 1; min-width: 90px; padding: 9px 6px;
  border-radius: 12px; border: 2px solid var(--border,#e2e8f0);
  background: transparent; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s; color: var(--text,#1e293b); }
.people-type-btn.missing.active      { border-color: #ef4444; background: rgba(239,68,68,.1);   color: #ef4444; }
.people-type-btn.found_person.active { border-color: #10b981; background: rgba(16,185,129,.1);  color: #10b981; }
.people-type-btn.wanted.active       { border-color: #f59e0b; background: rgba(245,158,11,.1);  color: #f59e0b; }

.urgency-banner { background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25); border-radius: 12px;
  padding: 10px 14px; font-size: 12px; color: #ef4444;
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }


/* === migrated from lostfound/upgrade.html === */
.upgrade-wrap { max-width: 480px; margin: 0 auto; padding: 20px 16px 80px; }
    .upgrade-hero { text-align:center; padding: 30px 20px; background: linear-gradient(135deg,#f59e0b,#a855f7); border-radius: 24px; color:#fff; margin-bottom: 24px; }
    .upgrade-hero i { font-size:48px; margin-bottom:12px; display:block; }
    .upgrade-hero h1 { font-size:22px; font-weight:900; margin-bottom:6px; }
    .upgrade-hero p  { font-size:14px; opacity:.9; }
    .price-badge { display:inline-block; background:rgba(255,255,255,.2); border-radius:20px; padding:8px 22px; font-size:20px; font-weight:900; margin-top:12px; }
    .features-list { background:var(--card-bg,#fff); border-radius:16px; padding:18px; border:1px solid var(--border,#e2e8f0); margin-bottom:20px; }
    .features-list h3 { font-size:15px; font-weight:800; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
    .feature-item { display:flex; align-items:flex-start; gap:10px; margin-bottom:12px; font-size:14px; }
    .feature-item i { color:#10b981; margin-top:2px; flex-shrink:0; }
    .btn-upgrade { width:100%; padding:15px; border:none; border-radius:14px; background:linear-gradient(135deg,#f59e0b,#a855f7); color:#fff; font-size:16px; font-weight:900; cursor:pointer; }
    .btn-back { display:block; text-align:center; margin-top:14px; color:var(--muted,#64748b); font-size:13px; text-decoration:none; }
    html.dark-mode .features-list { background:#1e293b; border-color:#334155; }
