.hf-online-lock {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(216, 16, 26, .16), transparent 30%),
    linear-gradient(145deg, #292928, #3c3c3b 58%, #202020);
}

.hf-online-lock[hidden], .hf-online-modal[hidden] { display: none !important; }

.hf-online-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28px;
  color: #3c3c3b;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.hf-online-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-bottom: 22px; text-align: center; }
.hf-online-brand-logo { display: block; width: min(340px, 92%); height: auto; max-height: 116px; object-fit: contain; object-position: center; }
.hf-online-brand p { margin: 0; color: #707070; font-size: 13px; line-height: 1.5; }
.hf-online-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 18px 0; padding: 5px; border-radius: 14px; background: #f0f0f0; }
.hf-online-tabs button { min-height: 38px; border-radius: 10px; color: #666; font-size: 12px; font-weight: 800; }
.hf-online-tabs button.active { color: #fff; background: #3c3c3b; }
.hf-online-field { display: block; margin-top: 13px; }
.hf-online-field span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; }
.hf-online-field input, .hf-online-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bdbdbd;
  border-radius: 12px;
  outline: none;
  background: #fff;
}
.hf-online-field input:focus, .hf-online-field select:focus { border-color: #d8101a; box-shadow: 0 0 0 3px rgba(216, 16, 26, .12); }
.hf-online-remember { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; color: #3c3c3b; cursor: pointer; }
.hf-online-remember input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #d8101a; }
.hf-online-remember span { display: grid; gap: 2px; font-size: 12px; line-height: 1.35; }
.hf-online-remember small { color: #707070; font-size: 10px; }
.hf-online-primary { width: 100%; min-height: 46px; margin-top: 18px; border-radius: 13px; color: #fff; background: #d8101a; font-weight: 850; }
.hf-online-primary:disabled { cursor: wait; opacity: .55; }
.hf-online-link { margin-top: 12px; color: #d8101a; font-size: 12px; font-weight: 750; text-decoration: underline; }
.hf-online-message { min-height: 20px; margin-top: 14px !important; color: #b40d15 !important; font-weight: 700; }
.hf-online-message.success { color: #238548 !important; }

.hf-online-account {
  position: fixed;
  right: 76px;
  bottom: 16px;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(360px, calc(100vw - 32px));
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
  background: #3c3c3b;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  font-size: 11px;
  font-weight: 750;
}
.hf-online-signout {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 251;
  min-width: 52px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
  background: #b40d15;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  font-size: 11px;
  font-weight: 850;
}
.hf-online-signout:disabled { cursor: wait; opacity: .6; }
.hf-online-account .dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #50c878; }
.hf-online-account.warn .dot { background: #f2b134; }
.hf-online-account.error .dot { background: #ff5c5c; }
.hf-online-account .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hf-online-modal { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 22px; background: rgba(20,20,20,.72); }
.hf-online-modal-card { width: min(720px, 100%); max-height: min(780px, calc(100vh - 44px)); overflow: auto; padding: 26px; border-radius: 24px; background: #fff; box-shadow: 0 25px 70px rgba(0,0,0,.35); }
.hf-online-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.hf-online-modal-head h2 { margin: 0; color: #3c3c3b; font-size: 22px; }
.hf-online-modal-head p { margin: 4px 0 0; color: #777; font-size: 12px; }
.hf-online-close { width: 38px; height: 38px; border-radius: 12px; color: #3c3c3b; background: #eee; font-weight: 900; }
.hf-online-userline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; padding: 14px; border-radius: 16px; background: #f4f4f4; font-size: 12px; }
.hf-online-team-form { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 9px; margin: 16px 0; }
.hf-online-team-form input, .hf-online-team-form select { min-height: 42px; padding: 9px 11px; border: 1px solid #bdbdbd; border-radius: 11px; }
.hf-online-team-form button { padding: 0 16px; border-radius: 11px; color: #fff; background: #d8101a; font-weight: 800; }
.hf-online-members { display: grid; gap: 8px; }
.hf-online-member { display: grid; grid-template-columns: minmax(0, 1fr) 125px auto auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #ddd; border-radius: 13px; font-size: 12px; }
.hf-online-member strong { overflow-wrap: anywhere; }
.hf-online-member select { min-height: 38px; padding: 7px 9px; border: 1px solid #bbb; border-radius: 10px; background: #fff; }
.hf-online-member button { color: #d8101a; font-weight: 800; }
.hf-online-member button[data-save-role] { min-height: 38px; padding: 0 11px; border-radius: 10px; color: #fff; background: #3c3c3b; }
.hf-online-role-guide, .hf-online-settings-roles { display: grid; gap: 8px; margin: 14px 0; }
.hf-online-role-guide span, .hf-online-settings-roles p { margin: 0; padding: 11px 12px; border-radius: 12px; color: #666; background: #f4f4f4; font-size: 11px; line-height: 1.45; }
.hf-online-role-guide strong, .hf-online-settings-roles strong { display: block; color: #3c3c3b; font-size: 12px; }
.hf-online-current-role { padding: 7px 10px; border-radius: 999px; color: #fff; background: #3c3c3b; font-size: 10px; font-weight: 850; }
.hf-online-secondary { min-height: 40px; padding: 0 14px; border: 1px solid #aaa; border-radius: 11px; color: #3c3c3b; background: #fff; font-size: 12px; font-weight: 800; }
.hf-online-help { margin-top: 16px; padding: 13px; border-left: 4px solid #d8101a; border-radius: 10px; color: #666; background: #f8f8f8; font-size: 11px; line-height: 1.5; }

@media (max-width: 640px) {
  .hf-online-card, .hf-online-modal-card { padding: 22px; border-radius: 22px; }
  .hf-online-team-form { grid-template-columns: 1fr; }
  .hf-online-team-form button { min-height: 42px; }
  .hf-online-member { grid-template-columns: 1fr 1fr; }
  .hf-online-member strong { grid-column: 1 / -1; }
}
