/* ============================================================
   EriFaye TV V8.20 - Header button icons + logout modal
   ============================================================ */
.ef-btn-with-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ef-btn-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.ef-btn-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  stroke: currentColor;
}

.ef-header-actions .ef-btn {
  white-space: nowrap;
}

.ef-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

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

.ef-logout-modal__dialog {
  width: min(440px, 100%);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(18, 26, 40, 0.98), rgba(8, 10, 18, 0.98));
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 20, 35, 0.08);
  padding: 24px;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ef-logout-modal.is-open .ef-logout-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ef-logout-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff1324, #c90015);
  box-shadow: 0 14px 35px rgba(255, 19, 36, 0.28);
}

.ef-logout-modal__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.ef-logout-modal__title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.ef-logout-modal__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 0.98rem;
}

.ef-logout-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
}

.ef-logout-modal__actions .ef-btn {
  min-width: 132px;
  justify-content: center;
  white-space: normal;
}

.ef-logout-modal__cancel {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.ef-modal-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .ef-header-actions .ef-btn-with-icon {
    gap: 7px;
  }

  .ef-logout-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .ef-logout-modal__dialog {
    border-radius: 24px;
    padding: 22px;
  }

  .ef-logout-modal__actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .ef-logout-modal__actions .ef-btn {
    width: 100%;
    max-width: 100%;
  }
}
