/* Shared footer styles */
footer,
.site-footer{
  background:var(--theme-primary) !important;
  color:#fff !important;
  padding:0 18px !important;
  position:fixed !important;
  left:0 !important;
  width:100% !important;
  height:96px !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:14px !important;
  box-sizing:border-box !important;
  font-size:16px !important;
  bottom:-64px !important;
  transition:bottom .22s ease, opacity .22s ease !important;
  opacity:0 !important;
  box-shadow:none !important;
  z-index:999 !important;
}

footer:hover,
.site-footer:hover{
  bottom:0 !important;
  opacity:1 !important;
}

footer .footer-btn,
.site-footer .footer-btn,
.footer-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  min-width:196px !important;
  padding:14px 22px !important;
  border:1px solid rgba(255,255,255,.34) !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.07) !important;
  color:#fff !important;
  cursor:pointer !important;
  font-weight:800 !important;
  font-size:18px !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  user-select:none !important;
  box-shadow:none !important;
  transition:background-color .18s ease, border-color .18s ease, transform .18s ease !important;
}

footer .footer-btn:hover,
footer .footer-btn:focus-visible,
.site-footer .footer-btn:hover,
.site-footer .footer-btn:focus-visible,
.footer-btn:hover,
.footer-btn:focus-visible{
  transform:translateY(-1px) !important;
  background:rgba(0,0,0,.14) !important;
  border-color:rgba(255,255,255,.48) !important;
  box-shadow:none !important;
  outline:none !important;
}

footer .footer-btn .footer-btn-icon,
.site-footer .footer-btn .footer-btn-icon,
.footer-btn .footer-btn-icon{
  width:38px !important;
  height:38px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 38px !important;
  overflow:hidden !important;
}

footer .footer-btn img,
.site-footer .footer-btn img,
.footer-btn img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
  flex:0 0 auto !important;
  margin-right:0 !important;
  transform:none !important;
}

footer .footer-btn span,
.site-footer .footer-btn span,
.footer-btn span{
  display:inline-block !important;
}

.footer-text,
.footer-mid{
  flex:1 1 auto !important;
  text-align:center !important;
  font-weight:700 !important;
  letter-spacing:.1px !important;
  min-width:0 !important;
}

/* Shared visual style for back buttons only.
   Position/size stays controlled by each page. */
.btn-back{
  background:var(--theme-primary) !important;
  color:#fff !important;
  border:1px solid rgba(0,0,0,.18) !important;
  box-shadow:none !important;
  transition:background-color .18s ease, transform .18s ease, border-color .18s ease !important;
}

.btn-back:hover,
.btn-back:focus-visible{
  background:#843f95 !important;
  border-color:rgba(0,0,0,.22) !important;
  transform:translateY(-1px) !important;
  box-shadow:none !important;
  filter:none !important;
  outline:none !important;
}

@media (max-width: 900px){
  footer,
  .site-footer{
    height:84px !important;
    padding:0 12px !important;
    gap:10px !important;
    font-size:14px !important;
  }

  footer .footer-btn,
  .site-footer .footer-btn,
  .footer-btn{
    min-width:150px !important;
    padding:11px 16px !important;
    gap:8px !important;
    border-radius:16px !important;
    font-size:15px !important;
  }

  footer .footer-btn .footer-btn-icon,
  .site-footer .footer-btn .footer-btn-icon,
  .footer-btn .footer-btn-icon{
    width:32px !important;
    height:32px !important;
    flex:0 0 32px !important;
  }

  .footer-text,
  .footer-mid{
    font-size:13px !important;
  }
}


.logout-modal{
  position:fixed !important;
  inset:0 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  z-index:3000 !important;
}

.logout-modal.is-open{
  display:flex !important;
}

.logout-modal-backdrop{
  position:absolute !important;
  inset:0 !important;
  background:rgba(0,0,0,.35) !important;
}

.logout-modal-card{
  position:relative !important;
  width:min(420px, calc(100vw - 32px)) !important;
  background:#fff !important;
  color:#2c2333 !important;
  border-radius:24px !important;
  box-shadow:0 22px 60px rgba(0,0,0,.24) !important;
  padding:26px 24px 22px !important;
  border:1px solid rgba(144, 81, 163, .18) !important;
  text-align:center !important;
}

.logout-modal-title{
  color:var(--theme-primary) !important;
  font-size:30px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  margin-bottom:10px !important;
}

.logout-modal-text{
  color:#5c4f67 !important;
  font-size:19px !important;
  font-weight:600 !important;
  line-height:1.45 !important;
  margin-bottom:20px !important;
}

.logout-modal-actions{
  display:flex !important;
  gap:12px !important;
  justify-content:center !important;
}

.logout-modal-btn{
  min-width:126px !important;
  height:48px !important;
  border-radius:16px !important;
  border:1px solid rgba(144, 81, 163, .25) !important;
  font-size:18px !important;
  font-weight:800 !important;
  cursor:pointer !important;
  transition:transform .18s ease, background-color .18s ease, border-color .18s ease !important;
}

.logout-modal-btn:hover,
.logout-modal-btn:focus-visible{
  transform:translateY(-1px) !important;
  outline:none !important;
}

.logout-modal-btn-cancel{
  background:#fff !important;
  color:var(--theme-primary) !important;
}

.logout-modal-btn-cancel:hover,
.logout-modal-btn-cancel:focus-visible{
  background:#f6eef9 !important;
}

.logout-modal-btn-confirm{
  background:var(--theme-primary) !important;
  color:#fff !important;
}

.logout-modal-btn-confirm:hover,
.logout-modal-btn-confirm:focus-visible{
  background:#843f95 !important;
  border-color:#843f95 !important;
}

@media (max-width: 900px){
  .logout-modal-card{
    width:min(360px, calc(100vw - 24px)) !important;
    padding:22px 18px 18px !important;
    border-radius:20px !important;
  }

  .logout-modal-title{
    font-size:24px !important;
  }

  .logout-modal-text{
    font-size:17px !important;
  }

  .logout-modal-actions{
    gap:10px !important;
  }

  .logout-modal-btn{
    min-width:110px !important;
    height:44px !important;
    font-size:16px !important;
    border-radius:14px !important;
  }
}
