/* =====================================================================
   Panel Demo — Lead Modal + Magnetic CTA Button + Floating Global Button
   ===================================================================== */

/* =========================================================
   1. MAGNETIC CTA BUTTON
   Sayfa içi kullanım: <a class="panel-cta" data-open-panel-demo>...</a>
   Pulse + gradient flow + magnetic hover
   ========================================================= */

.panel-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.6rem;
  background: linear-gradient(120deg, #e61673 0%, #b03cff 50%, #e61673 100%);
  background-size: 200% 100%;
  color: #fff;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 8px 26px rgba(230, 22, 115, 0.32),
    0 2px 6px rgba(176, 60, 255, 0.18);
  transition:
    transform var(--dur-base) var(--ease-premium),
    box-shadow var(--dur-base) var(--ease-out),
    background-position 1.6s ease-in-out;
  animation: panelCtaFlow 4s ease-in-out infinite, panelCtaPulse 3s ease-in-out infinite;
  will-change: transform;
}

.panel-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(230, 22, 115, 0.4), rgba(176, 60, 255, 0.4));
  filter: blur(12px);
  opacity: 0.7;
  z-index: -1;
  transition: opacity var(--dur-base) var(--ease-out);
}

.panel-cta:hover {
  box-shadow:
    0 14px 40px rgba(230, 22, 115, 0.45),
    0 4px 12px rgba(176, 60, 255, 0.3);
  background-position: 100% 0;
}
.panel-cta:hover::before { opacity: 1; }

.panel-cta__sparkle {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.panel-cta__sparkle svg {
  width: 100%;
  height: 100%;
  animation: panelCtaSparkle 2.4s ease-in-out infinite;
}

.panel-cta__arrow {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-left: 0.15rem;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-premium);
}
.panel-cta:hover .panel-cta__arrow { transform: translateX(4px); }

/* Mikro etiket — buton altında küçük açıklama */
.panel-cta-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.panel-cta-note {
  font-size: 0.78rem;
  color: var(--ink-d-60);
  font-style: italic;
  padding-left: 0.5rem;
}

/* Animasyonlar */
@keyframes panelCtaFlow {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}
@keyframes panelCtaPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}
@keyframes panelCtaSparkle {
  0%, 100% { transform: rotate(0) scale(1); opacity: 1; }
  50%      { transform: rotate(15deg) scale(1.15); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .panel-cta { animation: none; }
  .panel-cta__sparkle svg { animation: none; }
}

/* Hero chip — küçük, ince, "yönetici misin?" */
.hero-panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--sp-3);
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-base) var(--ease-premium);
}
.hero-panel-chip svg { width: 16px; height: 16px; color: var(--brand-magenta); }
.hero-panel-chip strong { color: #fff; font-weight: 600; }
.hero-panel-chip:hover {
  background: linear-gradient(120deg, rgba(230, 22, 115, 0.2), rgba(176, 60, 255, 0.2));
  border-color: rgba(230, 22, 115, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* CTA Section variant — sayfa bölümü olarak */
.panel-cta-section {
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  padding-block: clamp(3rem, 6vh, 5rem);
  position: relative;
  overflow: hidden;
}
.panel-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(230, 22, 115, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(176, 60, 255, 0.05), transparent 60%);
  pointer-events: none;
}
.panel-cta-section__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  text-align: center;
}
@media (min-width: 760px) {
  .panel-cta-section__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 3rem);
  }
}
.panel-cta-section__copy { max-width: 520px; }
.panel-cta-section__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-magenta);
  margin-bottom: var(--sp-2);
}
.panel-cta-section__title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 1.8vw + 0.6rem, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-d-100);
  margin: 0 0 var(--sp-2);
}
.panel-cta-section__sub {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-d-70);
  margin: 0;
}
.panel-cta--lg {
  padding: 1.15rem 1.85rem;
  font-size: 1.05rem;
}

/* =========================================================
   2. FLOATING GLOBAL BUTTON
   Tüm sayfalarda sağ alt köşede, scroll sonrası belirir.
   WhatsApp butonunun simetriği gibi ama önde, premium.
   ========================================================= */

.panel-floating {
  position: fixed;
  right: 100px;
  bottom: 26px;        /* WhatsApp butonu üstünde */
  z-index: 998;        /* WhatsApp = 999 olabilir; biraz alta */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  background: linear-gradient(120deg, #e61673, #b03cff);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: 0;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(230, 22, 115, 0.38),
    0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity .4s var(--ease-out),
    transform .4s var(--ease-premium),
    box-shadow var(--dur-base) var(--ease-out);
}
.panel-floating.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.panel-floating:hover {
  box-shadow:
    0 14px 36px rgba(230, 22, 115, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}
.panel-floating__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}
.panel-floating__icon svg { width: 14px; height: 14px; }
.panel-floating__close {
  margin-left: 0.3rem;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
  color: #fff;
  transition: background var(--dur-fast) var(--ease-out);
}
.panel-floating__close:hover { background: rgba(255, 255, 255, 0.35); }
.panel-floating__close svg { width: 10px; height: 10px; }

@media (max-width: 600px) {
  .panel-floating {
    right: 12px;
    bottom: 74px;
    font-size: 0.78rem;
    padding: 0.55rem 0.85rem 0.55rem 0.65rem;
  }
}

/* =========================================================
   3. LEAD MODAL
   ========================================================= */

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.lead-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 9, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.lead-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface-1);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(230, 22, 115, 0.12);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition:
    transform .4s var(--ease-premium),
    opacity .35s var(--ease-out);
}
.lead-modal.is-open .lead-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Premium gradient border */
.lead-modal__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(230, 22, 115, 0.5), transparent 40%, transparent 60%, rgba(176, 60, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--ink-d-70);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  z-index: 2;
}
.lead-modal__close:hover { background: var(--ink-d-100); color: #fff; }
.lead-modal__close svg { width: 16px; height: 16px; }

/* Head */
.lead-modal__head {
  text-align: center;
  margin-bottom: var(--sp-5);
}
.lead-modal__head-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sp-3);
}
.lead-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(230, 22, 115, 0.25);
  flex-shrink: 0;
}
.lead-modal__icon img { width: 80%; height: 80%; }
.lead-modal__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-magenta);
  line-height: 1.25;
  text-align: left;
}
.lead-modal__title {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 1.5vw + 0.7rem, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-d-100);
  margin: 0;
}
.lead-modal__title .accent {
  background: linear-gradient(120deg, var(--brand-magenta), #b03cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Values */
.lead-modal__values {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.lead-modal__values li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-d-80);
}
.lead-modal__values svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--brand-magenta);
}
.lead-modal__values strong {
  font-weight: 600;
  color: var(--ink-d-100);
}

/* Form */
.lead-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.lead-modal__honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.lead-modal__field { display: flex; flex-direction: column; gap: 0.4rem; }
.lead-modal__field-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-d-70);
}
.lead-modal__input {
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--ink-d-100);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  font-family: inherit;
}
.lead-modal__input:focus {
  outline: 0;
  border-color: var(--brand-magenta);
  background: var(--surface-1);
}
.lead-modal__input.is-error {
  border-color: #d32f2f;
  background: rgba(211, 47, 47, 0.04);
}
.lead-modal__field-error {
  font-size: 0.8rem;
  color: #d32f2f;
  min-height: 1.2em;
  display: none;
}
.lead-modal__field-error.is-visible { display: block; }

/* Submit button — pulse + gradient */
.lead-modal__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(120deg, #e61673, #b03cff);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(230, 22, 115, 0.35);
  transition:
    transform var(--dur-base) var(--ease-premium),
    box-shadow var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out);
  margin-top: var(--sp-2);
  animation: leadSubmitPulse 2.6s ease-in-out infinite;
}
.lead-modal__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(230, 22, 115, 0.5);
}
.lead-modal__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  animation: none;
}
@keyframes leadSubmitPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

.lead-modal__submit-text { display: inline-block; }
.lead-modal__submit-arrow,
.lead-modal__submit-spinner,
.lead-modal__submit-check {
  width: 18px;
  height: 18px;
}
.lead-modal__submit-spinner,
.lead-modal__submit-check { display: none; }

/* Loading state */
.lead-modal__submit.is-loading .lead-modal__submit-arrow,
.lead-modal__submit.is-loading .lead-modal__submit-text { display: none; }
.lead-modal__submit.is-loading .lead-modal__submit-spinner {
  display: inline-block;
  animation: leadSpin 0.8s linear infinite;
}
@keyframes leadSpin { to { transform: rotate(360deg); } }

/* Success state */
.lead-modal__submit.is-success {
  background: #2bd576;
  box-shadow: 0 10px 28px rgba(43, 213, 118, 0.4);
  animation: none;
}
.lead-modal__submit.is-success .lead-modal__submit-arrow,
.lead-modal__submit.is-success .lead-modal__submit-spinner { display: none; }
.lead-modal__submit.is-success .lead-modal__submit-text {
  display: inline-block;
}
.lead-modal__submit.is-success .lead-modal__submit-check {
  display: inline-block;
  animation: leadCheckPop .4s var(--ease-premium);
}
@keyframes leadCheckPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

/* Privacy note */
.lead-modal__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: var(--sp-3) 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-d-60);
}
.lead-modal__privacy svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--ink-d-50);
}
.lead-modal__privacy a {
  color: var(--brand-magenta);
  text-decoration: none;
  font-weight: 600;
  min-width: 84px;
}
.lead-modal__privacy a:hover { text-decoration: underline; }

/* Sosyal kanıt */
.lead-modal__proof {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  font-size: 0.78rem;
  color: var(--ink-d-50);
}
.lead-modal__proof-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-soft), transparent);
}
.lead-modal__proof-text {
  white-space: nowrap;
  font-style: italic;
}
.lead-modal__proof-text strong {
  font-style: normal;
  color: var(--brand-magenta);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 480px) {
  .lead-modal__card { padding: 1.25rem; max-height: 96vh; }
  .lead-modal__title { font-size: 1.25rem; }
  .lead-modal__values li { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal,
  .lead-modal__card,
  .lead-modal__submit { transition: opacity .15s; animation: none !important; }
}
