:root{
  --bg0:#050611; --bg1:#0a0c1a;
  --card:#12162b; --card2:#0d1022;
  --txt:#eaf0ff; --muted:#93a0c7;
  --vio:#7c4dff; --vio2:#b18cff;
  --ok:#2ee59d; --bad:#ff4d6d;
  --line:rgba(124,77,255,.22);
  --shadow:0 18px 50px rgba(0,0,0,.45);
  --r:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--txt);
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(124,77,255,.35), transparent 55%),
    radial-gradient(800px 500px at 10% 10%, rgba(177,140,255,.22), transparent 60%),
    linear-gradient(180deg,var(--bg0),var(--bg1));
}

a{color:var(--vio2);text-decoration:none}
a:active{opacity:.85}

.safe{
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar{
  position:sticky;top:0;z-index:50;
  backdrop-filter:blur(14px);
  background:rgba(7,9,20,.55);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;
  gap:10px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:900;letter-spacing:.3px;
}
.brand .dot{
  width:12px;height:12px;border-radius:999px;
  background:linear-gradient(180deg,var(--vio2),var(--vio));
  box-shadow:0 0 18px rgba(124,77,255,.65);
}
.pills{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pill{
  padding:8px 12px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(124,77,255,.10);
  color:var(--txt);
  font-size:13px;
}

.wrap{
  max-width:980px;
  margin:0 auto;
  padding:14px;
  padding-bottom:92px; /* room for bottom nav */
}

.h1{margin:0 0 10px;font-size:22px;line-height:1.15}
.h2{margin:0 0 10px;font-size:18px}
.muted{color:var(--muted);font-size:14px;line-height:1.4}
.small{font-size:12px;color:var(--muted)}

.card{
  background:rgba(18,22,43,.86);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:14px;
}
.card + .card{margin-top:12px}

.grid{display:grid;gap:12px}
.row{display:grid;gap:10px}
@media(min-width:760px){ .row{grid-template-columns:1fr 1fr} }

input,textarea,select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(124,77,255,.25);
  background:rgba(6,8,18,.65);
  color:var(--txt);
  outline:none;
}
input:focus,textarea:focus,select:focus{
  border-color:rgba(177,140,255,.75);
  box-shadow:0 0 0 3px rgba(124,77,255,.18);
}

.btnbar{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(124,77,255,.45);
  background:linear-gradient(180deg,rgba(124,77,255,.24),rgba(124,77,255,.08));
  color:var(--txt);
  cursor:pointer;
  font-weight:650;
  user-select:none;
  transition:transform .06s ease, filter .12s ease;
}
.btn:active{transform:scale(.98)}
.btn.ok{border-color:rgba(46,229,157,.55);background:linear-gradient(180deg,rgba(46,229,157,.18),rgba(46,229,157,.06))}
.btn.bad{border-color:rgba(255,77,109,.55);background:linear-gradient(180deg,rgba(255,77,109,.18),rgba(255,77,109,.06))}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(177,140,255,.35);
  background:rgba(124,77,255,.10);
  font-size:13px;
}

/* Tinder-like profile card */
.hero{
  position:relative;
  overflow:hidden;
  border-radius:calc(var(--r) + 6px);
  background:linear-gradient(180deg, rgba(177,140,255,.12), rgba(124,77,255,.05));
  border:1px solid rgba(177,140,255,.25);
  padding:16px;
}
.hero:before{
  content:"";
  position:absolute;inset:-120px -120px auto auto;
  width:260px;height:260px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(177,140,255,.55), transparent 60%);
  filter:blur(2px);
}
.hero .title{position:relative;display:flex;align-items:center;gap:10px}
.hero .heart{
  width:42px;height:42px;border-radius:16px;
  display:grid;place-items:center;
  border:1px solid rgba(177,140,255,.28);
  background:rgba(124,77,255,.12);
  box-shadow:0 12px 30px rgba(124,77,255,.18);
  font-size:18px;
}

/* Bottom navigation (mobile-first) */
.bottomnav{
  position:fixed;left:0;right:0;bottom:0;z-index:80;
  padding:10px 14px;
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
  background:rgba(7,9,20,.62);
  backdrop-filter:blur(16px);
  border-top:1px solid var(--line);
}
.bottomnav .bar{
  max-width:980px;margin:0 auto;
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.tab{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;
  padding:10px 8px;
  border-radius:16px;
  border:1px solid rgba(124,77,255,.16);
  background:rgba(124,77,255,.06);
  color:var(--muted);
  font-size:11px;
}
.tab .ico{font-size:16px}
.tab.active{
  color:var(--txt);
  border-color:rgba(177,140,255,.38);
  background:rgba(124,77,255,.14);
  box-shadow:0 10px 26px rgba(124,77,255,.18);
}

/* Desktop: hide bottom nav, keep top pills */
@media(min-width:760px){
  .bottomnav{display:none}
  .wrap{padding-bottom:20px}
}
