/* =========================================================
   Two Hommès — Manager Portal UI (Clean AF Mobile)
========================================================= */

:root{
  --bg:#050506;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.64);
  --stroke:rgba(255,255,255,.10);

  --red:#b80505;
  --red2:#7d0000;
  --redGlow:rgba(184,5,5,.28);

  --panel:rgba(0,0,0,.62);
  --panel2:rgba(255,255,255,.04);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

a{ color:inherit; }
.link{ color:rgba(255,255,255,.85); text-decoration:underline; text-decoration-color:rgba(255,255,255,.25); }

.heroGlow{
  position:fixed;
  inset:-40vh -20vw auto -20vw;
  height:70vh;
  background: radial-gradient(circle at 35% 45%, rgba(184,5,5,.26) 0%, rgba(0,0,0,0) 55%);
  filter: blur(10px);
  pointer-events:none;
  z-index:0;
}

.topbar{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 6px;
  max-width:980px;
  margin:0 auto;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.brand img{
  height:30px;
  width:auto;
  display:block;
  filter: drop-shadow(0 0 18px rgba(184,5,5,.18));
}
.brandTitle{
  font-weight:950;
  font-size:16px;
  line-height:1.1;
}
.brandSub{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

.topActions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pillBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  background:var(--panel2);
  border:1px solid var(--stroke);
  color:rgba(255,255,255,.88);
  text-decoration:none;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}
.pillBtn.redOutline{
  border-color: rgba(184,5,5,.55);
  background: rgba(184,5,5,.10);
}

.container{
  position:relative;
  z-index:2;
  max-width:980px;
  margin:0 auto;
  padding:10px 12px 40px;
}

.card{
  border:1px solid rgba(255,255,255,.09);
  background:var(--panel);
  border-radius:20px;
  padding:14px;
  box-shadow:0 18px 55px rgba(0,0,0,.60);
  overflow:hidden;
  position:relative;
}
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(circle at 20% 0%, rgba(184,5,5,.16) 0%, rgba(0,0,0,0) 45%);
  pointer-events:none;
}
.card > *{ position:relative; z-index:2; }

.heroCard{ padding:16px; }
.heroHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.h1{
  font-size:16px;
  font-weight:950;
  margin:0;
}
.small{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}

.countPill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(184,5,5,.50);
  background:rgba(184,5,5,.10);
  color:rgba(255,255,255,.92);
  font-weight:950;
  font-size:12px;
  white-space:nowrap;
}

.gridCards{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 720px){
  .gridCards{ grid-template-columns: 1fr 1fr; }
}

.formCard .formTop{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.formTitle{
  font-weight:950;
  font-size:15px;
  margin:0;
}
.formMeta{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}
.formBadge{
  font-size:12px;
  font-weight:950;
  border:1px solid var(--stroke);
  background:var(--panel2);
  padding:8px 10px;
  border-radius:999px;
  color:rgba(255,255,255,.86);
}

.formActions{ margin-top:12px; }

.list{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.entryCard{ padding:14px; }
.entryTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.entryLeft{ min-width: 240px; }
.entryName{
  font-weight:950;
  font-size:15px;
  margin:0;
}
.entryMeta{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.tag{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:var(--panel2);
  font-weight:950;
  font-size:12px;
  color:rgba(255,255,255,.88);
}
.dotSep{ opacity:.55; }

.entryContact{ margin-top:10px; }
.contactChip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(184,5,5,.40);
  background:rgba(184,5,5,.08);
  font-weight:950;
  font-size:12px;
  text-decoration:none;
}
.contactChip.muted{
  border-color: var(--stroke);
  background: var(--panel2);
  color: rgba(255,255,255,.65);
}

.entryBtns{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:#000;
  color:#fff;
  text-decoration:none;
  font-weight:950;
  font-size:12px;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn.wide{ width:100%; }
.btn.primary{
  border-color: rgba(184,5,5,.70);
  background: linear-gradient(180deg, var(--red), var(--red2));
  box-shadow: 0 18px 45px rgba(184,5,5,.10);
}
.btn.ghost{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.12);
}

.btn:active{ transform: translateY(1px); }

.pillRow{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:var(--panel2);
  color:rgba(255,255,255,.86);
  font-size:12px;
  font-weight:950;
  text-decoration:none;
}
.pill.active{
  border-color: rgba(184,5,5,.55);
  background: rgba(184,5,5,.12);
}

.pagerRow{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.pagerBtns{
  display:flex;
  gap:10px;
}

.emptyCard{
  margin-top:12px;
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.75);
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom:20px;
  transform:translateX(-50%);
  padding:12px 14px;
  border-radius:999px;
  background: rgba(0,0,0,.85);
  border:1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-size:12px;
  font-weight:900;
  display:none;
  z-index:50;
  max-width: calc(100vw - 28px);
  text-align:center;
}
.toast.show{ display:block; }

.depPillLink{
  text-decoration:none;
  display:inline-flex;
}
.depPillLink .depPill{
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
}
.depPillLink .depPill:active{
  transform: scale(.98);
}
.depPillLink .depPill:hover{
  filter: brightness(1.06);
}
.depPill .chev{
  margin-left:8px;
  opacity:.75;
  font-size:14px;
  line-height:1;
}