/* FORSA Smart Help widget */

/* Hide default tawk bubble — FORSA Help launcher is primary */
body.forsa-theme .tawk-min-container,
body.forsa-theme #tawk-bubble-container,
body.forsa-theme .tawk-button-circle {
  display: none !important;
}

.forsa-support {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99980;
  font-family: inherit;
}

html[dir="rtl"] .forsa-support {
  right: auto;
  left: 1.25rem;
}

.forsa-support__launcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem 0.75rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #efbb20, #f39c12);
  color: #0a0e14;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(239, 187, 32, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.forsa-support__launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(239, 187, 32, 0.45);
}

.forsa-support__launcher-icon {
  display: flex;
}

.forsa-support.is-open .forsa-support__launcher {
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.forsa-support__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(560px, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #121a28 0%, #0a0e14 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

html[dir="rtl"] .forsa-support__panel {
  right: auto;
  left: 0;
}

.forsa-support.is-open .forsa-support__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.forsa-support__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(239, 187, 32, 0.15), rgba(239, 187, 32, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forsa-support__head-title {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.forsa-support__head-status {
  font-size: 0.72rem;
  color: #6ee7b7;
  letter-spacing: 0.04em;
}

.forsa-support__head-status::before {
  content: "● ";
}

.forsa-support__close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.forsa-support__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
}

.forsa-support__greeting {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.forsa-support__sub {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.5;
}

.forsa-support__topics {
  display: grid;
  gap: 0.55rem;
}

.forsa-support__topic {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

html[dir="rtl"] .forsa-support__topic {
  text-align: right;
}

.forsa-support__topic:hover {
  border-color: rgba(239, 187, 32, 0.35);
  background: rgba(239, 187, 32, 0.08);
  transform: translateX(2px);
}

.forsa-support__topic-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 187, 32, 0.12);
  color: #efbb20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.forsa-support__topic-label {
  font-weight: 600;
  font-size: 0.88rem;
}

.forsa-support__topic-desc {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
  font-weight: 400;
}

.forsa-support__back {
  background: none;
  border: none;
  color: #efbb20;
  font-size: 0.8rem;
  padding: 0;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.forsa-support__faq {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.forsa-support__faq-q {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.forsa-support__faq.is-open .forsa-support__faq-q {
  background: rgba(239, 187, 32, 0.1);
  color: #efbb20;
}

.forsa-support__faq-a {
  display: none;
  padding: 0 0.85rem 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.6;
}

.forsa-support__faq.is-open .forsa-support__faq-a {
  display: block;
}

.forsa-support__link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #efbb20;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
}

.forsa-support__link:hover {
  color: #fff;
}

.forsa-support__search {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.forsa-support__search input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.85rem;
}

.forsa-support__search button {
  padding: 0.6rem 0.9rem;
  border: none;
  border-radius: 10px;
  background: #efbb20;
  color: #0a0e14;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.forsa-support__result {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(239, 187, 32, 0.08);
  border: 1px solid rgba(239, 187, 32, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  line-height: 1.55;
}

.forsa-support__foot {
  padding: 0.75rem 1.15rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.forsa-support__live {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(239, 187, 32, 0.4);
  border-radius: 12px;
  background: rgba(239, 187, 32, 0.12);
  color: #efbb20;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.forsa-support__live:hover {
  background: #efbb20;
  color: #0a0e14;
}

@media (max-width: 479px) {
  .forsa-support {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .forsa-support__launcher-text {
    display: none;
  }

  .forsa-support__launcher {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
