:root{
  --bg:#0b0c10;
  --panel:#11131a;
  --panel2:#0f1117;
  --text:#e9ecf1;
  --muted:#a9b0bd;
  --red:#e31b3b;
  --red2:#ff3154;
  --green:#2dd4bf;
  --yellow:#fbbf24;
  --border:rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(900px 600px at 10% -10%, rgba(227,27,59,.20), transparent 60%),
              radial-gradient(800px 500px at 110% 0%, rgba(255,49,84,.12), transparent 60%),
              var(--bg);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
.container{max-width:1150px; margin:0 auto; padding:0 16px}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.88);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.topbar__row{display:flex; align-items:center; gap:12px; padding:10px 0}
.topbar .container{padding-left:30px; padding-right:30px}
.brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px}
.brand__dot{width:10px; height:10px; border-radius:999px; background:var(--red); box-shadow:0 0 0 6px rgba(227,27,59,.12)}
.brand__name{font-size:16px}

/* Nav classic with red underline */
.nav{display:flex; gap:14px; margin-left:50px}
.nav a{
  padding:2px 2px;
  border-radius:0;
  color:var(--muted);
  background:transparent;
  border:none;
  border-bottom:2px solid transparent;
  white-space:nowrap;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
}
.nav a.active{color:var(--text); border-bottom-color: var(--red)}
.nav a:hover{color:var(--text); border-bottom-color: rgba(227,27,59,.55)}
.navBadge{display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 6px; margin-left:8px; border-radius:999px; font-size:11px; background:rgba(227,27,59,.18); border:1px solid rgba(227,27,59,.45); color:var(--text)}

/* menu unread: red number on the left */
.navCount{display:inline-block; margin-right:6px; font-weight:900; color: rgba(255,255,255,.55);}
.navCount.hasUnread{color: var(--red);}

@keyframes navBlink{0%,100%{opacity:1}50%{opacity:.25}}
.navCount.hasUnread{animation: navBlink 1.1s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){.navCount.hasUnread{animation:none}}

.toastWrap{position:fixed; left:0; right:0; top:10px; z-index:220;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  pointer-events:none;
}

/* Modal */
.modal{position:fixed; inset:0; z-index:240; display:none; align-items:center; justify-content:center; padding:16px;}
.modal.show{display:flex;}
.modalBackdrop{position:absolute; inset:0; background:rgba(0,0,0,.72);}
.modalCard{position:relative; width:min(520px, calc(100vw - 24px));
  background: linear-gradient(180deg, rgb(46,27,78), rgb(17,19,26));
  border:1px solid rgb(168,85,247);
  box-shadow: 0 18px 40px rgba(0,0,0,.60);
  border-radius:18px;
  padding:14px;
}
.modalTitle{font-weight:900; margin:0 0 10px 0; font-size:16px}
.modalGrid{display:grid; gap:10px}
.modalActions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; margin-top:10px}
.btnIcon{display:inline-flex; gap:8px; align-items:center}
.btnIcon svg{width:18px; height:18px; display:block}
.previewImg{width:100%; max-height:280px; object-fit:cover; border-radius:14px; border:1px solid rgba(255,255,255,.12)}

.toast{width:min(520px, calc(100vw - 24px));
  background: linear-gradient(180deg, rgb(46,27,78), rgb(17,19,26));
  border:1px solid rgb(168,85,247);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  border-radius:16px;
  padding:12px;
  opacity:0;
  transform: translateY(-12px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events:none;
}
.toast.show{opacity:1; transform: translateY(0); pointer-events:auto}
.toastTitle{font-weight:900; margin:0 0 6px 0; color: rgba(255,255,255,.98)}
.toastBody{margin:0; color: rgba(255,255,255,.82); font-size:13px; line-height:1.25}
.toastRow{display:flex; justify-content:space-between; gap:10px; align-items:center}

.msg a{color: rgba(255,255,255,.92); text-decoration: underline; text-decoration-color: rgba(227,27,59,.55)}
.msg a:hover{color: var(--text); text-decoration-color: rgba(255,49,84,.95)}
.msg ul{margin:8px 0 0 18px; padding:0}
.msg li{margin:4px 0}

.actions{display:flex; gap:10px; align-items:center; margin-left:auto}

.userMenu{position:relative}
.userMenu__btn{padding:10px 12px; border-radius:12px; border:1px solid var(--border); background:rgba(255,255,255,.04); color:var(--text); cursor:pointer}
.userMenu__btn:hover{background:rgba(255,255,255,.06)}
.userMenu__panel{
  position:absolute; right:0; top:calc(100% + 8px);
  min-width: 220px;
  background: rgba(17,19,26,.98);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 8px;
}
.userMenu__panel a{display:block; padding:10px 10px; border-radius:10px; color:var(--muted)}
.userMenu__panel a:hover{background:rgba(255,255,255,.06); color:var(--text)}
.userMenu__sep{height:1px; background:var(--border); margin:6px 0}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  font-weight:800;
}
.btn--primary{background:linear-gradient(180deg, var(--red2), var(--red)); border-color:rgba(227,27,59,.45)}
.btn--ghost{background:transparent}

/* Mobile menu */
.burger{display:none}
.mobileNav{display:none; border-top:1px solid var(--border)}
.mobileNav a{display:block; padding:12px 0; color:var(--muted)}
.mobileNav a.active{color:var(--text)}

/* Hero */
.hero{padding:22px 0 18px 0}
.heroCard{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  border-radius:18px;
  padding:16px;
}
.heroTools{display:flex; justify-content:flex-end}
.sortSelect{
  appearance:none;
  -webkit-appearance:none;
  background:#2b2f36;
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
  padding:10px 34px 10px 12px;
  border-radius:12px;
  font-size:13px;
  cursor:pointer;
  position:relative;
}
.sortSelect option{background:#2b2f36; color:#fff}
.sortSelect:focus{outline:none; box-shadow:0 0 0 3px rgba(168,85,247,.18); border-color: rgba(168,85,247,.55)}
.sortSelect{
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.72) 50%),
                    linear-gradient(135deg, rgba(255,255,255,.72) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.heroTitle{font-size:20px; font-weight:800; margin:0 0 8px 0}
.heroSub{margin:0; color:var(--muted); line-height:1.35}

/* Icons */
.ico{width:16px; height:16px; display:inline-block; vertical-align:-3px; margin-right:6px; opacity:.9}
.kv{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.kv .chip{color:var(--text)}
.kv .chip span{color:var(--muted)}
.sectionTitle{display:flex; align-items:center; gap:10px; margin:0 0 10px 0; font-size:16px}

/* Profile view */
.profileGrid{display:grid; grid-template-columns: 420px 1fr; gap:12px; align-items:start}
@media (max-width: 980px){ .profileGrid{grid-template-columns:1fr} }

.profilePhoto{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#0f1117;
}
.profilePhoto img{display:block; width:100%; height:auto; max-height:540px; object-fit:cover}
.profilePhoto img.locked{filter: blur(18px); transform: scale(1.08)}
.profilePhoto .photoBadges{position:absolute; left:10px; top:10px; display:flex; gap:8px; flex-wrap:wrap}

.profileThumbs{display:flex; gap:8px; overflow:auto; padding-top:10px}
.profileThumbs a{display:block; width:64px; height:64px; border-radius:14px; overflow:hidden; border:1px solid var(--border); flex:0 0 auto; background:#0f1117; opacity:.92}
.profileThumbs a:hover{opacity:1; border-color: rgba(168,85,247,.55)}
.profileThumbs a.active{opacity:1; border-color: rgba(227,27,59,.55); box-shadow:0 0 0 3px rgba(227,27,59,.12)}
.profileThumbs img{width:100%; height:100%; object-fit:cover; display:block}
.profileThumbs img.locked{filter: blur(16px); transform: scale(1.08)}

.profileHeader{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.profileHeader h1{margin:0; font-size:20px; font-weight:900}
.profileMeta{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
.profileMeta .chip{padding:7px 9px; font-size:12px}

.profileActions{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.profileActions .btn{padding:9px 10px; border-radius:12px; font-size:13px}

/* profile right-side action row (Nachricht/Like/Melden/Blockieren) */
.profileMeta .btn{padding:7px 9px; border-radius:12px; font-size:9px}

.sectionCard{margin-top:12px}
.sectionCard h2{margin:0 0 10px 0; font-size:16px}

.detailGrid{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
@media (max-width: 720px){ .detailGrid{grid-template-columns:1fr} }

.detailBlock{border:1px solid var(--border); background:rgba(255,255,255,.03); border-radius:16px; padding:10px}
.detailBlock .small{top:0}
.detailChips{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
.detailChips .chip{padding:7px 9px; font-size:12px}

/* Filter bar */
.filters{
  margin-top:12px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap:10px;
}
.field label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px 2px}
.input, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(15,17,23,.65);
  color:var(--text);
  outline:none;
}
.row2{grid-column:1/-1; display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}
.chip input{accent-color:var(--red)}
.chip--green{border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.14); color: rgba(220,252,231,.98)}

/* Grid */
.grid{padding:14px 0 28px 0}
.gridHead{display:flex; align-items:center; justify-content:space-between; gap:12px; margin:10px 0}
.gridHead h2{margin:0; font-size:16px; display:flex; align-items:center; gap:10px}
.gIcon{display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:999px; font-weight:900; font-size:16px; line-height:1; box-shadow:0 10px 22px rgba(0,0,0,.35)}
.gIcon--w{background:linear-gradient(135deg, #ff2e88, #a855f7); color:#fff; border:1px solid rgba(255,255,255,.20)}
.gIcon--m{background:linear-gradient(135deg, #22c55e, #06b6d4); color:#081018; border:1px solid rgba(255,255,255,.18)}
.small{color:var(--muted); font-size:12px; position:relative; top:2px}
.cards{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* max 6 per row */
  gap:8px;
}
.card{
  position:relative;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.35);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.card.isPrimary{border-color: rgba(34,197,94,.65); box-shadow:0 0 0 2px rgba(34,197,94,.25), 0 10px 26px rgba(0,0,0,.45)}
.card.isPrimary .cardImg{box-shadow: inset 0 0 0 2px rgba(34,197,94,.35)}
/* subtle glow border */
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:18px;
  background: radial-gradient(500px 220px at 30% 0%, rgba(168,85,247,.22), transparent 60%),
              radial-gradient(420px 220px at 90% 20%, rgba(236,72,153,.14), transparent 60%);
  opacity:0;
  pointer-events:none;
  transition: opacity .16s ease;
}
.card:hover::before{opacity:1}

.card:hover{
  border-color: rgba(168,85,247,.55);
  box-shadow:0 14px 34px rgba(0,0,0,.52);
  transform: translateY(-2px);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

/* image micro-zoom */
.card:hover .cardImg img{transform: scale(1.03)}
.cardImg img{transition: transform .16s ease}

/* keyboard focus */
.card:focus-within{
  border-color: rgba(168,85,247,.65);
  box-shadow:0 0 0 3px rgba(168,85,247,.18), 0 14px 34px rgba(0,0,0,.52);
}
.cardImg{
  position:relative;
  aspect-ratio: 1/1.08;
  background: #0f1117;
  overflow:hidden;
}
.cardImg img{
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  margin:10px;
  object-fit:cover;
  display:block;
  border-radius:14px;
}
/* placeholder: show whole SVG (no crop) */
.cardImg img[src$="/no-photo.svg"],
.cardImg img[src$="no-photo.svg"]{
  object-fit:contain;
  background:#2b2f36;
}
.cardImg img.locked{filter: blur(12px); transform: scale(1.05)}
.blurOverlay{
  position:absolute; inset:0;
  background:rgba(11,12,16,.55);
  backdrop-filter: blur(10px);
  display:flex; align-items:center; justify-content:center;
  padding:12px;
  text-align:center;
}
.blurOverlay p{margin:0; color:var(--text); font-weight:700}
.badgeRow{position:absolute; left:10px; top:10px; display:flex; gap:6px; flex-wrap:wrap}
.badge{
  font-size:11px;
  padding:6px 8px;
  border-radius:999px;
  background:#0f1117; /* solid */
  border:1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.95);
}
.badge--red{background:#2a0f16; border-color:rgba(227,27,59,.55)}
.badge--green{background:#0b1f1a; border-color:rgba(45,212,191,.45)}
.badge--yellow{background:#231d0a; border-color:rgba(251,191,36,.45)}
.badge--purple{background:#1b1030; border-color:rgba(168,85,247,.55); border-radius:10px; padding:4px 6px}
.badge--gender{background:#26102a; border-color:rgba(236,72,153,.55); border-radius:10px; padding:4px 6px}

.cardBody{padding:10px}
.nameRow{display:flex; align-items:baseline; justify-content:space-between; gap:10px}
.cardActions{display:flex; gap:8px; margin-top:10px; align-items:center}
.cardActions .btn{padding:8px 10px; border-radius:10px}
.cardActions .btn--primary{padding:8px 10px}
.btn--liked{background:rgba(59,130,246,.15); border-color:rgba(59,130,246,.45); color:var(--text)}
.btn--liked:hover{background:rgba(59,130,246,.22)}
.nickname{font-weight:800}
.meta{color:var(--muted); font-size:12px}
.status{display:flex; align-items:center; gap:8px; margin-top:8px; color:var(--muted); font-size:12px}
.dot{width:8px; height:8px; border-radius:999px; background:rgba(169,176,189,.55)}
.dot.online{background:var(--green); box-shadow:0 0 0 6px rgba(45,212,191,.12)}

.footer{border-top:1px solid var(--border); padding:18px 0; color:var(--muted); font-size:12px}
.footer a{color:var(--muted); text-decoration:underline; text-decoration-color:rgba(255,255,255,.2)}

/* Responsive */
@media (max-width: 980px){
  .filters{grid-template-columns: 1fr 1fr;}
  .cards{grid-template-columns: repeat(5, minmax(0, 1fr));}
}
@media (max-width: 720px){
  .nav{display:none}
  .burger{display:inline-flex}
  .mobileNav{display:block}
  .cards{grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 420px){
  .cards{grid-template-columns: 1fr;}
}



