:root{
  --brand:#0a6bff;
  --brand2:#00c0ff;
  --text:#222;
  --muted:#5a6573;
  --border:#eef0f3;
}
body.modal-open {
  overflow: hidden;
  height: 100%;
}

/* Overlay temel (ekranı kaplasın ve başta kapalı olsun) */
.modal-overlay {
  display: none;                 /* JS açacak */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;

  /* scroll/pan engelleme (özellikle mobil) */
  overscroll-behavior: contain;
  touch-action: none;
}


/* Konteyner: popup + logo yan yana */
.modal-container {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

/* Asıl modal kutusu */
.modal-box {
  background: #fff;
  color: var(--text);
  width: min(560px, 92vw);
  border-radius: 16px;
  padding: 28px 28px 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
  position: relative;
  animation: popIn .28s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Başlık */
.modal-box h2 {
  position: relative;
  overflow: visible;    
  margin: 0 0 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}
.modal-box h2 .accent{
  display: inline-block;
  background: linear-gradient(135deg,var(--brand),var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Açıklama */
.lead {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* Özellik listesi */
.feature-list{
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}
.feature-list li{
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.icon-check{
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(10,107,255,.12);
  color: var(--brand);
}

/* CTA */
.modal-action-btn {
  display: block;
  width: -moz-fit-content;   /* Firefox eski sürümler */
  width: fit-content;
  margin: 12px auto 0;       /* ortala */
  text-align: center;
  white-space: nowrap;   
  padding: 12px 18px;
  border-radius: 10px;
  text-align: center;       /* metin de ortalı */
 background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}


.modal-action-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(10,107,255,.28);color:white; }

/* Kapat (X) */
.close-btn {
  position: absolute;
  top: 10px; right: 12px;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: #666;
  font-size: 24px;
  line-height: 36px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.close-btn:hover { background: #f2f4f7; color: #111; }

/* Footer - en altta ve ortada */
.modal-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
}
.remember-option input { inline-size: 16px; block-size: 16px; }

/* Yan logo kartı */
.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  width: min(324px, 20vw);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s;
}
.brand-card:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(0,0,0,.22); }
.brand-card img { max-width: 100%; height: auto; display: block; }

/* Küçük ekran: dikey yığıl */
@media (max-width: 640px) {
  .modal-container { flex-direction: column; gap: 12px; }
  .brand-card { width: min(560px, 92vw); order: 2; }
  .modal-box { order: 1; }
}
.modal-mascot{
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-80%, 35%);
  width: clamp(160px, 22vw, 300px);  /* boyutu da ekranla orantılı büyüt/küçült */
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22));
  z-index: 2; /* içerik üstünde; istersen 1 yapıp arkaya alabilirsin */
  opacity: 0;
  animation: mascotIn .32s ease-out .15s forwards;
}

/* Kart içeriğiyle çakışmasın diye alt ped ekleyelim (masaüstünde) */


@keyframes mascotIn{
  to{ opacity: 1; transform: translate(-80%, 45%); }
}

/* Orantıları daha dar ekranlar için nazikçe toparla */
@media (max-width: 900px){
  .modal-mascot{
    transform: translate(-28%, 46%)  !important;
    width: clamp(140px, 26vw, 240px)  !important;
  }
}
@media (max-width: 600px){
  .modal-mascot{
    transform: translate(-16%, 18%)  !important;
    width: clamp(110px, 30vw, 200px)  !important;
  }
}
/* Çok küçük ekranda istersen gizle (yoksa kalsın) */
@media (max-width: 480px){
  .modal-mascot{ display: none; }
}