/* === Depictr Main Revamp === */
:root {
  --bg:#0b0b0f; --panel:#11121a; --line:rgba(255,255,255,.1);
  --text:#e7e9ee; --muted:#9aa3b2; --accent:#6EE7B7; --danger:#ef4444;
}
html, body { height:100%; margin:0; background:#07080e; color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; }
.container{ max-width:1100px; margin:0 auto; padding:16px; }
.card{ background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); border:1px solid var(--line); border-radius:18px; padding:16px; }
.input, select, textarea{ background:#0d0f17; border:1px solid var(--line); color:var(--text); border-radius:12px; padding:12px; width:100%; }
.btn{ cursor:pointer; padding:12px 16px; border:0; border-radius:14px; background:linear-gradient(180deg, var(--accent), #3bd199); color:#052015; font-weight:800; }
.btn.muted{ background:#1f2937; color:#fff; border:1px solid var(--line); }
.btn.danger{ background:linear-gradient(180deg, #ef4444, #b91c1c); color:#fff; }
.row{ display:flex; gap:12px; flex-wrap:wrap; }
.meta{ color:var(--muted); font-size:12px; }

/* Splash */
#splash{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:radial-gradient(60% 60% at 50% 50%, #0f1018 0%, #07080f 100%); z-index:50; }
.splash-inner{ text-align:center; }
.splash-logo{ font-weight:900; font-size:36px; color:#fff; }
.splash-sub{ color:var(--muted); }

/* Top logo row */
.topbar.simple{ display:flex; align-items:center; justify-content:space-between; margin:6px 0 10px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-badge{ width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg, #6EE7B7, #60A5FA); }
.brand-name{ font-weight:900; letter-spacing:.3px; }

/* Grid */
.grid{ display:grid; gap:14px; grid-template-columns:repeat(2,1fr); }
@media(min-width:640px){ .grid{ grid-template-columns:repeat(3,1fr);} }
@media(min-width:980px){ .grid{ grid-template-columns:repeat(4,1fr);} }
.card-profile{ position:relative; overflow:hidden; border-radius:18px; background:#0d0f17; border:1px solid var(--line); }
.card-profile img{ width:100%; height:260px; object-fit:cover; display:block; }
.card-body{ padding:12px; }
.name{ font-weight:800; }
.badge-dot{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:#cfd7e6; margin-top:6px; }
.badge-dot .dot{ width:8px; height:8px; border-radius:50%; background:#6b7280; }
.badge-dot.online .dot{ background:#10b981; }

/* Drawer */
#filterDrawer{ position:fixed; inset:0; pointer-events:none; z-index:60; }
#filterDrawer::before{ content:''; position:absolute; inset:0; background:rgba(0,0,0,.45); opacity:0; transition:opacity .2s ease; }
#filterDrawer.open{ pointer-events:auto; }
#filterDrawer.open::before{ opacity:1; }
.drawer-inner{
  position:absolute; top:0; bottom:0; left:0; width:90%; max-width:420px; background:#0e1018; border-right:1px solid var(--line);
  transform:translateX(-100%); transition:transform .25s ease; padding:14px;
}
#filterDrawer.open .drawer-inner{ transform:translateX(0); }
.drawer-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.drawer-body{ }

/* Bottom nav */
#bottomNav{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom:14px; background:rgba(14,16,24,.85); backdrop-filter: blur(8px);
  border:1px solid var(--line); border-radius:20px; padding:8px 10px; display:flex; gap:8px; z-index:70;
}
.nav-btn{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  background:transparent; border:0; color:#dfe4ee; padding:8px 12px; border-radius:12px; cursor:pointer;
}
.nav-btn.active{ background:#111827; }
.nav-btn .ico{ font-size:18px; line-height:1; }
.nav-btn span:last-child{ font-size:12px; color:#aab4c3; }

/* Hidden views helper */
#viewGrid, #viewMessages, #viewProfile{}
/* Inputs */
label{ font-size:12px; color:var(--muted); display:block; margin-bottom:6px; }
textarea{ resize:vertical; }

.spacer{ height:90px; } /* space above bottom nav */

/* --- Bottom nav fix --- */
#bottomNav {
  z-index: 9999;        /* make sure it sits on top of everything */
  pointer-events: auto; /* allow clicks */
}
