/* ═══════════════════════════════════════════════════════
   SELCAP — WhatsApp Float + Karşılama Pop-up
   ═══════════════════════════════════════════════════════ */

/* ── 1. WhatsApp Float Butonu ─────────────────────────── */
.sc-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.50);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sc-wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.65);
}
.sc-wa-float i {
  font-size: 30px;
  color: #fff;
}
.sc-wa-float svg {
  display: block;
  flex-shrink: 0;
}
/* Pulse ring */
.sc-wa-float::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid rgba(37,211,102,0.45);
  animation: scPulse 2s ease-out infinite;
}
@keyframes scPulse {
  0%   { opacity:1; transform:scale(1); }
  70%  { opacity:0; transform:scale(1.5); }
  100% { opacity:0; }
}
/* Notification dot */
.sc-wa-float .sc-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #ff3b30;
  border: 2.5px solid #fff;
  border-radius: 50%;
}

/* ── 2. Karşılama Pop-up (ekran ortası) ───────────────── */
.sc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.sc-overlay.sc-show {
  opacity: 1;
  pointer-events: all;
}

.sc-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: 460px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.28), 0 8px 24px rgba(0,0,0,0.12);
  transform: translate(-50%, -46%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.16,1,.3,1), opacity 0.28s ease;
}
.sc-popup.sc-show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Header band */
.sc-popup-header {
  background: linear-gradient(135deg, #0A1628 0%, #132040 100%);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}
.sc-popup-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,68,10,0.2) 0%, transparent 65%);
  pointer-events: none;
}
/* Kapat */
.sc-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
  outline: none;
}
.sc-close:hover { background: rgba(255,255,255,0.24); color: #fff; }

.sc-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.sc-logo-row img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.sc-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,211,102,0.18);
  border: 1px solid rgba(37,211,102,0.35);
  border-radius: 20px;
  padding: 4px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.04em;
}
.sc-online-badge span.dot {
  width: 7px; height: 7px;
  background: #25D366;
  border-radius: 50%;
  display: inline-block;
}
.sc-header-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sc-header-title span {
  color: #E8440A;
}
.sc-header-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* Body */
.sc-popup-body {
  padding: 26px 28px 10px;
}

.sc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.sc-tab {
  flex: 1;
  padding: 10px 8px;
  background: #f4f5f7;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  outline: none;
}
.sc-tab.active {
  background: #fff;
  border-color: #0A1628;
  color: #0A1628;
}
.sc-tab i { margin-right: 5px; }

.sc-form-panel { display: none; }
.sc-form-panel.active { display: block; }

.sc-field {
  margin-bottom: 12px;
}
.sc-field input,
.sc-field textarea,
.sc-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e4e8;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: #1a1a2e;
  background: #fafafa;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.sc-field input:focus,
.sc-field textarea:focus,
.sc-field select:focus {
  border-color: #0A1628;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,22,40,0.08);
}
.sc-field textarea {
  resize: none;
  height: 80px;
}
.sc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Buttons */
.sc-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0A1628 0%, #1a3060 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  box-shadow: 0 4px 16px rgba(10,22,40,0.25);
  text-decoration: none;
}
.sc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,22,40,0.35);
  filter: brightness(1.08);
}

.sc-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.30);
  text-decoration: none;
}
.sc-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}

/* Footer */
.sc-popup-footer {
  padding: 14px 28px 22px;
}
.sc-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #bbb;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.sc-divider::before,
.sc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

.sc-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.sc-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  color: #999;
}
.sc-trust-item i {
  font-size: 11px;
  color: #0A1628;
}

/* Success state */
.sc-success {
  display: none;
  text-align: center;
  padding: 32px 28px 28px;
}
.sc-success.active { display: block; }
.sc-success-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px; color: #fff;
}
.sc-success h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 800;
  color: #0A1628; margin: 0 0 8px;
}
.sc-success p {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; color: #666;
  line-height: 1.6; margin: 0;
}

/* RTL */
[dir="rtl"] .sc-wa-float { right: auto; left: 28px; }
[dir="rtl"] .sc-close    { right: auto; left: 14px; }
[dir="rtl"] .sc-field input,
[dir="rtl"] .sc-field textarea,
[dir="rtl"] .sc-field select { text-align: right; direction: rtl; }

/* Mobile */
@media (max-width: 500px) {
  .sc-popup { width: calc(100vw - 24px); }
  .sc-popup-header { padding: 22px 20px 18px; }
  .sc-popup-body   { padding: 20px 20px 8px; }
  .sc-popup-footer { padding: 12px 20px 20px; }
  .sc-header-title { font-size: 18px; }
  .sc-field-row    { grid-template-columns: 1fr; }
  .sc-wa-float     { width: 56px; height: 56px; bottom: 20px; right: 16px; }
  [dir="rtl"] .sc-wa-float { right: auto; left: 16px; }
  .sc-trust { gap: 10px; flex-wrap: wrap; justify-content: center; }
}
