/* Shared Sparks feature styles (profiles, matches, DMs, admin). Matches the existing neon-glass look. */
:root {
  --bg:#0B0F1A; --bg2:#12182B; --glass:rgba(255,255,255,0.06); --border:rgba(255,255,255,0.12);
  --text:#fff; --muted:#B8C0D9; --pink:#FF2D95; --violet:#8B5CFF; --cyan:#2DE2E6;
  --orange:#FF7A18; --lime:#B6FF3B; --danger:#FF4D6D;
}
.admin-pill {
  display:inline-flex; align-items:center; gap:3px; vertical-align:middle;
  margin-left:6px; padding:2px 7px; border-radius:999px;
  font-size:0.6rem; font-weight:800; letter-spacing:0.12em; line-height:1.4;
  color:#0B0F1A; background:linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow:0 0 12px rgba(182,255,59,0.55); white-space:nowrap; text-shadow:none;
  -webkit-text-fill-color:#0B0F1A;
}
.admin-pill::before { content:"✓"; font-weight:900; }
.sp-notice {
  margin:14px 0; padding:14px 16px; border-radius:14px; font-size:0.88rem; line-height:1.45;
  background:rgba(139,92,255,0.12); border:1px solid rgba(139,92,255,0.4); color:#e8deff;
}
.sp-notice.err { background:rgba(255,77,109,0.14); border-color:rgba(255,77,109,0.4); color:#ffc2cd; }
.sp-notice.ok { background:rgba(182,255,59,0.1); border-color:rgba(182,255,59,0.35); color:var(--lime); }
.sp-notice a { color:var(--cyan); font-weight:600; text-decoration:none; }
.sp-btn {
  display:inline-block; border:none; border-radius:999px; padding:12px 18px; cursor:pointer;
  font-family:inherit; font-weight:700; font-size:0.9rem; color:#fff; text-decoration:none; text-align:center;
  background:linear-gradient(135deg, var(--pink), var(--violet)); box-shadow:0 8px 28px rgba(255,45,149,0.3);
}
.sp-btn.ghost { background:var(--glass); border:1px solid var(--border); box-shadow:none; color:var(--text); font-weight:600; }
.sp-btn.danger { background:rgba(255,77,109,0.18); border:1px solid rgba(255,77,109,0.5); box-shadow:none; color:#ffc2cd; }
.sp-btn.small { padding:6px 12px; font-size:0.75rem; }
.sp-btn:disabled { opacity:0.5; cursor:not-allowed; }
.sp-avatar {
  width:44px; height:44px; border-radius:50%; flex:none; object-fit:cover;
  background:linear-gradient(135deg, var(--violet), var(--cyan)); border:2px solid rgba(255,255,255,0.2);
  display:grid; place-items:center; font-weight:700; color:#fff; overflow:hidden;
}
.sp-avatar img { width:100%; height:100%; object-fit:cover; }
.sp-avatar.admin { border-color:var(--lime); box-shadow:0 0 14px rgba(182,255,59,0.5); }

/* ---------- Shared page shell for classifieds + content pages ---------- */
.sp-page { font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100dvh; margin: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,45,149,0.32), transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(139,92,255,0.32), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(45,226,230,0.16), transparent 50%);
  background-attachment: fixed; }
.sp-page *, .sp-page *::before, .sp-page *::after { box-sizing: border-box; }
.sp-wrap { max-width: 720px; margin: 0 auto; padding: 12px 16px 110px; }
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 16px; }
.sp-logo { font-weight: 700; letter-spacing: 0.12em; font-size: 1.1rem; text-decoration: none;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-back { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.sp-card { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); margin-bottom: 12px; }
.sp-kicker { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase; }
.sp-h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 8px 0 10px; }
.sp-grad { background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-lead { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.sp-prose { color: #d9deef; font-size: 0.95rem; line-height: 1.65; }
.sp-prose h2 { color: #fff; font-size: 1.1rem; margin: 22px 0 6px; }
.sp-prose h3 { color: #fff; font-size: 0.98rem; margin: 16px 0 4px; }
.sp-prose p { margin: 0 0 10px; }
.sp-prose ul { margin: 0 0 12px 18px; padding: 0; }
.sp-prose li { margin: 4px 0; }
.sp-prose a, .sp-link { color: var(--cyan); text-decoration: none; font-weight: 600; }
.sp-muted { color: var(--muted); font-size: 0.8rem; }
.sp-rules { list-style: none; margin: 0; padding: 0; }
.sp-rules li { background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 8px; }
.sp-rules li strong { display: block; color: var(--pink); margin-bottom: 4px; }
.sp-rules li span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.sp-footer { margin-top: 28px; padding: 18px 0 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; line-height: 1.6; }
.sp-footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.sp-footer a { color: var(--muted); text-decoration: none; }
.sp-footer a:hover { color: var(--cyan); }
.sp-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* chips + forms */
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(0,0,0,0.25);
  color: var(--muted); font-size: 0.75rem; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: none; }
.sp-chip.on { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(45,226,230,0.25); }
.sp-tag { font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: rgba(139,92,255,0.25); border: 1px solid rgba(139,92,255,0.45); color: #e8deff; }
.sp-tag.cat { background: rgba(255,45,149,0.18); border-color: rgba(255,45,149,0.45); color: #ffd1e8; }
.sp-field { margin-bottom: 14px; }
.sp-field label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.sp-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0,0,0,0.28);
  color: var(--text); font-size: 0.95rem; font-family: inherit; outline: none; }
.sp-input:focus { border-color: rgba(139,92,255,0.55); box-shadow: 0 0 0 3px rgba(139,92,255,0.2); }
textarea.sp-input { min-height: 140px; resize: vertical; }
select.sp-input option { background: #12182B; }
.sp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ad cards */
.ad-card { display: flex; gap: 12px; text-decoration: none; color: var(--text); }
.ad-thumb { width: 84px; height: 84px; flex: none; border-radius: 12px; object-fit: cover; border: 1px solid var(--border);
  background: linear-gradient(135deg, #3a1a4a, #1a3a4a 50%, #4a1a3a); display: grid; place-items: center; font-size: 1.6rem; overflow: hidden; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-card h3 { font-size: 1rem; margin: 0 0 4px; line-height: 1.3; }
.ad-card p { font-size: 0.84rem; color: var(--muted); margin: 0 0 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-meta { font-size: 0.72rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 6px; }
.ad-photo { width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); margin-bottom: 12px; }

/* bottom nav (shared) */
nav.sp-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(390px, 100%); display: flex;
  justify-content: space-around; padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,15,26,0.88); border-top: 1px solid var(--border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 30; }
nav.sp-nav a { text-decoration: none; color: var(--muted); font-size: 0.65rem; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 500; }
nav.sp-nav a.active { color: var(--pink); text-shadow: 0 0 12px rgba(255,45,149,0.5); }
nav.sp-nav .ni { font-size: 1.2rem; }

/* report sheet */
.sp-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,0.65); display: flex; align-items: flex-end; justify-content: center; }
.sp-sheet { width: min(420px, 100%); max-height: 92dvh; overflow-y: auto; background: #12182B; border: 1px solid var(--border);
  border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); color: var(--text); font-family: Inter, system-ui, sans-serif; }
@media (min-width: 640px) { .sp-modal { align-items: center; } .sp-sheet { border-radius: 20px; } }
.sp-sheet h2 { font-size: 1.15rem; margin: 0 0 4px; }
.sp-sheet .sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; line-height: 1.4; }
.sp-reason { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 6px; cursor: pointer; font-size: 0.9rem; background: rgba(0,0,0,0.2); }
.sp-reason input { margin-top: 2px; accent-color: var(--pink); }
.sp-reason small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.sp-reason.on { border-color: var(--pink); box-shadow: 0 0 12px rgba(255,45,149,0.25); }
.sp-sheet textarea { width: 100%; min-height: 90px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(0,0,0,0.28); color: var(--text); font-family: inherit; font-size: 0.9rem; resize: vertical; }
.sp-sheet .row { display: flex; gap: 8px; margin-top: 14px; }
.sp-sheet .row .sp-btn { flex: 1; }
.msg-flag { background: none; border: none; color: var(--muted); font-size: 0.68rem; cursor: pointer; padding: 2px 0 0; font-family: inherit; opacity: 0.7; display: block; }
.msg-flag:hover { color: #ffb3c1; opacity: 1; }
