/* =========================
   MOBILE  26. 5. 25
========================= */
#mobile-header{
  display:none;
}
@media (max-width:480px){
    .pc-text{
    display:none;
  }
  .mo-text{
    display:inline;
  }
  body{
    overflow-x:hidden;
  }
  #mobile-header{
    display:flex;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:56px;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:900;
    color:#3558A8; 
    background:#FFFDF8;
    border-bottom:1px solid rgba(92,142,219,.35);
    z-index:9999;
  }
  #mobile-menu-btn{
    position:absolute;
    left:12px;
    background:#3558A8;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:6px 10px;
  }
  #layout{
    display:flex;
    flex-direction:column;
  }
  #sidebar-container,
  #sidebar,
  .sidebar{
    display:none;
  }
  #content,
  main{
    width:100%;
    max-width:100%;
    margin:0;
    padding:70px 14px 90px;
    box-sizing:border-box;
    flex:1;
  }
  #habin-footer{
    position:static;
    width:100%;
    max-width:100%;
    margin:20px 0 0;
    padding:8px 10px;
    box-sizing:border-box;
    text-align:center;
  }
  .footer-inner{
    width:100%;
    max-width:100%;
  }
  .footer-line1{
  display:flex;
  flex-direction:column;
  gap:2px;
  width:100%;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:keep-all;
  line-height:1.5;
}
.footer-line2{
  display:block;
  width:100%;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:keep-all;
  line-height:1.5;
}
 .footer-line1 .ft-sub:nth-child(3){
  display:none;
}
.footer-line2 .ft-star:nth-child(5){
  display:none;
}
.footer-line2 .ft-hidden{
  display:none;
}
.top-sub{
  display:none;
}
.top-banner{
  height:auto;
  min-height:0;
  padding:10px 8px;
  margin:10px 0 14px;
}
.top-title{
  font-size:21px;
  line-height:1.2;
  padding:2px 0;
}
.top-menu{
  display:grid;
  grid-template-columns:repeat(4,70px);
  justify-content:center; 
  column-gap:20px;
  row-gap:8px; 
  padding:0;
  margin:10px 0 20px;
}
.top-menu a{
  flex:none;
  width:auto;
  min-height:36px;
  padding:2px 1px;
  font-size:16px;
  font-weight:600;
  line-height:1;
  border-radius:8px;
  gap:2px;
  text-align:center;
  white-space:normal;
  word-break:keep-all;
}
 #mobile-logo{
  font-size:20px;
  font-weight:700;
} 
#mobile-drawer{
 display:block;
  position:fixed;
  top:56px;
  left:-78%;
  width:78%;
  min-height:calc(100vh - 56px);
  height:calc(100dvh - 56px);
  overflow-y:auto; 
  background:#FFEBA0;
  border-right:2px solid #3558A8;
  z-index:9998;
  transition:left .3s ease;
  padding:4px 12px 120px;
  box-sizing:border-box; 
}
#mobile-drawer.open{
  left:0;
}
#mobile-phoenix{
  width:200px;
  display:block;
  margin:24px auto 42px;
  padding:0px;
  background:none;
  border:2px solid #3558A8;
  border-radius:10px;
  box-sizing:border-box;
}   
 #mobile-drawer-logo{
  width:200px;
  display:block;
  margin:32px auto 42px ;
  padding:0px;
  background:rgba(140,190,140,0.17);
  border:2px solid rgba(166,216,155,0.55);
  border-radius:10px;
  box-shadow:
  0 0 6px rgba(166,216,155,0.52),
  0 0 14px rgba(166,216,155,0.44),
  0 0 28px rgba(166,216,155,0.34);  
}
/* 📱 모바일 드로어 안 인장 */
#mobile-drawer .mobile-badge{
  width:70%;
  margin:18px auto 34px;
  padding:8px 10px;
  font-size:16px;
  line-height:1.7;
  box-sizing:border-box;
}
 #mobile-drawer #mobile-datetime{
  display:block;
  width:100%;
  box-sizing:border-box;
  text-align:center;
  font-size:17px;
  line-height:1;
  margin:25px 0 25px;
  padding:0;
  color:#000;
  font-weight:600;
}
/* 📱 모바일 알림 자리 */
.mobile-admin-slot{
  display:none;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  margin:10px auto 12px;
  padding:8px;
  width:80%;
  border-radius:14px;
  background:none;
}
.mobile-admin-slot a{
  display:flex;
  align-items:center;
  justify-content:flex-start; 
  width:100%;
  padding:7px 10px 7px 12px;
  font-size:17px;
  font-weight:600;
  color:#000;
  text-decoration:none;
  white-space:nowrap;
}
body.night .mobile-admin-slot{
  background:none;
}
body.night .mobile-admin-slot a{
  color:#fff;
}   
/* ----------------------------------------
   📱 MOBILE GATE
---------------------------------------- */
.mobile-gate-toggle{
  font-family:'HCR Batang','Batang',serif;
  font-size:18px;
  font-weight:700;
  color:#C0C0C0;
  font-style:italic;
  text-align:center;
  cursor:default !important;
  text-decoration:none;
  margin:18px 0 8px;
  margin-bottom:30px; 
  transition:0.25s ease;
}
.mobile-gate-toggle:hover{
  color:#5C8EDB;
}
.mobile-gate-box{
  display:none;
  width:85%;
  margin:0 auto 14px;
  padding:12px 10px;
  background:#F4FAFF;
  border:1.5px solid #3558A8;
  border-radius:10px;
  text-align:center;
  box-shadow:0 2px 5px rgba(0,0,0,0.05);
}
.mobile-gate-box input{
  width:100%;
  padding:8px 10px;
  margin-bottom:8px;
  border-radius:6px;
  border:1px solid #A2C0E6;
  background:#FFFFFF;
  font-size:14px;
  color:#1B1E45;
  caret-color:#3558A8;
  outline:none;
  transition:0.25s ease;
}
.mobile-gate-box input:focus{
  border-color:#5C8EDB;
  box-shadow:0 0 4px rgba(92,142,219,0.4);
}
.mobile-gate-box button{
  width:100%;
  padding:8px 10px;
  background:#5C8EDB;
  color:#FFFFFF;
  border:none;
  border-radius:6px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:0.25s ease;
}
.mobile-gate-box button:hover{
  background:#3558A8;
}
#mobile-gate-msg{
  margin-top:8px;
  font-size:14px;
  font-weight:600;
}
 #mobile-drawer::after{
  content:"";
  display:block;
  height:140px;
}  
 /* 📱 기다리는 사람 */
.waiting-woman{
    display:block;
    width:200px;
    height:auto;
    margin:8px auto 14px;
    border:2px solid rgba(92,142,219,0.72);
    border-radius:14px;
    opacity:0.92;
  }
  body.is-admin .waiting-woman,
  body.admin-mode .waiting-woman{
    display:none;
  }
/* =================================
   🌙 MOBILE NIGHT MODE
================================= */
body.night #mobile-header{
  background:#0F172A;
  border-bottom:1px solid rgba(148,163,184,.25);
  color:#E2E8F0;
}
body.night #mobile-drawer{
  background:#0B1020;
  border-right:2px solid #334155;
}
body.night #mobile-drawer-logo{
  border-color:#4F8F4A;
  background:#0B1220;
  box-shadow:
    0 0 6px rgba(79,143,74,0.20),
    0 0 14px rgba(79,143,74,0.30),
    inset 0 0 8px rgba(255,180,80,0.08);
} 
 body.night #mobile-drawer #mobile-datetime{
  color:#fff;
}  
  body.night #mobile-phoenix{
  border-color:#5C8EDB;
  background:#0B1220;
  box-shadow:
    0 0 6px rgba(92,142,219,0.30),
    0 0 14px rgba(92,142,219,0.45),
    0 0 6px rgba(255,140,0,0.25),
    inset 0 0 10px rgba(255,140,0,0.20);
} 
 .secure-password{
  -webkit-text-security: disc;
  text-security: disc;
}  
}
