
/* MHOS PIN Lock
   - Minimal, mobile-first, high-contrast.
   - Avoids theme dependencies by using its own class namespace.
*/

.mhos-pin-screen{
  min-height: 100vh;
  padding: 28px 18px 34px;
  box-sizing: border-box;
  display:flex;
  flex-direction:column;
  gap:18px;
  color: #fff;
  background: #000;
}

.mhos-pin-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.mhos-pin-titlewrap{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.mhos-pin-dot{
  width:10px;height:10px;border-radius:999px;
  background:#ff2d55;
  margin-top:10px;
}

.mhos-pin-title{
  font-size:42px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-0.02em;
}

.mhos-pin-sub{
  margin-top:6px;
  font-size:16px;
  opacity:.8;
}

.mhos-pin-info{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:18px;
}

.mhos-pin-card{
  border-radius:24px;
  padding:18px;
  border:1px solid rgba(255,255,255,.10);
  background: radial-gradient(120% 120% at 10% 0%, rgba(255,255,255,.10), rgba(255,255,255,.03));
  box-shadow: 0 10px 35px rgba(0,0,0,.55);
}

.mhos-pin-cardhead{
  display:flex;
  gap:14px;
  align-items:center;
}

.mhos-pin-lockicon{
  width:44px;height:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.25);
  position:relative;
}
.mhos-pin-lockicon:before{
  content:"";
  position:absolute;
  left:50%;top:50%;
  width:18px;height:14px;
  transform:translate(-50%,-30%);
  border-radius:4px;
  border:2px solid rgba(255,255,255,.9);
}
.mhos-pin-lockicon:after{
  content:"";
  position:absolute;
  left:50%;top:50%;
  width:14px;height:10px;
  transform:translate(-50%,-110%);
  border-radius:10px 10px 0 0;
  border:2px solid rgba(255,255,255,.9);
  border-bottom:none;
}

.mhos-pin-prompt{
  font-size:24px;
  font-weight:700;
}
.mhos-pin-hint{
  margin-top:4px;
  font-size:15px;
  opacity:.75;
}

.mhos-pin-dots{
  margin-top:16px;
  display:flex;
  gap:14px;
}
.mhos-pin-dotcell{
  width:16px;height:16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
}
.mhos-pin-dotcell.is-filled{
  background:rgba(255,255,255,.9);
}

.mhos-pin-pad{
  border-radius:28px;
  padding:18px;
  border:1px solid rgba(255,255,255,.10);
  background: radial-gradient(130% 130% at 10% 0%, rgba(255,255,255,.09), rgba(255,255,255,.03));
  box-shadow: 0 10px 35px rgba(0,0,0,.55);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}

.mhos-pin-key{
  height:70px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.28);
  color:#fff;
  font-size:28px;
  font-weight:700;
}
.mhos-pin-key:active{ transform: translateY(1px); }
.mhos-pin-key-muted{ opacity:.8; font-weight:600; }

.mhos-pin-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:0 6px;
}
.mhos-pin-link{
  color:rgba(255,255,255,.78);
  text-decoration:none;
  font-size:16px;
  border-bottom:1px solid rgba(255,255,255,.18);
  padding-bottom:2px;
}

.mhos-pin-note{
  margin-top:auto;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  padding:14px 16px;
  font-size:15px;
  opacity:.88;
}
.mhos-pin-note-sub{
  display:block;
  margin-top:8px;
  opacity:.75;
}

.mhos-pin-toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  background:rgba(20,20,20,.92);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  padding:10px 14px;
  border-radius:16px;
  font-size:14px;
  max-width:90vw;
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  display:none;
}
.mhos-pin-toast.is-show{ display:block; }

.mhos-pin-infomodal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:99999;
}
.mhos-pin-infobox{
  width:min(520px, 92vw);
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(20,20,20,.96);
  padding:18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.72);
}
.mhos-pin-infobox-title{
  font-size:18px;
  font-weight:800;
  margin-bottom:8px;
}
.mhos-pin-infobox-body{ opacity:.82; font-size:15px; line-height:1.35; }
.mhos-pin-infobox-btn{
  margin-top:14px;
  width:100%;
  height:46px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:700;
}

/* Overlay container */
.mhos-pin-overlay[hidden]{display:none!important;}
.mhos-pin-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
}
.mhos-pin-overlay__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.mhos-pin-overlay__panel{
  position: relative;
  width: min(980px, calc(100% - 28px));
  margin: 64px auto;
  max-height: calc(100vh - 128px);
  overflow: auto;
  border-radius: 24px;
}

/* Make lock UI more compact inside overlay */
.mhos-pin-lock--overlay{ min-height: unset; padding: 28px 28px 26px; }
.mhos-pin-lock--overlay .mhos-pin-key{ height: 56px; }
@media (max-width: 520px){
  .mhos-pin-overlay__panel{ margin: 18px auto; max-height: calc(100vh - 36px); }
  .mhos-pin-lock--overlay{ padding: 18px 16px 16px; }
  .mhos-pin-lock--overlay .mhos-pin-key{ height: 54px; }
}
