/* Monster Destek: sohbet botu + WhatsApp tek ikonda.
   Renkler sohbet botuyla ayni (#03ff00 yesil, #161616 zemin). */

.monster-hub {
  --monster-hub-green: #03ff00;
  --monster-hub-wa: #25d366;
  --monster-hub-text: #f1f1f1;
  --monster-hub-muted: #b7b7b7;
  --monster-hub-line: #27292a;
  --monster-hub-card: #161718;
  --monster-hub-card-hover: #1c1e1f;
  position: fixed;
  right: var(--monster-hub-right, 17px);
  bottom: var(--monster-hub-bottom, 80px);
  z-index: 999;
  pointer-events: none;
  font-family: "Saira Semi Condensed", "Saira SemiCondensed-Regular", Helvetica, Arial, sans-serif;
}

.monster-hub,
.monster-hub *,
.monster-hub *::before,
.monster-hub *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.monster-hub [hidden] {
  display: none !important;
}

/* Eski ayri WhatsApp butonu bununla birlikte yuklenirse gizlensin. */
.monster-wa-widget {
  display: none !important;
}

/* --- Panel --------------------------------------------------------------- */

.monster-hub__panel {
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--monster-hub-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #151617 0%, #0b0b0c 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  /* Kapanirken gorunurluk animasyon bitince kalksin... */
  transition: opacity 160ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 160ms;
}

.monster-hub--open .monster-hub__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  /* ...acilirken hemen gelsin; yoksa ilk secenege odak verilemiyor. */
  transition: opacity 160ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.monster-hub__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
}

.monster-hub__title {
  flex: 1;
  margin: 0;
  padding: 0 2px;
  color: var(--monster-hub-text);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.monster-hub__title span {
  color: var(--monster-hub-green);
}

.monster-hub__icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--monster-hub-text);
  background: transparent;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.monster-hub__icon-btn svg {
  width: 22px;
  height: 22px;
}

.monster-hub__back {
  margin-left: -6px;
}

.monster-hub__icon-btn:hover,
.monster-hub__icon-btn:focus-visible {
  color: var(--monster-hub-green);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.monster-hub__view {
  display: grid;
  gap: 10px;
}

.monster-hub__view--whatsapp,
.monster-hub[data-view="whatsapp"] .monster-hub__view--home {
  display: none;
}

.monster-hub[data-view="whatsapp"] .monster-hub__view--whatsapp {
  display: grid;
}

/* --- Secenek kartlari ------------------------------------------------------ */

.monster-hub__option {
  display: grid;
  grid-template-columns: 56px 1fr 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 16px 14px;
  border: 1px solid var(--monster-hub-line);
  border-radius: 12px;
  color: var(--monster-hub-text);
  background: var(--monster-hub-card);
  font: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.monster-hub__option-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}

.monster-hub__option-icon.is-monster svg {
  width: 56px;
  height: 56px;
}

.monster-hub__option-icon.is-whatsapp {
  width: 48px;
  height: 48px;
  margin: 0 4px;
  border-radius: 12px;
  color: #fff;
  background: var(--monster-hub-wa);
}

.monster-hub__option-icon.is-whatsapp svg {
  width: 30px;
  height: 30px;
}

.monster-hub__option-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.monster-hub__option-name {
  color: var(--monster-hub-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.monster-hub__option-desc {
  color: var(--monster-hub-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.monster-hub__chevron {
  display: grid;
  place-items: center;
  color: var(--monster-hub-text);
  transition: color 140ms ease, transform 140ms ease;
}

.monster-hub__chevron svg {
  width: 20px;
  height: 20px;
}

.monster-hub__option:hover,
.monster-hub__option:focus-visible,
.monster-hub__action:hover,
.monster-hub__action:focus-visible {
  border-color: rgba(3, 255, 0, 0.55);
  background: var(--monster-hub-card-hover);
  outline: none;
}

.monster-hub__option:hover .monster-hub__chevron,
.monster-hub__option:focus-visible .monster-hub__chevron,
.monster-hub__action:hover .monster-hub__chevron,
.monster-hub__action:focus-visible .monster-hub__chevron {
  color: var(--monster-hub-green);
  transform: translateX(2px);
}

/* --- WhatsApp alt adimi ------------------------------------------------------ */

.monster-hub__action {
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--monster-hub-line);
  border-radius: 12px;
  color: var(--monster-hub-text);
  background: var(--monster-hub-card);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.monster-hub__action-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--monster-hub-wa);
}

.monster-hub__action-icon svg {
  width: 20px;
  height: 20px;
}

/* --- Bot yoksa kendi butonu ------------------------------------------------- */

.monster-hub__launcher {
  display: none;
  position: fixed;
  right: 17px;
  bottom: 17px;
  place-items: center;
  width: 51px;
  height: 51px;
  margin: 0;
  padding: 0;
  border: 1px solid #111318;
  border-radius: 50%;
  background: linear-gradient(180deg, #1b1c1d 0%, #000 100%);
  box-shadow: inset 0 0 14px #00ff00e6, inset 0 -3px 4px #111318bf, inset 0 0 2px 2px #00ff00bf,
    0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.monster-hub--fallback .monster-hub__launcher {
  display: grid;
}

.monster-hub__launcher svg {
  width: 31px;
  height: 31px;
}

.monster-hub__launcher:hover,
.monster-hub__launcher:focus-visible {
  transform: translateY(-2px) scale(1.05);
}

.monster-hub__launcher:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Panel acikken botun butonu "acik" parlamasina gecsin (bot acikkenki gibi). */
html.monster-hub-panel-open .monster-tda-me.monster-tda-me-default .monster-tda-me-button {
  box-shadow: inset 0px 0px 16px #00ff00e6, inset 0px -4px 5px #111318bf, inset 0px 0px 2px 2px #00ff00bf,
    inset 0px -22px 22px #00ff0029;
}

body:has(.monster-tda-chatting.monster-tda-fullscreen) .monster-hub {
  display: none;
}

@media (max-width: 520px) {
  .monster-hub__panel {
    padding: 14px;
  }

  .monster-hub__option {
    grid-template-columns: 48px 1fr 18px;
    gap: 12px;
    padding: 14px 12px;
  }

  .monster-hub__option-icon.is-monster,
  .monster-hub__option-icon.is-monster svg {
    width: 48px;
    height: 48px;
  }

  .monster-hub__option-icon.is-whatsapp {
    width: 44px;
    height: 44px;
    margin: 0 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monster-hub *,
  .monster-hub *::before,
  .monster-hub *::after {
    transition: none !important;
  }
}
