/* ===== POPUP OVERLAY ===== */
#erken-kayit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

#erken-kayit-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ===== POPUP CARD ===== */
#erken-kayit-popup {
  background: #ffffff;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  transform: translateY(28px) scale(0.96);
  transition: transform 0.38s cubic-bezier(0.34, 1.52, 0.64, 1);
  position: relative;
}

#erken-kayit-overlay.visible #erken-kayit-popup {
  transform: translateY(0) scale(1);
}

/* ===== HEADER BAND ===== */
.ek-header {
  background: linear-gradient(135deg, #FAB027 0%, #e09e1a 100%);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}

.ek-header::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.ek-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(54,54,54,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ek-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(54, 54, 54, 0.12);
  border: 1px solid rgba(54, 54, 54, 0.2);
  color: #2a2a2a;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.ek-badge svg { flex-shrink: 0; }

.ek-title {
  color: #1a1a1a;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ===== CLOSE BUTTON ===== */
#erken-kayit-kapat {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(54, 54, 54, 0.13);
  color: rgba(30, 30, 30, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

#erken-kayit-kapat:hover {
  background: rgba(54, 54, 54, 0.24);
  color: #1a1a1a;
  transform: rotate(90deg);
}

/* ===== BODY ===== */
.ek-body {
  padding: 24px 28px 28px;
}

.ek-message {
  color: #3a3a3a;
  font-size: 14.5px;
  line-height: 1.72;
  margin: 0 0 22px;
}

/* ===== COUNTDOWN ===== */
.ek-countdown-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 9px;
}

.ek-countdown {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.ek-cd-block {
  flex: 1;
  background: #f4f5f7;
  border-radius: 11px;
  padding: 11px 6px;
  text-align: center;
}

.ek-cd-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #363636;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ek-cd-lbl {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #aaa;
  margin-top: 4px;
}

/* ===== CTA BUTTON ===== */
.ek-cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #FAB027;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.ek-cta:hover { background: #e09e1a; transform: translateY(-1px); }
.ek-cta:active { transform: translateY(0); }

/* ===== FOOTER NOTE ===== */
.ek-note {
  text-align: center;
  font-size: 11.5px;
  color: #bbb;
  margin-top: 12px;
  line-height: 1.5;
}

/* ===== RESPONSIVE – small phones ===== */
@media (max-width: 400px) {
  #erken-kayit-overlay { padding: 8px; }

  #erken-kayit-popup { border-radius: 16px; }

  .ek-header { padding: 22px 18px 18px; }

  .ek-title { font-size: 18px; }

  .ek-body { padding: 18px 18px 22px; }

  .ek-message { font-size: 13.5px; }

  .ek-cd-num { font-size: 20px; }

  .ek-cd-block { padding: 10px 4px; border-radius: 9px; }

  .ek-cta { font-size: 14px; padding: 13px 16px; }
}

@media (max-height: 680px) {
  #erken-kayit-popup { border-radius: 14px; }
  .ek-header { padding: 18px 18px 14px; }
  .ek-body { padding: 16px 18px 18px; }
  .ek-message { font-size: 13px; margin-bottom: 16px; }
  .ek-countdown { margin-bottom: 16px; }
  .ek-cd-block { padding: 8px 4px; }
  .ek-cd-num { font-size: 18px; }
}

/* ===== WIDGET (sağ alt köşe) ===== */
#erken-kayit-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FAB027;
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  padding: 11px 18px 11px 14px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(250, 176, 39, 0.45), 0 2px 8px rgba(0,0,0,0.12);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34, 1.52, 0.64, 1), opacity 0.3s ease, background 0.18s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

#erken-kayit-widget.visible {
  transform: translateY(0);
  opacity: 1;
}

#erken-kayit-widget:hover {
  background: #e09e1a;
  box-shadow: 0 8px 28px rgba(250, 176, 39, 0.55), 0 2px 8px rgba(0,0,0,0.14);
}

#erken-kayit-widget:active {
  transform: scale(0.96);
}

.ek-widget-icon {
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ek-widget-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ek-widget-title {
  font-size: 12.5px;
  font-weight: 800;
}

.ek-widget-sub {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.72;
}

/* widget pulse ring */
#erken-kayit-widget::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid rgba(250, 176, 39, 0.5);
  animation: ek-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes ek-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}

@media (max-width: 400px) {
  #erken-kayit-widget {
    bottom: 14px;
    right: 14px;
    padding: 10px 14px 10px 12px;
    font-size: 12px;
  }
  .ek-widget-icon { width: 24px; height: 24px; }
}
