/* Renkler XsTv tanıtım sayfasından (canli-mac/src/Tanitim.css) */
:root {
  --zemin: #0d1016;
  --yuzey: #151922;
  --yuzey-2: #1c212b;
  --cizgi: rgb(255 255 255 / 0.08);
  --cizgi-2: rgb(255 255 255 / 0.14);
  --metin: #eef0f4;
  --soluk: #8e96a6;
  --turkuaz: #2ebcb3;
  --turkuaz-koyu: #17857e;
  --turuncu: #ff9a00;
  --koyu-metin: #0d1f1e;
  --yazi-baslik: "Archivo Black", sans-serif;
  --yazi: "Hind", -apple-system, system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--zemin);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--zemin);
  color: var(--metin);
  font-family: var(--yazi);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* XsTv'deki sönük nokta deseni; üstte biraz, aşağı doğru kaybolur */
.nokta-zemin {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.13) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.sayfa {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  display: grid;
  gap: 16px;
}

.kart {
  background: var(--yuzey);
  border: 1px solid var(--cizgi);
  border-radius: 24px;
  padding: 24px 20px;
}

/* Ana kart */
.ana-kart {
  position: relative;
  overflow: hidden;
}
.ana-kart::before {
  /* tek, hafif bir turkuaz ışık; süs değil, derinlik için */
  content: "";
  position: absolute;
  top: -140px;
  left: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(46 188 179 / 0.16), transparent 70%);
  pointer-events: none;
}
.ana-kart > * {
  position: relative;
}

.ust-satir {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.rozet {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--cizgi-2);
  border-radius: 999px;
  color: var(--turkuaz);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-top: 18px;
  font-family: var(--yazi-baslik);
  font-weight: 400;
  font-size: clamp(36px, 10vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  white-space: pre-line;
}

.aciklama {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--soluk);
  font-size: 17px;
}

/* Panelden gelen kısa duyuru */
.duyuru {
  display: block;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgb(255 154 0 / 0.35);
  background: rgb(255 154 0 / 0.08);
  color: var(--metin);
  font-size: 15px;
  text-decoration: none;
}
.duyuru[hidden] {
  display: none;
}

/* Bağlantı düğmeleri */
.baglantilar {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.guncel-not {
  margin: -2px 0 2px;
  text-align: center;
  color: var(--soluk);
  font-size: 13px;
}

/* XsTv'deki yükleme düğmeleri */
.yukle {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.yukle[data-tek] {
  grid-template-columns: 1fr;
}
.yukle-dugme[hidden] {
  display: none;
}
.yukle-dugme {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.yukle-dugme:active {
  transform: scale(0.98);
}
.yukle-dugme:hover {
  filter: brightness(1.06);
}
.yukle-dugme.turkuaz {
  background: var(--turkuaz);
  color: var(--koyu-metin);
}
.yukle-dugme.turuncu {
  background: var(--turuncu);
  color: #1f1300;
}
.yukle-ikon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgb(255 255 255 / 0.22);
}
.yukle-yazi {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}
.yukle-yazi small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}
.yukle-yazi strong {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
}
.kucuk-link {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: none;
  color: var(--soluk);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.kucuk-link[hidden] {
  display: none;
}
.dugme {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--metin);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.dugme:active {
  transform: scale(0.98);
}
.dugme:focus-visible {
  outline: 2px solid var(--turkuaz);
  outline-offset: 2px;
}
.dugme.ana {
  min-height: 60px;
  font-size: 18px;
  background: var(--turkuaz);
  color: var(--koyu-metin);
}
.dugme.ana:hover {
  background: #3ccbc2;
}
.dugme.bildirim {
  width: 100%;
  margin-top: 10px;
  gap: 8px;
  background: var(--yuzey-2);
  border-color: rgb(255 154 0 / 0.45);
  color: var(--turuncu);
}
.dugme.bildirim[data-acik] {
  border-color: var(--cizgi);
  color: var(--soluk);
}
.dugme.tamam {
  width: 100%;
  margin-top: 16px;
  background: var(--turkuaz);
  color: var(--koyu-metin);
}
.dugme.cerceve {
  background: var(--yuzey-2);
  border-color: var(--cizgi);
}
.dugme.cerceve:hover {
  border-color: var(--cizgi-2);
}
.dugme[hidden] {
  display: none;
}

/* Bugünün kodu */
.kod-kutu {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: var(--yuzey-2);
  border: 1px dashed var(--cizgi-2);
}
.kod-kutu[data-durum="acik"] {
  border-style: solid;
  border-color: rgb(46 188 179 / 0.45);
}
.kod-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.etiket {
  color: var(--soluk);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kopyala {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--cizgi-2);
  background: transparent;
  color: var(--metin);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.kod {
  margin-top: 8px;
  font-family: var(--yazi-baslik);
  font-size: clamp(26px, 8vw, 36px);
  letter-spacing: 0.08em;
  word-break: break-all;
}
.kod-gizli {
  color: var(--soluk);
  filter: blur(3px);
  user-select: none;
}
.kod-not {
  margin-top: 6px;
  color: var(--soluk);
  font-size: 14px;
}
.geri-sayim {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--cizgi);
  color: var(--metin);
  font-size: 14px;
  font-weight: 600;
}

/* Bilgi kutucukları */
.bilgiler {
  margin-top: 16px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bilgiler li {
  padding: 14px 10px;
  border-radius: 16px;
  min-width: 0;
  border: 1px solid var(--cizgi);
}
.bilgiler strong {
  display: block;
  font-family: var(--yazi-baslik);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}
.bilgiler span {
  display: block;
  margin-top: 4px;
  color: var(--soluk);
  font-size: 13px;
  line-height: 1.3;
}

.durum {
  margin-top: 16px;
  color: var(--soluk);
  font-size: 14px;
}
.durum:empty {
  display: none;
}
.durum[data-tur="iyi"] {
  color: var(--turkuaz);
}

/* Kurulum */
h2 {
  font-family: var(--yazi-baslik);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}
.alt-baslik {
  margin-top: 4px;
  color: var(--soluk);
}
.adimlar {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.adim-kart {
  padding: 18px;
  border-radius: 18px;
  background: var(--yuzey-2);
  border: 1px solid var(--cizgi);
}
.adim-kart[data-senin] {
  border-color: rgb(46 188 179 / 0.45);
}
.adim-kart h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}
.adim-kart[data-senin] h3::after {
  content: "Senin telefonun";
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(46 188 179 / 0.14);
  color: var(--turkuaz);
  font-size: 12px;
  font-weight: 600;
}
.adim-kart ol,
.pencere-adim {
  margin-top: 10px;
  padding-left: 0;
  list-style: none;
  counter-reset: adim;
  display: grid;
  gap: 8px;
}
.adim-kart li,
.pencere-adim li {
  counter-increment: adim;
  position: relative;
  min-height: 26px;
  padding: 1px 0 0 36px;
  color: var(--soluk);
}
.adim-kart li::before,
.pencere-adim li::before {
  content: counter(adim);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yuzey);
  border: 1px solid var(--cizgi-2);
  color: var(--metin);
  font-size: 13px;
  font-weight: 700;
}
.adim-kart b,
.pencere-adim b {
  color: var(--metin);
  font-weight: 600;
}

.dip {
  padding: 8px 0 0;
  text-align: center;
  color: var(--soluk);
  font-size: 13px;
}

/* Açılır pencereler */
.pencere {
  margin: auto;
  width: min(92vw, 440px);
  padding: 20px;
  border: 1px solid var(--cizgi-2);
  border-radius: 22px;
  background: var(--yuzey);
  color: var(--metin);
}
.pencere::backdrop {
  background: rgb(0 0 0 / 0.6);
}
.pencere-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pencere h3 {
  font-size: 18px;
}
.kapat {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cizgi-2);
  background: transparent;
  color: var(--metin);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
/* Alttaki kısa bildirim */
.bildiri {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--metin);
  color: var(--zemin);
  font-weight: 600;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.bildiri[data-gorunur] {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Sık sorulanlar */
.sss {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.sss details {
  border-radius: 14px;
  border: 1px solid var(--cizgi);
  background: var(--yuzey-2);
}
.sss summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sss summary::-webkit-details-marker {
  display: none;
}
.sss summary::after {
  content: "+";
  color: var(--soluk);
  font-size: 20px;
  line-height: 1;
}
.sss details[open] summary::after {
  content: "−";
}
.sss p {
  padding: 0 16px 14px;
  color: var(--soluk);
}
.sss b {
  color: var(--metin);
  font-weight: 600;
}

/* Telegram/Instagram içi tarayıcı uyarısı */
.uyari-serit {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--turuncu);
  color: #1f1300;
  font-size: 14px;
  font-weight: 600;
}
.uyari-serit[hidden] {
  display: none;
}
.uyari-serit a {
  flex: none;
  padding: 6px 12px;
  border-radius: 10px;
  background: #1f1300;
  color: var(--turuncu);
  text-decoration: none;
}

.pencere-not {
  margin-top: 12px;
  color: var(--soluk);
  font-size: 14px;
}
.pencere-not b {
  color: var(--metin);
}

/* Ana ekrandan açılınca yükleme ve kurulum adımlarına gerek yok */
.kurulu .kurulum,
.kurulu .yukle,
.kurulu .kucuk-link {
  display: none;
}

/* Geniş ekran: iki sütun */
@media (min-width: 900px) {
  .sayfa {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    padding-top: 40px;
    gap: 20px;
  }
  .kart {
    padding: 36px;
  }
  .ana-kart {
    grid-row: span 2;
  }
  .dip {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .bilgiler,
  .yukle {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
