/* X Tube Fly mağaza tasarım sistemi.
 *
 * Palet masaüstü uygulamanın paletiyle AYNI (studio_theme.PALETTE): renkler orada
 * tahminle değil WCAG kontrastı ölçülerek seçildi, bu yüzden burada yeniden uydurmak
 * yerine değerler birebir taşındı. Okunabilirlik kuralı: parlak tonlar (primary,
 * success, warning, danger) koyu zemin üzerinde YAZI içindir; beyaz yazı taşıyan dolu
 * butonlar için *-fill karşılıkları kullanılır.
 */

:root {
  --bg: #0F172A;
  --panel: #1B2740;
  --input: #22304D;
  --line: #3F5075;
  --line-soft: #2C3B5C;
  --text: #E5E7EB;
  --muted: #94A3B8;
  --primary: #38BDF8;
  --primary-fill: #1D4ED8;
  --primary-fill-active: #1E40AF;
  --success-fill: #15803D;
  --warning: #FBBF24;
  --danger: #F87171;
  --success: #34D399;
  --sidebar: #0B1220;

  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(3, 7, 18, .45);
}

* { box-sizing: border-box; }

/* Sayfa içi bağlantılar anında atlar: yumuşak kaydırma, otomasyon/erişilebilirlik
   araçlarında tıklamayı "kararsız" hâle getiriyordu ve hareket azaltma tercihine uymuyor. */
html { scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: "Cascadia Mono", Consolas, "Courier New", monospace; }

/* ---------- üst bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 66px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.06rem; color: var(--text); letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-fill) 100%);
  display: grid; place-items: center;
  color: #fff; font-size: .82rem; font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav-spacer { flex: 1; }

@media (max-width: 860px) { .nav { display: none; } }

/* ---------- düğmeler ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn-primary { background: var(--primary-fill); color: #fff; }
.btn-primary:hover { background: var(--primary-fill-active); }

.btn-ghost { background: var(--input); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: #2C3E66; }

.btn-quiet { background: transparent; color: var(--muted); border-color: var(--line-soft); }
.btn-quiet:hover { color: var(--text); border-color: var(--line); }

.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 76px 0 64px; border-bottom: 1px solid var(--line-soft); }
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 620px;
  background: radial-gradient(60% 60% at 28% 30%, rgba(56, 189, 248, .18), transparent 68%),
              radial-gradient(50% 50% at 78% 10%, rgba(29, 78, 216, .26), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 52px 0 46px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--muted); font-size: .84rem;
}
.eyebrow strong { color: var(--primary); font-weight: 600; }

.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lede { font-size: 1.09rem; color: var(--muted); max-width: 34em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { font-size: .88rem; color: var(--muted); }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px;
  padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.fact strong { display: block; font-size: 1.35rem; color: var(--text); }
.fact span { font-size: .84rem; color: var(--muted); }

/* ---------- uygulama görseli (pencere çerçevesi) ---------- */

.shot { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 13px; background: var(--sidebar); border-bottom: 1px solid var(--line-soft); }
.shot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-title { margin-left: 8px; font-size: .8rem; color: var(--muted); }
.shot-body { position: relative; background: var(--input); aspect-ratio: 16 / 10; }
.shot-body img { width: 100%; height: 100%; object-fit: cover; }
.shot-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 6px;
  text-align: center; color: var(--muted); font-size: .88rem; padding: 20px;
}
.shot-placeholder strong { color: var(--text); }

/* ---------- bölümler ---------- */

section { padding: 62px 0; }
section + section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 42em; margin-bottom: 34px; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-icon {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1.05rem;
  background: var(--input); border: 1px solid var(--line);
}

.steps { counter-reset: adim; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px 22px;
}
.step::before {
  counter-increment: adim; content: counter(adim);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: var(--primary-fill); color: #fff;
}
.step h3 { margin-bottom: .2em; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- fiyat ---------- */

.price-card {
  display: grid; grid-template-columns: 1.1fr .9fr;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
}
@media (max-width: 880px) { .price-card { grid-template-columns: 1fr; } }

.price-main { padding: 30px; }
.price-side { padding: 30px; background: var(--sidebar); border-left: 1px solid var(--line-soft); }
@media (max-width: 880px) { .price-side { border-left: 0; border-top: 1px solid var(--line-soft); } }

.price-amount { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; }
.price-amount .num { font-size: 2.5rem; font-weight: 700; letter-spacing: -.02em; }
.price-amount .cur { font-size: 1.15rem; color: var(--muted); }
.price-was { color: var(--muted); font-size: .92rem; }

.tick { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tick li { position: relative; padding-left: 26px; font-size: .95rem; }
.tick li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; }

/* ---------- formlar ---------- */

.form-card {
  max-width: 460px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field textarea, .field select {
  width: 100%; padding: 12px 13px;
  background: var(--input); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18);
}
.field-hint { margin-top: 6px; font-size: .82rem; color: var(--muted); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; }

.notice { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid var(--line); background: var(--input); }
.notice-warn { border-color: #B45309; background: rgba(251, 191, 36, .10); }
.notice-good { border-color: var(--success-fill); background: rgba(52, 211, 153, .08); }
.notice-bad { border-color: #B91C1C; background: rgba(248, 113, 113, .10); }

/* ---------- ödeme yöntemi seçimi ---------- */

.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 880px) { .pay-methods { grid-template-columns: 1fr; } }

.pay-method {
  display: block; position: relative;
  padding: 20px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.pay-method:hover { border-color: var(--line); }
.pay-method input { position: absolute; opacity: 0; }
.pay-method h3 { margin: 0 0 .3em; font-size: 1rem; }
.pay-method p { margin: 0; font-size: .88rem; color: var(--muted); }
.pay-method:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56, 189, 248, .16); }
.pay-method:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.pay-method .tag {
  position: absolute; top: 14px; right: 14px;
  font-size: .72rem; padding: 3px 8px; border-radius: 999px;
  background: var(--input); color: var(--muted); border: 1px solid var(--line);
}
.pay-method .tag-good { color: var(--success); border-color: var(--success-fill); }

/* ---------- kripto varlık seçimi ---------- */

.assets { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.asset {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; cursor: pointer; font-size: .9rem;
  background: var(--input); border: 1px solid var(--line); border-radius: 999px;
}
.asset input { position: absolute; opacity: 0; }
.asset:has(input:checked) { background: var(--primary-fill); border-color: var(--primary-fill); color: #fff; }

/* ---------- bilgi tablosu (IBAN, tutar) ---------- */

.kv { width: 100%; border-collapse: collapse; font-size: .95rem; }
.kv th, .kv td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.kv th { color: var(--muted); font-weight: 500; width: 38%; }
.kv td strong { font-size: 1.02rem; }
.copy-row { display: flex; align-items: center; gap: 10px; }
.copy-btn {
  padding: 6px 11px; font-size: .8rem; cursor: pointer;
  background: var(--input); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
}
.copy-btn:hover { background: #2C3E66; }

/* ---------- paneller / üye alanı ---------- */

.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.panel-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--sidebar);
}
.panel-head h2 { margin: 0; font-size: 1.05rem; }
.panel-body { padding: 20px; }

.status {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; border: 1px solid var(--line); background: var(--input); color: var(--muted);
}
.status-ok { color: var(--success); border-color: var(--success-fill); background: rgba(52, 211, 153, .08); }
.status-wait { color: var(--warning); border-color: #B45309; background: rgba(251, 191, 36, .10); }
.status-bad { color: var(--danger); border-color: #B91C1C; background: rgba(248, 113, 113, .10); }

.key-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--input); border: 1px dashed var(--line);
}
.key-box code { font-size: 1.02rem; letter-spacing: .02em; color: var(--text); }

/* ---------- SSS ---------- */

.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 4px 18px; }
.faq summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }

/* ---------- yasal sayfa ---------- */

.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.doc h2 { font-size: 1.15rem; margin-top: 1.8em; }
.doc p, .doc li { color: #CBD5E1; font-size: .96rem; }
.doc ul { padding-left: 20px; }
.doc ul li { margin-bottom: .4em; }
.doc-meta { color: var(--muted); font-size: .88rem; margin-bottom: 28px; }

/* ---------- alt bilgi ---------- */

footer { padding: 44px 0 34px; margin-top: 20px; border-top: 1px solid var(--line-soft); background: var(--sidebar); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
footer h4 { margin: 0 0 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer li a { color: #CBD5E1; font-size: .93rem; }
.foot-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--muted); font-size: .85rem;
}
.foot-bottom a { color: var(--muted); }

/* ---------- canlı destek balonu ---------- */

.destek-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
  background: var(--primary-fill); color: #fff; border: none;
  font-size: 1.35rem; line-height: 1;
  box-shadow: 0 12px 28px rgba(3, 7, 18, .5);
  display: grid; place-items: center;
  transition: background .15s ease, transform .08s ease;
}
.destek-btn:hover { background: var(--primary-fill-active); }
.destek-btn:active { transform: scale(.96); }
.destek-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.destek-rozet {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--success-fill); color: #fff;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px;
}

.destek-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 61;
  width: 384px; max-width: calc(100vw - 32px);
  max-height: min(72vh, 620px);
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.destek-panel[hidden] { display: none; }

.destek-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--sidebar); border-bottom: 1px solid var(--line-soft);
}
.destek-head h2 { margin: 0; font-size: .98rem; }
.destek-head .muted { font-size: .78rem; margin: 0; }
.destek-kapat {
  margin-left: auto; background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 4px 6px;
}
.destek-kapat:hover { color: var(--text); }

.destek-body { padding: 16px; overflow-y: auto; display: grid; gap: 14px; }
.destek-body > *:first-child { margin-top: 0; }

.destek-basliklar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.destek-baslik {
  text-align: left; cursor: pointer; padding: 10px 12px;
  background: var(--input); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .84rem; line-height: 1.35;
}
.destek-baslik:hover { border-color: var(--primary); background: #2C3E66; }

.destek-makale {
  background: var(--input); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 15px;
}
.destek-makale h3 { margin: 0 0 .4em; font-size: .98rem; }
.destek-makale p { margin: 0; font-size: .88rem; color: #CBD5E1; white-space: pre-line; }
.destek-kaynak { margin-top: 10px; font-size: .76rem; color: var(--muted); }

.destek-islem { display: flex; flex-wrap: wrap; gap: 8px; }
.destek-mini {
  padding: 7px 12px; font-size: .82rem; cursor: pointer;
  background: transparent; color: var(--primary);
  border: 1px solid var(--line); border-radius: 999px;
}
.destek-mini:hover { border-color: var(--primary); }

.destek-form { display: grid; gap: 10px; }
.destek-form input, .destek-form textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: .9rem;
  background: var(--input); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.destek-form textarea { min-height: 84px; resize: vertical; }
.destek-form label { font-size: .82rem; color: var(--muted); }

.destek-not {
  padding: 11px 13px; border-radius: var(--radius-sm); font-size: .85rem;
  background: var(--input); border: 1px solid var(--line);
}
.destek-not-good { border-color: var(--success-fill); background: rgba(52, 211, 153, .08); }
.destek-not-bad { border-color: #B91C1C; background: rgba(248, 113, 113, .10); }

.destek-foot {
  padding: 12px 16px; border-top: 1px solid var(--line-soft); background: var(--sidebar);
  font-size: .8rem; color: var(--muted);
}

@media (max-width: 620px) {
  .destek-btn { right: 14px; bottom: 14px; }
  .destek-panel {
    right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%;
    max-height: 82vh; border-radius: var(--radius) var(--radius) 0 0;
  }
  .destek-basliklar { grid-template-columns: 1fr; }
}

/* ---------- yardımcılar ---------- */

.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.hide { display: none !important; }
