/* Hızlı İletişim yüzen widget */
.qc-widget {
  --qc-orange: #FF994B;
  --qc-pink: #D34BE9;
  --qc-blue: #3188FF;
  --qc-gradient: linear-gradient(230deg, var(--qc-orange) 6.7%, var(--qc-pink) 48.83%, var(--qc-blue) 90.96%);
  position: fixed;
  inset-inline-start: 50px;
  bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  z-index: 98;
  font-family: var(--tp-ff-body, 'Inter', sans-serif);
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.qc-launcher {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 58px;
  padding: 4px;
  border: 1px solid transparent;
  border-start-start-radius: 20px;
  border-end-start-radius: 20px;
  border-start-end-radius: 999px;
  border-end-end-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  color: #21212D;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  visibility: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--qc-gradient) border-box;
  box-shadow: 0 14px 34px rgba(33, 33, 45, 0.2), 0 0 0 6px rgba(211, 75, 233, 0.08);
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.98);
  pointer-events: none;
  transition: visibility 0s linear 0.42s, opacity 0.42s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.qc-widget.is-visible .qc-launcher,
.qc-widget.is-open .qc-launcher {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}
.qc-launcher:hover {
  box-shadow: 0 18px 42px rgba(33, 33, 45, 0.24), 0 0 0 8px rgba(49, 136, 255, 0.1);
}
.qc-launcher:focus-visible,
.qc-close:focus-visible,
.qc-action:focus-visible {
  outline: 2px solid var(--qc-blue);
  outline-offset: 2px;
}
@supports not selector(:focus-visible) {
  .qc-launcher:focus,
  .qc-close:focus,
  .qc-action:focus {
    outline: 2px solid var(--qc-blue);
    outline-offset: 2px;
  }
}
.qc-launcher-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: var(--qc-gradient);
  box-shadow: 0 5px 14px rgba(120, 83, 220, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: qc-float 4s ease-in-out infinite;
}
.qc-launcher-icon svg { filter: drop-shadow(0 1px 2px rgba(33, 33, 45, 0.2)); }
.qc-launcher-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--qc-pink);
  opacity: 0;
  animation: qc-pulse 2.4s ease-out infinite;
}
@keyframes qc-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes qc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.qc-widget.is-open .qc-launcher-icon { animation-play-state: paused; }
.qc-launcher-text {
  margin-inline: 12px 16px;
  color: #21212D;
  letter-spacing: -0.02em;
}
.qc-launcher-text:empty {
  display: none;
}

.qc-panel {
  position: absolute;
  inset-inline-start: 0;
  bottom: calc(100% + 12px);
  box-sizing: border-box;
  width: 344px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  border-radius: 22px;
  background: linear-gradient(#21212D, #21212D) padding-box, linear-gradient(145deg, var(--qc-orange), var(--qc-pink) 48%, var(--qc-blue)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 28px 76px rgba(24, 23, 39, 0.34), 0 8px 24px rgba(24, 23, 39, 0.18), 0 0 36px rgba(211, 75, 233, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0) scale(0.97);
  transform-origin: bottom left;
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.2, 0.75, 0.25, 1), visibility 0s linear 0.32s;
  pointer-events: none;
}
.qc-widget.is-open .qc-panel {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s;
  pointer-events: auto;
}
.qc-panel-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 23px 20px 21px;
  overflow: hidden;
  background: radial-gradient(ellipse at 2% 0%, rgba(255, 153, 75, 0.28), transparent 48%), radial-gradient(ellipse at 100% 100%, rgba(49, 136, 255, 0.3), transparent 48%), linear-gradient(130deg, #2d293b, #252536 72%);
}
.qc-panel-head::after {
  content: "";
  position: absolute;
  inset-inline-end: -34px;
  top: -54px;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.025), 0 0 0 30px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}
.qc-panel-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.qc-status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--qc-orange);
  box-shadow: 0 0 0 3px rgba(255, 153, 75, 0.15), 0 0 12px rgba(255, 153, 75, 0.6);
  animation: qc-status 2.2s ease-in-out infinite;
}
@keyframes qc-status {
  50% { box-shadow: 0 0 0 5px rgba(255, 153, 75, 0.04), 0 0 16px rgba(255, 153, 75, 0.75); }
}
.qc-title {
  position: relative;
  z-index: 1;
  margin: 0 0 5px;
  font-family: var(--tp-ff-phudu, inherit);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #fff;
}
.qc-sub {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.14px;
  color: rgba(255, 255, 255, 0.68);
}
.qc-close {
  position: relative;
  z-index: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.qc-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.qc-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px 13px;
}
.qc-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  opacity: 0;
  transform: translate3d(0, 7px, 0);
  transition: opacity 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.qc-widget.is-open .qc-action {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.qc-widget.is-open .qc-action-text,
.qc-widget.is-open .qc-action-label,
.qc-widget.is-open .qc-action-meta {
  opacity: 1;
  visibility: visible;
}
.qc-widget.is-open .qc-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(211, 75, 233, 0.5);
  transform: translate3d(3px, 0, 0);
}
.qc-action-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: var(--qc-gradient);
}
.qc-action-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: #fff;
}
.qc-action-label {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.14px;
  line-height: 1.2;
}
.qc-action-meta {
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.56);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qc-panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px;
  padding: 13px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  letter-spacing: 0.01em;
}
.qc-foot-spark {
  color: var(--qc-orange);
  font-size: 15px;
  text-shadow: 0 0 12px rgba(255, 153, 75, 0.55);
}
.qc-foot-line {
  height: 1px;
  flex: 1;
  margin-inline-start: 4px;
  background: linear-gradient(90deg, rgba(255, 153, 75, 0.5), rgba(211, 75, 233, 0.35), transparent);
}

@media (max-width: 767px) {
  .qc-widget {
    inset-inline-start: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .qc-launcher {
    font-size: 13px;
  }
  .qc-panel {
    width: 330px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
  }
  .back-to-top-wrapper,
  .back-to-top-wrapper.back-to-top-btn-show {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}
.qc-widget:dir(rtl) .qc-panel { transform-origin: bottom right; }
.qc-widget:dir(rtl).is-open .qc-action:hover { transform: translate3d(-3px, 0, 0); }
@media (prefers-reduced-motion: reduce) {
  .qc-launcher,
  .qc-panel,
  .qc-close,
  .qc-action {
    transition: none;
  }
  .qc-launcher-icon::after {
    animation: none;
  }
  .qc-launcher-icon,
  .qc-status-dot { animation: none; }
  .qc-widget.is-open .qc-action { opacity: 1; transform: none; }
  .qc-widget.is-open .qc-action:hover,
  .qc-close:hover { transform: none; }
}
@media print {
  .qc-widget { display: none; }
}

/* Roket ikon (tema: hero-plain) */
.qc-launcher-icon {
  background: #F4F1FF;
  color: #7853DC;
  box-shadow: 0 5px 14px rgba(120, 83, 220, 0.18), inset 0 0 0 1px rgba(211, 75, 233, 0.18);
}
.qc-plane {
  display: block;
  width: 30px;
  height: 30px;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 50%;
}
.qc-widget.is-visible .qc-plane {
  animation: qc-plane-launch 9s linear 0.6s infinite;
}
.qc-widget.is-open .qc-plane { animation-play-state: paused; }
@keyframes qc-plane-launch {
  0%   { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; animation-timing-function: ease-in-out; }
  3%   { transform: translate(-1px, 1px) rotate(-3deg) scale(1); }
  5%   { transform: translate(1px, -1px) rotate(3deg) scale(1); }
  7%   { transform: translate(-1px, 0) rotate(-2deg) scale(1); }
  9%   { transform: translate(0, 1px) rotate(0) scale(0.94); opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  20%  { transform: translate(32px, -32px) rotate(0) scale(1.15); opacity: 0; }
  20.01% { transform: translate(-32px, 32px) rotate(0) scale(0.8); opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  38%  { transform: translate(1px, -2px) rotate(0) scale(1); opacity: 1; animation-timing-function: ease-in-out; }
  43%  { transform: translate(0, 1px) rotate(0) scale(1); }
  47%  { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
  100% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .qc-widget.is-visible .qc-plane { animation: none; }
}
