/* Gece Uçuşu · destek sayfası. Kırmızı palet, cam paneller, sabit 3D arka plan. */

@font-face { font-family: "Montserrat"; font-weight: 700; src: url(assets/Montserrat-Bold.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 800; src: url(assets/Montserrat-ExtraBold.ttf) format("truetype"); font-display: swap; }

:root {
  --red: #E3172F; --red-hi: #FF3347; --red-deep: #7A0614; --on-red: #fff;
  --bg: #0A0306;
  --glass: rgba(16,4,8,.66); --glass-line: rgba(255,80,95,.22);
  --text: #FFF1F2; --muted: #E7B7BD; --track: rgba(255,255,255,.12);
  --chip: rgba(255,255,255,.06); --chip-on: rgba(227,23,47,.22);
  --field: rgba(0,0,0,.35);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; height: 100svh; overflow: hidden;
  background: radial-gradient(60% 70% at 70% 45%, #3A0610, var(--bg) 70%);
  color: var(--text);
  font: 700 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
b { font-weight: 800; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red-hi); outline-offset: 3px; border-radius: 10px; }

/* ---------- arka plan ---------- */
#scene, .fallback { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.fallback { background: var(--bg) var(--img) center 20% / cover no-repeat; filter: sepia(1) hue-rotate(-50deg) saturate(4) brightness(.6); }
.shade { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,3,6,.55) 0%, transparent 18%, transparent 40%, rgba(10,3,6,.85) 75%); }

/* ---------- üst bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 18px 14px; }
.logo { font-weight: 800; font-size: 15px; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.logo i { width: 10px; height: 10px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 12px var(--red-hi); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35 } }
.login { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 14px; font-size: 13px; }

/* ---------- sahne ve paneller ---------- */
#app { position: relative; z-index: 2; height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; }
#app::-webkit-scrollbar { display: none; }
.stage { height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: flex-end; justify-content: center; padding: calc(64px + var(--safe-top)) 12px calc(12px + var(--safe-bottom)); }
.panel {
  width: 100%; max-width: 460px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-line); border-radius: 26px;
  padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  max-height: 100%; overflow-y: auto; scrollbar-width: none;
}
.panel::-webkit-scrollbar { display: none; }
.panel.center { text-align: center; align-items: center; }
h1 { font-size: clamp(22px, 6.2vw, 30px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: 22px; font-weight: 800; line-height: 1.1; }
h2 b { color: var(--red-hi); }
.sub { margin-top: 4px; color: var(--muted); font-size: 14px; font-weight: 600; }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-hi); }
.fine { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.more { align-self: center; display: block; margin: 0 auto; color: var(--muted); font-size: 12.5px; padding: 6px 10px; border-radius: 999px; background: var(--chip); }

/* hedef */
.goal-top { display: flex; justify-content: space-between; align-items: baseline; }
.num { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.num small { font-size: 13px; color: var(--muted); font-weight: 700; }
.left { font-size: 13px; color: var(--red-hi); font-weight: 800; }
.bar-track { height: 12px; border-radius: 99px; background: var(--track); overflow: hidden; margin-top: 6px; position: relative; }
.bar-fill { height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-hi));
  box-shadow: 0 0 18px var(--red); transition: width 1.8s cubic-bezier(.2,.7,.2,1); position: relative; }
.bar-fill::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-100%); animation: shine 2.8s 2s infinite; }
@keyframes shine { to { transform: translateX(100%) } }

.miles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.mile { background: var(--chip); border-radius: 12px; padding: 7px 8px; font-size: 11.5px; color: var(--muted); line-height: 1.25; position: relative; }
.mile b { display: block; color: var(--text); font-size: 13px; font-weight: 800; }
.mile.done { opacity: .55; }
.mile.done b::after { content: " ✓"; color: var(--red-hi); }
.mile.on { background: var(--chip-on); box-shadow: inset 0 0 0 1.5px var(--red); }
.mile.on b { color: var(--red-hi); }
.mile.on small { display: block; color: var(--red-hi); font-weight: 800; margin-top: 2px; }

.ladder { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ladder li { display: grid; grid-template-columns: 20px 50px 1fr auto; gap: 8px; align-items: center;
  padding: 7px 10px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.ladder li .mark { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--glass-line); display: grid; place-items: center; font-size: 10px; }
.ladder li.done { opacity: .55; }
.ladder li.done .mark { background: var(--red); border-color: var(--red); color: #fff; }
.ladder li.next { color: var(--text); background: var(--chip-on); box-shadow: inset 0 0 0 1.5px var(--red); }
.ladder li.next .n, .ladder li.next .mark, .ladder li.next .left { color: var(--red-hi); border-color: var(--red); }
.ladder li .left { font-size: 11px; white-space: nowrap; }

/* butonlar */
.ctas { display: flex; flex-direction: column; gap: 8px; }
.cta {
  width: 100%; border-radius: 18px;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, #B80F24);
  color: var(--on-red); font-size: 19px; font-weight: 800; padding: 18px 16px; letter-spacing: .01em;
  box-shadow: 0 14px 40px -8px rgba(227,23,47,.75), inset 0 1px 0 rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .12s;
}
.cta:active { transform: scale(.98); }
.cta small { font-size: 14px; font-weight: 700; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .cta:not(.cta-alt):not(.small) { animation: beat 2.6s 2.5s infinite; }
  @keyframes beat {
    0%, 100% { box-shadow: 0 14px 40px -8px rgba(227,23,47,.75), inset 0 1px 0 rgba(255,255,255,.35) }
    50% { box-shadow: 0 14px 60px -2px rgba(255,51,71,.95), inset 0 1px 0 rgba(255,255,255,.35) }
  }
}
.cta-alt { background: var(--chip); color: var(--text); box-shadow: none; border: 1px solid var(--glass-line); font-size: 15px; padding: 13px 16px; animation: none; }
.cta-alt small { color: var(--muted); }
.cta.small { font-size: 15px; padding: 13px; border-radius: 14px; }

.ticker { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ticker i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 8px var(--red-hi); animation: pulse 1.8s infinite; }
.ticker.bump { animation: bump .5s ease; }
@keyframes bump { from { transform: translateY(6px); opacity: 0 } }

/* ---------- destekçiler ---------- */
.sup-list { display: flex; flex-direction: column; gap: 5px; }
.sup-list li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px; background: var(--chip); font-size: 14px; }
.sup-list li.collapsed { display: none; }
.sup-list .rank { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sup-list .name { display: flex; align-items: center; gap: 6px; }
.sup-list .pts { color: var(--muted); font-size: 12px; }
.badge { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.b-fener { background: var(--red-hi); box-shadow: 0 0 6px var(--red-hi); }
.b-premium { background: #fff; }
.b-elite { background: #FFB84D; box-shadow: 0 0 6px #FFB84D; }
.b-ilk { background: linear-gradient(135deg, #fff, #FFB84D); box-shadow: 0 0 8px #FFB84D; border-radius: 50%; }
.sup-list li.first { background: linear-gradient(90deg, rgba(255,184,77,.18), var(--chip)); box-shadow: inset 0 0 0 1.5px rgba(255,184,77,.6); }
.sup-list li.first .rank, .sup-list li.first .pts { color: #FFB84D; font-weight: 800; }
.sup-empty { text-align: center; padding: 18px 14px; border-radius: 16px; background: var(--chip); border: 1px dashed rgba(255,184,77,.5); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sup-empty b { color: #FFB84D; font-size: 16px; }
.sup-empty p { font-size: 13px; color: var(--muted); }
.first-note { font-size: 12.5px; color: #FFB84D; font-weight: 800; text-align: center; }
.b-kurucu { background: var(--muted); }
.badge-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.badge-key span { display: flex; align-items: center; gap: 6px; }

/* ---------- kademeler ---------- */
.tier-cards { display: flex; flex-direction: column; gap: 10px; }
.tier { position: relative; background: var(--chip); border: 1.5px solid transparent; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tier header { display: flex; justify-content: space-between; align-items: baseline; }
.tier header b { font-size: 17px; }
.tier header span { font-size: 20px; font-weight: 800; color: var(--red-hi); }
.tier header span small { font-size: 12px; color: var(--muted); font-weight: 700; }
.tier ul { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--muted); }
.tier ul li::before { content: "·"; color: var(--red-hi); margin-right: 8px; }
.tier ul li b { color: var(--text); }
.tier-main { border-color: var(--red); background: var(--chip-on); }
.tier-elite { border-color: rgba(255,184,77,.45); }
.tier-elite header span { color: #FFB84D; }
.tier .pop { position: absolute; top: -9px; left: 14px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.tier .limit { font-size: 12px; color: var(--muted); margin-top: -4px; }
.tier .limit b { color: var(--text); }

/* ---------- istekler ---------- */
.req-list { display: flex; flex-direction: column; gap: 10px; }
.req { background: var(--chip); border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; }
.req-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.req-top b { font-size: 16px; }
.req-top span { font-size: 12px; color: var(--red-hi); font-weight: 800; white-space: nowrap; }
.req p { font-size: 13px; color: var(--muted); }
.req .bar-track { height: 8px; margin: 0; }
.req-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.req-meta b { color: var(--text); }
.req .cta.small { padding: 11px; font-size: 14px; animation: none; }
.req.done { box-shadow: inset 0 0 0 1.5px var(--red); }
.req-propose { border: 1px dashed var(--glass-line); background: transparent; }
.sel { width: 100%; font: 600 15px var(--font); padding: 13px 14px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--field); color: var(--text); appearance: none; }

/* ---------- sağ kenar kaydırma çubuğu ---------- */
.scrollbar { position: fixed; right: 4px; top: calc(72px + var(--safe-top)); bottom: calc(16px + var(--safe-bottom)); width: 4px; z-index: 6; border-radius: 2px; background: rgba(255,255,255,.08); opacity: .35; transition: opacity .3s; cursor: pointer; }
.scrollbar.show { opacity: 1; }
.thumb { position: absolute; left: 0; right: 0; border-radius: 2px; background: var(--red-hi); box-shadow: 0 0 8px var(--red-hi); transition: top .15s; }

/* ---------- son ekran ---------- */
#watch .cta { max-width: 280px; }
#watch h2 { font-size: 30px; }
.foot { display: flex; gap: 8px; justify-content: center; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- dialog / sheet ---------- */
dialog { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 94svh; background: transparent; color: var(--text); overflow: visible; }
dialog::backdrop { background: rgba(5,0,2,.7); backdrop-filter: blur(3px); }
.sheet { background: rgba(22,6,10,.96); backdrop-filter: blur(22px); border: 1px solid var(--glass-line);
  border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 14px; position: relative; margin: 0 auto; width: 100%; max-width: 520px;
  max-height: 94svh; overflow-y: auto; }
#sheetBody { display: flex; flex-direction: column; gap: 12px; }
.sheet .fine { margin-top: -4px; }
.sheet h2 { font-size: 24px; padding-right: 40px; }
.sheet p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.sheet p b { color: var(--red-hi); }
.x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; font-size: 24px; color: var(--muted); border-radius: 50%; }
.col { display: flex; flex-direction: column; gap: 12px; }
.sheet input[type=email], .sheet input[type=text], .sheet input[inputmode=numeric] { width: 100%; font: 600 16px var(--font); padding: 16px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--field); color: var(--text); }
.sheet input::placeholder { color: var(--muted); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amounts button, .plan-toggle button { padding: 16px 8px; border-radius: 14px; text-align: center; background: var(--chip); border: 1.5px solid transparent; }
.amounts button b, .plan-toggle button b { display: block; font-size: 17px; }
.amounts button small, .plan-toggle button small { font-size: 11px; color: var(--muted); }
.amounts button.on, .plan-toggle button.on { border-color: var(--red); background: var(--chip-on); }
.amounts button.on small, .plan-toggle button.on small { color: var(--red-hi); }
.plan-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.effect { display: flex; align-items: center; gap: 10px; padding: 12px 14px; line-height: 1.35; border-radius: 12px; background: var(--chip-on); box-shadow: inset 0 0 0 1.5px var(--red); font-size: 13px; }
.effect b { color: var(--red-hi); }
.chk { display: flex; gap: 12px; font-size: 13px; color: var(--muted); align-items: flex-start; line-height: 1.35; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.err { color: #FF6B7A; font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.done { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 8px 0; }
.done-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 800; box-shadow: 0 0 30px var(--red); }
.discord { background: #5865F2; box-shadow: none; animation: none !important; }

/* abonelik planları */
.plans { display: flex; flex-direction: column; gap: 10px; }
.plan { position: relative; text-align: left; padding: 13px 16px 12px; border-radius: 16px; background: var(--chip); border: 1.5px solid transparent; display: flex; flex-direction: column; gap: 6px; }
.plan.on { border-color: var(--red); background: var(--chip-on); box-shadow: 0 10px 30px -12px rgba(227,23,47,.6); }
.plan-pop { position: absolute; top: -10px; left: 14px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; letter-spacing: .02em; }
.plan-row { display: flex; justify-content: space-between; align-items: baseline; }
.plan-row > b { font-size: 16px; }
.plan-price { font-size: 22px; font-weight: 800; color: var(--red-hi); }
.plan-price small { font-size: 12px; color: var(--muted); font-weight: 700; }
.plan-sub { font-size: 12.5px; color: var(--muted); }
.plan-sub b { color: var(--text); }
.plan.on .plan-sub b { color: var(--red-hi); }
.plans .plan:nth-child(2) { margin-top: 4px; }

/* ---------- milestone flaşı ---------- */
.flash { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(227,23,47,.6), rgba(10,3,6,.94) 70%); animation: flashin .4s ease; }
@keyframes flashin { from { opacity: 0 } }
.flash-inner { text-align: center; padding: 20px; }
.flash-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 10px; }
.flash-title { font-size: 30px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.flash-next { font-size: 14px; color: var(--muted); }

/* ---------- demo ---------- */
.demo { position: fixed; top: calc(60px + var(--safe-top)); right: 28px; z-index: 15; display: flex; gap: 4px; opacity: .45; }
.demo button { font-size: 10px; padding: 5px 8px; border-radius: 6px; background: rgba(0,0,0,.6); border: 1px solid var(--glass-line); }

/* ---------- kısa ekranlar ---------- */
@media (max-height: 700px) {
  .panel { gap: 10px; padding: 14px 14px 12px; }
  .mile { padding: 5px 7px; font-size: 10.5px; }
  .cta { padding: 15px; }
  #hero .sub { display: none; }
}
@media (max-height: 600px) { .miles { display: none; } }

/* ---------- masaüstü ---------- */
@media (min-width: 900px) {
  .stage { justify-content: flex-start; align-items: center; padding: 8vh 5vw; }
  .panel { padding: 26px 24px 22px; gap: 18px; }
  h1 { font-size: 34px; }
  .topbar { padding: 22px 5vw; }
  dialog { margin: auto; }
  .sheet { border-radius: 26px; max-width: 560px; padding: 28px 28px 26px; }
}

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