/* ==========================================================================
   Satin alma akisi: "Hemen İzle" butonu, Cihaz Türü / Ödeme Planı modallari
   ve /paket-satin-al 3 adimli formu. site.css'ten SONRA yuklenir.
   ========================================================================== */

/* --- Yanar-doner (conic) cerceveli birincil CTA --------------------------- */

@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.btn--glow {
  position: relative;
  isolation: isolate;
  --glow-angle: 0deg;
  padding: 13px 22px;
  border: 3px solid transparent;
  border-radius: 10px;
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.2;
  transform: translateZ(0);
  background:
    linear-gradient(var(--lime), var(--lime)) padding-box,
    conic-gradient(from var(--glow-angle), transparent 25%, 84.8deg, var(--cyan)) border-box;
  animation: glowSpin 2.5s linear infinite;
  transition: transform .2s, filter .2s;
}

.btn--glow:hover {
  border-color: var(--cyan);
  animation-play-state: paused;
  transform: scale(1.04);
  background:
    linear-gradient(var(--lime), var(--lime)) padding-box,
    conic-gradient(from var(--glow-angle), transparent 25%, 84.8deg, var(--cyan)) border-box;
}

.btn--glow:active { transform: scale(.98); }

@keyframes glowSpin { to { --glow-angle: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .btn--glow { animation: none; border-color: var(--cyan); }
}

/* --- Cihaz Türü modali ---------------------------------------------------- */

.modal__panel--wide { max-width: 820px; }

.device-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.device-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 20px;
  text-align: center;
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}

.device-option:hover {
  background: rgba(84, 229, 246, .08);
  border-color: rgba(84, 229, 246, .55);
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(84, 229, 246, .14);
}

.device-option__media {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

/* Cihaz gorselleri 900x630 ve kendi beyaz zeminini tasiyor.
   height:auto ZORUNLU — yoksa HTML height="630" attribute'u kazanip kutuyu
   asiri yukseltiyor ve gorselin ustunde/altinda bos beyaz alan olusuyor. */
.device-option__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 630;
  object-fit: cover;
  border-radius: 10px;
}

.device-option__title { font-size: .98rem; font-weight: 700; }
.device-option__lead { font-size: .86rem; font-weight: 700; color: var(--cyan); }
.device-option__text { font-size: .78rem; line-height: 1.5; color: var(--muted); }

/* --- Ödeme Planı modali --------------------------------------------------- */

.plan-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, .18) 0%, rgba(0, 212, 255, .06) 100%);
  border: 1px solid rgba(0, 212, 255, .35);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 212, 255, .15);
}

.plan-modal__hint { margin: 16px 0 0; font-size: .84rem; text-align: center; color: var(--muted); }
.plan-modal__hint strong { color: var(--cyan); }

.plan-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }

.plan-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 46px 16px 16px;
  text-align: left;
  color: var(--white);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}

.plan-option:hover {
  background: rgba(84, 229, 246, .09);
  border-color: rgba(84, 229, 246, .6);
  transform: translateY(-2px);
}

.plan-option__radio {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  transition: .2s;
}

.plan-option:hover .plan-option__radio {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(84, 229, 246, .18);
}

.plan-option__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan-option__title { font-size: .95rem; font-weight: 600; }
.plan-option__prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-option__old { font-size: .82rem; color: rgba(255, 255, 255, .45); text-decoration: line-through; }
.plan-option__price { font-size: 1.32rem; font-weight: 700; color: var(--yellow); }
.plan-option__period { font-size: .8rem; color: rgba(255, 255, 255, .55); }
.plan-option--monthly .plan-option__price { color: var(--cyan); }

.plan-option__package {
  margin: 0 0 4px;
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--cyan);
}

.plan-option__arrow {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .4);
  transition: color .25s, transform .25s;
}

.plan-option:hover .plan-option__arrow {
  color: var(--cyan);
  transform: translateY(-50%) translateX(3px);
}

.plan-badge {
  position: absolute;
  top: -10px; right: 14px;
  padding: 4px 10px;
  color: var(--navy-800);
  background: linear-gradient(135deg, var(--yellow) 0%, #ffdb4d 100%);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  box-shadow: 0 4px 12px rgba(255, 196, 0, .35);
}

.plan-badge--region {
  background: linear-gradient(135deg, var(--cyan) 0%, #9ff2ff 100%);
  box-shadow: 0 4px 12px rgba(84, 229, 246, .3);
}

/* --- /paket-satin-al ------------------------------------------------------ */

.checkout { padding: 34px 0 56px; }

/* Adim gostergesi: referans sitedeki gibi birbirine gecen chevron (ok) seridi. */
.checkout__steps {
  display: flex;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto 32px;
}

.checkout__step {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: var(--navy-600);
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .62);
  transition: .25s;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
  margin-left: -14px;
}

.checkout__step:first-child {
  margin-left: 0;
  border-radius: 8px 0 0 8px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.checkout__step:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%);
  border-radius: 0 8px 8px 0;
}

.checkout__step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
}

/* Aktif adim en ustte dursun ki chevron'u komsusunu kesmesin. */
.checkout__step.is-active { background: var(--cyan); color: var(--navy-800); z-index: 2; }
.checkout__step.is-active span { background: rgba(12, 25, 39, .18); color: var(--navy-800); }
.checkout__step.is-done { color: var(--cyan); z-index: 1; }
.checkout__step.is-done span { background: rgba(84, 229, 246, .22); color: var(--cyan); }

.checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.checkout__summary {
  padding: 20px;
  background: var(--navy-600);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}

.checkout__summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.checkout__summary-head h1 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--cyan); line-height: 1.3; }

.checkout__summary-head a {
  flex: 0 0 auto;
  font-size: .78rem;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout__price { margin: 14px 0 16px; font-size: 1.5rem; font-weight: 700; color: var(--lime); }
.checkout__price span { font-size: .78rem; font-weight: 500; color: var(--muted); }

.checkout__features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.checkout__features li {
  position: relative;
  padding-left: 16px;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}

.checkout__features li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.checkout__logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }

.checkout__logos span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
}

.checkout__logos img { max-width: 100%; height: auto; }

.checkout__note {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: rgba(84, 229, 246, .08);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  font-size: .76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}

.checkout__form {
  padding: 26px 28px 28px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}

.checkout__panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout__panel[hidden] { display: none; }
.checkout__legend { margin: 0 0 6px; padding: 0; font-size: 1.15rem; font-weight: 700; }
.checkout__hint { margin: 0 0 20px; font-size: .84rem; line-height: 1.55; color: var(--muted); }

.checkout__form .field { margin-bottom: 14px; }
.checkout__form .form-grid .field { margin-bottom: 0; }
.checkout__form .check-field { margin-bottom: 10px; }

.checkout__actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.checkout__actions .btn { min-width: 150px; }

.form-grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* +90 onekli telefon alani */
.field--phone { position: relative; }

.field--phone .field__prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  color: rgba(255, 255, 255, .6);
  pointer-events: none;
}

.field--phone input { padding-left: 54px; }

.gender-group { display: flex; gap: 12px; margin-top: 4px; }

.gender-option {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(12, 25, 39, .55);
  border: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  font-size: .9rem;
  cursor: pointer;
  transition: .2s;
}

.gender-option:hover { border-color: rgba(84, 229, 246, .5); }
.gender-option input { accent-color: var(--cyan); width: 18px; height: 18px; }
.gender-option:has(input:checked) { border-color: var(--cyan); background: rgba(84, 229, 246, .12); }

.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkout__selected-address {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: rgba(110, 209, 120, .1);
  border: 1px solid rgba(110, 209, 120, .35);
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.5;
}

@media screen and (max-width: 1023px) {
  .checkout__grid { grid-template-columns: minmax(0, 1fr); }
  .checkout__summary { order: 2; }
  .checkout__form { order: 1; }
}

@media screen and (max-width: 767px) {
  .device-options { grid-template-columns: 1fr; }
  /* Mobilde chevron yerine sade satirlar. */
  .checkout__steps { flex-direction: column; gap: 6px; margin-bottom: 22px; }
  .checkout__step {
    justify-content: flex-start;
    padding: 11px 14px;
    font-size: .84rem;
    margin-left: 0;
    clip-path: none;
    border-radius: 8px;
  }
  .checkout__step:first-child,
  .checkout__step:last-child { clip-path: none; border-radius: 8px; }
  .checkout__form { padding: 20px 18px 22px; }
  .checkout__actions { flex-direction: column-reverse; }
  .checkout__actions .btn { width: 100%; min-width: 0; }
  .address-grid,
  .form-grid--3 { grid-template-columns: 1fr; }
  .gender-group { flex-direction: column; }
}

/* --- SMS telefon dogrulama blogu ----------------------------------------- */

.sms-verify {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 22px 20px;
  text-align: center;
  background: rgba(84, 229, 246, .07);
  border: 1px solid rgba(84, 229, 246, .3);
  border-radius: 12px;
}

.sms-verify__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  color: var(--cyan);
  background: rgba(84, 229, 246, .12);
  border: 1px solid rgba(84, 229, 246, .35);
  border-radius: 50%;
}

.sms-verify__title { margin: 0; font-size: 1rem; font-weight: 700; }
.sms-verify__text { margin: 0; max-width: 460px; font-size: .84rem; line-height: 1.55; color: var(--muted); }

.sms-verify__spinner {
  width: 26px; height: 26px;
  border: 3px solid rgba(84, 229, 246, .25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: smsSpin .9s linear infinite;
}

@keyframes smsSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .sms-verify__spinner { animation-duration: 2s; }
}

/* --- Sonuc ekrani (basarili / temsilci arayacak) -------------------------- */

.checkout__result { text-align: center; }

.checkout__result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  color: var(--navy-800);
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(110, 209, 120, .28);
}

.checkout__result .checkout__legend { font-size: 1.3rem; }
.checkout__result .checkout__hint { margin-bottom: 16px; max-width: 520px; margin-inline: auto; }

.checkout__result-note {
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 12px 16px;
  background: rgba(84, 229, 246, .08);
  border: 1px solid rgba(84, 229, 246, .3);
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}

.checkout__result .summary-list { max-width: 380px; margin-inline: auto; }
.checkout__result .checkout__actions { justify-content: center; }

/* --- Gonderim sirasindaki asamali bilgilendirme --------------------------- */

.checkout__progress { text-align: center; }
.checkout__progress .checkout__hint { margin-bottom: 22px; }

.progress-steps {
  display: grid;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.progress-steps__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  transition: .3s ease;
}

.progress-steps__label {
  font-size: .86rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .45);
  transition: .3s ease;
}

/* Isaret alani: bekleyen = bos daire, aktif = donen halka, tamam = yesil tik */
.progress-steps__mark {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  transition: .3s ease;
}

.progress-steps__item.is-active {
  background: rgba(84, 229, 246, .07);
  border-color: rgba(84, 229, 246, .3);
}

.progress-steps__item.is-active .progress-steps__label {
  color: var(--white);
  font-weight: 600;
}

.progress-steps__item.is-active .progress-steps__mark {
  border-color: rgba(84, 229, 246, .25);
  border-top-color: var(--cyan);
  animation: progressSpin .8s linear infinite;
}

.progress-steps__item.is-done {
  background: rgba(110, 209, 120, .07);
  border-color: rgba(110, 209, 120, .28);
}

.progress-steps__item.is-done .progress-steps__label { color: rgba(255, 255, 255, .82); }

.progress-steps__item.is-done .progress-steps__mark {
  background: var(--green);
  border-color: var(--green);
  animation: none;
}

/* Tik isareti */
.progress-steps__item.is-done .progress-steps__mark::after {
  content: "";
  position: absolute;
  top: 4px; left: 6px;
  width: 5px; height: 9px;
  border: solid var(--navy-800);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes progressSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .progress-steps__item.is-active .progress-steps__mark { animation-duration: 2.4s; }
}

/* Alan alti aciklama notu (orn. kilitli il bilgisi). */
.field__note {
  margin: 2px 0 0;
  font-size: .74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .48);
}

.field__note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field__note a:hover { color: var(--white); }

/* Kilitli il: degistirilemedigi gorsel olarak belli olsun. */
.address-grid select:disabled {
  opacity: .75;
  cursor: not-allowed;
}
