/* ============================================================
   SoulMatch Africa — Theme
   ============================================================ */
:root {
    --sm-primary: #7b2ff7;
    --sm-primary-2: #f107a3;
    --sm-primary-dark: #5a1fc0;
    --sm-gradient: linear-gradient(135deg, #7b2ff7 0%, #f107a3 100%);
    --sm-ink: #1e1b2e;
    --sm-muted: #6c757d;
    --sm-soft: #f7f5ff;
    --bs-primary: #7b2ff7;
    --bs-primary-rgb: 123, 47, 247;
}

* { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--sm-ink); }

.btn-primary { background: var(--sm-gradient); border: none; }
.btn-primary:hover, .btn-primary:focus { background: var(--sm-primary-dark); filter: brightness(1.05); }
.btn-outline-primary { color: var(--sm-primary); border-color: var(--sm-primary); }
.btn-outline-primary:hover { background: var(--sm-primary); border-color: var(--sm-primary); }
a { color: var(--sm-primary); }
.text-primary { color: var(--sm-primary) !important; }
.bg-primary-soft { background: var(--sm-soft); }
.bg-light-soft { background: #fafafe; }
.text-gradient { background: var(--sm-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.form-control:focus, .form-select:focus { border-color: var(--sm-primary); box-shadow: 0 0 0 .2rem rgba(123,47,247,.15); }
.badge.bg-primary-soft { background: var(--sm-soft) !important; }
.bg-danger-soft { background: #fde8ef; }

/* ---------- Landing ---------- */
.landing-body { background: #fff; }
.navbar-brand { font-size: 1.35rem; }
.hero { padding: 4rem 0 3rem; background: radial-gradient(1200px 500px at 80% -10%, rgba(241,7,163,.08), transparent), var(--sm-soft); }
.hero-badge { background: #fff; color: var(--sm-primary); border: 1px solid rgba(123,47,247,.2); padding: .5rem 1rem; border-radius: 30px; font-weight: 600; }
.hero-collage { position: relative; height: 420px; }
.hero-tile { position: absolute; border-radius: 20px; background-size: cover; background-position: center; box-shadow: 0 15px 40px rgba(0,0,0,.15); }
.hero-tile-1 { width: 55%; height: 62%; top: 0; left: 0; z-index: 2; }
.hero-tile-2 { width: 42%; height: 45%; top: 8%; right: 0; }
.hero-tile-3 { width: 40%; height: 42%; bottom: 0; left: 8%; }
.hero-tile-4 { width: 50%; height: 50%; bottom: 0; right: 0; z-index: 2; }
.hero-float-card { position: absolute; bottom: 32%; left: 38%; background: #fff; padding: .75rem 1rem; border-radius: 16px; z-index: 3; }
.compat-ring { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sm-gradient); color: #fff; font-weight: 700; font-size: .85rem; }

.stats-band { background: var(--sm-gradient); color: #fff; padding: 2.5rem 0; }
.stat-num { font-size: 2.2rem; font-weight: 800; }
.stat-label { opacity: .9; font-size: .9rem; }

.step-card { padding: 2rem 1.25rem; border-radius: 18px; background: #fff; border: 1px solid #f0edff; transition: .25s; }
.step-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(123,47,247,.12); }
.step-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sm-soft); color: var(--sm-primary); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto; }
.step-num { color: var(--sm-primary); font-weight: 700; font-size: .8rem; }

.join-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #f0edff; transition: .2s; }
.join-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.join-photo { height: 180px; background-size: cover; background-position: center; position: relative; }

.feature-check { color: var(--sm-primary); font-size: 1.6rem; }
.why-visual { display: grid; place-items: center; min-height: 260px; background: var(--sm-soft); border-radius: 24px; }
.why-card { background: #fff; padding: 2rem; border-radius: 18px; max-width: 300px; text-align: center; }

.story-card { background: #fff; border-radius: 18px; padding: 1.75rem; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.story-quote { font-size: 2rem; color: var(--sm-primary-2); opacity: .3; }
.story-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sm-gradient); color: #fff; display: grid; place-items: center; }

.cta-band { background: var(--sm-gradient); color: #fff; padding: 4rem 0; }
.page-hero { background: var(--sm-soft); padding: 3rem 0; }

.footer-main { background: #14101f; color: #cfc9dd; }
.footer-main a { color: #cfc9dd; text-decoration: none; }
.footer-main a:hover { color: #fff; }
.footer-main h5, .footer-main h6 { color: #fff; }

/* ---------- Auth ---------- */
.auth-body { background: var(--sm-soft); }
.auth-wrap { display: flex; min-height: 100vh; }
.auth-brand-side { flex: 1; background: var(--sm-gradient); color: #fff; align-items: center; padding: 3rem; }
.auth-brand-inner { max-width: 420px; margin: auto; }
.auth-benefits li { padding: .5rem 0; font-size: 1.05rem; }
.auth-benefits i { margin-right: .6rem; }
.auth-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-form-inner { width: 100%; max-width: 440px; background: #fff; padding: 2.5rem; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.otp-input { letter-spacing: .8rem; font-size: 1.8rem; font-weight: 700; }
.verify-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--sm-soft); color: var(--sm-primary); display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto; }
.demo-credentials { background: var(--sm-soft); border-radius: 12px; padding: .85rem 1rem; }
.demo-credentials code { color: var(--sm-primary-2); }

/* ---------- App shell ---------- */
.app-body, .admin-body { background: #f4f2fb; }
.app-topbar { background: var(--sm-gradient); }
.admin-topbar { background: #14101f; }
.app-shell { display: flex; min-height: calc(100vh - 56px); }
.app-sidebar, .admin-sidebar { width: 250px; background: #fff; border-right: 1px solid #ececf5; padding: 1rem 0; position: sticky; top: 56px; height: calc(100vh - 56px); }
.sidebar-scroll { overflow-y: auto; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; color: #55516b; text-decoration: none; font-weight: 500; border-left: 3px solid transparent; }
.sidebar-link:hover { background: var(--sm-soft); color: var(--sm-primary); }
.sidebar-link.active { background: var(--sm-soft); color: var(--sm-primary); border-left-color: var(--sm-primary); }
.sidebar-link i { font-size: 1.1rem; }
.app-main { flex: 1; min-width: 0; }
.avatar-sm { width: 32px; height: 32px; object-fit: cover; }
.premium-cta { background: var(--sm-gradient); color: #fff; padding: 1.25rem; border-radius: 16px; }
.premium-badge-box { background: linear-gradient(135deg,#ffd700,#ff8c00); color: #fff; padding: .75rem; border-radius: 12px; font-weight: 600; }

/* ---------- Member cards ---------- */
.member-card { border-radius: 16px; overflow: hidden; transition: .2s; }
.member-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.1) !important; }
.member-photo { height: 210px; background-size: cover; background-position: center; position: relative; background-color: #eee; }
.member-photo.blurred { filter: blur(10px); }
.compat-badge { position: absolute; top: 10px; left: 10px; background: var(--sm-gradient); color: #fff; font-weight: 700; }
.verified-badge { position: absolute; top: 10px; right: 10px; background: var(--sm-primary); color: #fff; }
.online-dot { width: 12px; height: 12px; background: #22c55e; border: 2px solid #fff; border-radius: 50%; display: inline-block; }
.member-photo .online-dot { position: absolute; bottom: 10px; right: 10px; }
.btn-xs { padding: .15rem .4rem; font-size: .75rem; }

/* ---------- Profile page ---------- */
.profile-hero-photo { height: 360px; background-size: cover; background-position: center; position: relative; border-radius: 16px 16px 0 0; background-color: #eee; }
.compat-overlay { position: absolute; bottom: 12px; left: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); text-align: center; }
.compat-ring-lg { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--sm-gradient); font-weight: 800; font-size: 1.3rem; margin: 0 auto; }
.online-badge { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.5); }
.profile-detail { display: flex; gap: .75rem; align-items: center; }
.profile-detail i { font-size: 1.3rem; color: var(--sm-primary); width: 28px; }
.interest-chip { background: var(--sm-soft); color: var(--sm-primary); font-weight: 500; padding: .5rem .85rem; }
.gallery-thumb { height: 90px; background-size: cover; background-position: center; border-radius: 10px; background-color: #eee; }

/* ---------- Profile edit photos ---------- */
.photo-thumb { position: relative; aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 10px; background-color: #eee; border: 2px solid transparent; }
.photo-thumb.is-main { border-color: var(--sm-primary); }
.main-tag { position: absolute; top: 4px; left: 4px; background: var(--sm-primary); color: #fff; font-size: .65rem; padding: 1px 6px; border-radius: 6px; }
.private-tag { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .65rem; padding: 1px 5px; border-radius: 6px; }
.photo-actions { position: absolute; bottom: 4px; right: 4px; display: flex; gap: 3px; }

/* ---------- Stat tiles ---------- */
.stat-tile { display: block; background: #fff; border-radius: 16px; padding: 1.25rem; text-align: center; color: var(--sm-ink); transition: .2s; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.stat-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); color: var(--sm-ink); }
.stat-tile i { font-size: 1.7rem; }
.stat-tile-value { font-size: 1.7rem; font-weight: 800; }
.stat-tile-label { color: var(--sm-muted); font-size: .85rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--sm-muted); }
.empty-state i { font-size: 3rem; opacity: .35; display: block; margin-bottom: .75rem; }
.upgrade-banner { background: var(--sm-gradient); color: #fff; padding: 1.5rem; border-radius: 16px; }

/* ---------- Chat ---------- */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 120px); border-radius: 16px; overflow: hidden; }
.chat-header { display: flex; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid #eee; background: #fff; }
.conv-avatar { width: 46px; height: 46px; object-fit: cover; }
.conv-dot { position: absolute; bottom: 0; right: 0; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.25rem; background: #f4f2fb; display: flex; flex-direction: column; gap: .5rem; }
.chat-msg { display: flex; }
.chat-msg.mine { justify-content: flex-end; }
.chat-bubble { max-width: 72%; padding: .6rem .9rem; border-radius: 16px; position: relative; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chat-msg.mine .chat-bubble { background: var(--sm-gradient); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.theirs .chat-bubble { border-bottom-left-radius: 4px; }
.chat-time { display: block; font-size: .68rem; opacity: .7; margin-top: 2px; text-align: right; }
.chat-footer { padding: .85rem 1rem; border-top: 1px solid #eee; background: #fff; display: flex; }
.chat-send { width: 44px; height: 44px; flex-shrink: 0; }

/* ---------- Premium plans ---------- */
.plan-card { border-radius: 18px; transition: .25s; position: relative; overflow: hidden; }
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(123,47,247,.15) !important; }
.plan-popular { border: 2px solid var(--sm-primary) !important; }
.plan-ribbon { position: absolute; top: 14px; right: -34px; background: var(--sm-gradient); color: #fff; padding: 4px 40px; transform: rotate(45deg); font-size: .72rem; font-weight: 700; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--sm-primary); margin: .5rem 0 1rem; }
.plan-period { font-size: .9rem; color: var(--sm-muted); font-weight: 500; }
.plan-features { list-style: none; padding: 0; }
.plan-features li { padding: .4rem 0; font-size: .9rem; }
.gateway-option { display: block; border: 1px solid #dee2e6; border-radius: 10px; padding: .6rem .75rem; cursor: pointer; font-size: .9rem; }
.gateway-option:has(input:checked) { border-color: var(--sm-primary); background: var(--sm-soft); }

/* ---------- Admin ---------- */
.admin-stat-card { background: #fff; border-radius: 14px; padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.admin-stat-card i { font-size: 2rem; opacity: .8; }
.admin-stat-value { font-size: 1.5rem; font-weight: 800; }
.admin-stat-label { color: var(--sm-muted); font-size: .82rem; }
.verif-doc { height: 110px; background-size: cover; background-position: center; border-radius: 8px; background-color: #eee; border: 1px solid #ddd; }

/* ---------- Notifications ---------- */
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { text-decoration: none; color: var(--sm-ink); border-bottom: 1px solid #f2f0fa; }
.notif-item:hover { background: var(--sm-soft); color: var(--sm-ink); }
.notif-item.unread { background: #f3ecff; }
.notif-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--sm-soft); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.notif-dropdown { border: none; }

/* ---------- Boost ---------- */
.boost-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sm-gradient); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto; }
.member-photo .boost-flag { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#ffd700,#ff8c00); color: #fff; font-size: .65rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; }

/* ---------- Swipe deck ---------- */
.swipe-page { max-width: 460px; margin: 0 auto; }
.swipe-deck-wrap { position: relative; height: min(68vh, 580px); margin-bottom: 1rem; }
.swipe-deck { position: relative; width: 100%; height: 100%; }
.swipe-card {
    position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
    background: #eee; box-shadow: 0 12px 40px rgba(0,0,0,.18);
    will-change: transform; cursor: grab;
    transition: transform .3s ease, opacity .3s ease;
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.swipe-card img, .card-photo { -webkit-user-drag: none; user-drag: none; }
.swipe-card.is-top { cursor: grab; }
.swipe-card.is-top:active { cursor: grabbing; }
.card-photo { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; }
.card-gradient {
    position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding: 3rem 1.15rem 1.15rem;
    background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.35) 55%, transparent);
}
.card-sub { font-size: .9rem; opacity: .92; }
.card-meta { font-size: .82rem; opacity: .9; display: inline-block; margin-top: 2px; }
.card-bio { font-size: .85rem; opacity: .92; margin: .4rem 0 .5rem; }
.card-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.card-chip { background: rgba(255,255,255,.22); backdrop-filter: blur(4px); font-size: .72rem; padding: .2rem .6rem; border-radius: 20px; }
.compat-pill { background: var(--sm-gradient); font-weight: 700; font-size: .82rem; padding: .2rem .6rem; border-radius: 20px; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: .4rem; }
.card-badge { font-size: .72rem; padding: .25rem .55rem; border-radius: 8px; font-weight: 700; }
.badge-boost { background: linear-gradient(135deg,#ffd700,#ff8c00); color: #fff; }
.badge-verified { background: var(--sm-primary); color: #fff; }
.photo-dots { position: absolute; top: 10px; left: 0; right: 0; display: flex; gap: 4px; justify-content: center; padding: 0 12px; z-index: 3; }
.photo-dots span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); }
.photo-dots span.on { background: #fff; }
.photo-tap { position: absolute; top: 0; bottom: 30%; width: 45%; z-index: 2; }
.photo-tap.left { left: 0; } .photo-tap.right { right: 0; }
.stamp {
    position: absolute; top: 40px; font-size: 2rem; font-weight: 900; letter-spacing: 2px;
    padding: .3rem 1rem; border: 5px solid; border-radius: 12px; opacity: 0; z-index: 4; text-transform: uppercase;
}
.stamp-like { right: 20px; color: #22c55e; border-color: #22c55e; transform: rotate(18deg); }
.stamp-nope { left: 20px; color: #ef4444; border-color: #ef4444; transform: rotate(-18deg); }
.stamp-super { left: 50%; transform: translateX(-50%); color: #3b82f6; border-color: #3b82f6; top: 50%; }

.swipe-actions { display: flex; justify-content: center; align-items: center; gap: .9rem; }
.swipe-btn {
    width: 56px; height: 56px; border-radius: 50%; border: none; background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.12); font-size: 1.4rem; display: grid; place-items: center;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.swipe-btn:hover { transform: translateY(-3px) scale(1.06); }
.swipe-btn:active { transform: scale(.94); }
.btn-rewind { width: 46px; height: 46px; font-size: 1.1rem; color: #f5b301; }
.btn-pass { color: #ef4444; }
.btn-super { width: 46px; height: 46px; font-size: 1.15rem; color: #3b82f6; }
.btn-like { color: #22c55e; }
.btn-info-view { width: 46px; height: 46px; font-size: 1.1rem; color: var(--sm-primary); }
.deck-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.deck-empty i { font-size: 3.5rem; color: var(--sm-primary); opacity: .4; }
.deck-empty .btn { margin: .25rem; }

/* Match overlay */
.match-overlay {
    position: fixed; inset: 0; z-index: 2000; background: linear-gradient(160deg, rgba(123,47,247,.97), rgba(241,7,163,.97));
    display: none; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 1rem;
}
.match-overlay.show { display: flex; animation: fadeIn .3s; }
.match-title { font-size: 2.6rem; font-weight: 800; }
.match-photos { display: flex; justify-content: center; gap: -10px; margin-top: 1.5rem; }
.match-photo { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; margin: 0 -12px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Map */
#nearbyMap { height: min(70vh, 600px); border-radius: 16px; z-index: 1; background: #e8eaf0; }
.leaflet-container { border-radius: 16px; font-family: inherit; }
.map-pin-photo { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.leaflet-popup-content { text-align: center; margin: 10px 12px; }

/* ---------- Call room ---------- */
.call-room { position: fixed; inset: 0; background: #14101f; z-index: 1500; overflow: hidden; }
.remote-video { width: 100%; height: 100%; object-fit: cover; background: #14101f; }
.local-video { position: absolute; right: 16px; top: 16px; width: 120px; height: 160px; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.5); box-shadow: 0 6px 20px rgba(0,0,0,.4); z-index: 3; background:#000; }
.call-remote-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; z-index: 2; }
.call-avatar { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.3); animation: callpulse 2s infinite; }
@keyframes callpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(123,47,247,.5); } 50% { box-shadow: 0 0 0 22px rgba(123,47,247,0); } }
.call-status { opacity: .8; }
.call-topbar { position: absolute; top: 16px; left: 16px; display: flex; gap: .5rem; align-items: center; z-index: 3; color: #fff; }
.call-timer { background: rgba(0,0,0,.4); padding: .25rem .7rem; border-radius: 20px; font-variant-numeric: tabular-nums; }
.call-type-badge { background: rgba(0,0,0,.4); padding: .25rem .7rem; border-radius: 20px; font-size: .85rem; }
.call-controls { position: absolute; bottom: 32px; left: 0; right: 0; display: flex; justify-content: center; gap: 1.1rem; z-index: 4; }
.call-ctrl { width: 60px; height: 60px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 1.35rem; cursor: pointer; backdrop-filter: blur(6px); transition: transform .15s; }
.call-ctrl:hover { transform: scale(1.08); }
.call-ctrl.off { background: #fff; color: #14101f; }
.call-hangup { background: #ef4444; }
.call-hangup:hover { background: #dc2626; }

/* Incoming call modal */
.incoming-call { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2500; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.25); padding: 1rem 1.25rem; display: none; align-items: center; gap: 1rem; min-width: 320px; }
.incoming-call.show { display: flex; animation: fadeIn .25s; }
.incoming-call img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.incoming-actions { display: flex; gap: .5rem; margin-left: auto; }
.incoming-actions button { width: 44px; height: 44px; border-radius: 50%; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.ic-accept { background: #22c55e; } .ic-decline { background: #ef4444; }

/* ---------- Admin pro nav ---------- */
.admin-sidebar, .admin-sidebar-mobile { background: #14101f; }
.admin-sidebar { width: 250px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow: hidden; padding: 0; }
.admin-nav-scroll { height: 100%; overflow-y: auto; padding: .5rem 0 2rem; }
.admin-nav-scroll::-webkit-scrollbar { width: 6px; }
.admin-nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.admin-nav-group { color: #7a7490; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 1rem 1.5rem .35rem; }
.admin-sidebar .sidebar-link, .admin-sidebar-mobile .sidebar-link { color: #b8b3c9; padding: .6rem 1.5rem; border-left: 3px solid transparent; font-size: .92rem; }
.admin-sidebar .sidebar-link:hover, .admin-sidebar-mobile .sidebar-link:hover { background: rgba(123,47,247,.15); color: #fff; }
.admin-sidebar .sidebar-link.active, .admin-sidebar-mobile .sidebar-link.active { background: rgba(123,47,247,.25); color: #fff; border-left-color: var(--sm-primary-2); }
.admin-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sm-gradient); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* ---------- Admin content helpers ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.page-head h3 { margin: 0; }
.admin-card { background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.kpi { background: #fff; border-radius: 14px; padding: 1.1rem 1.25rem; box-shadow: 0 4px 14px rgba(0,0,0,.04); position: relative; overflow: hidden; }
.kpi .kpi-val { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.kpi .kpi-lbl { color: var(--sm-muted); font-size: .82rem; }
.kpi .kpi-ico { position: absolute; right: 1rem; top: 1rem; font-size: 1.6rem; opacity: .85; }
.setting-tab-link { cursor: pointer; }
.badge-emoji { font-size: 1.4rem; }
.gift-emoji { font-size: 1.8rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
.toggle-pill .form-check-input { width: 2.4em; height: 1.3em; }
.env-chip { font-size: .72rem; padding: .2rem .5rem; border-radius: 6px; }

/* ---------- Flash ---------- */
.flash-stack { position: relative; z-index: 20; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hero-collage { height: 300px; }
    .app-sidebar, .admin-sidebar { display: none; }
    .chat-wrap { height: calc(100vh - 100px); }
}
