/*
 * Giris ekranlari. Sakin, statik zemin: surekli calisan animasyon yok (eski parcacik agi, donen kenar,
 * aurora ve akan izgara her karede tam ekran boyama istiyordu, form bu yuzden takiliyordu).
 * Hareket sadece giriste bir kez ve etkilesimde; hepsi transform / opacity.
 */
:root {
    --bg: #0c0c0f;
    --surface: #131317;
    --surface-2: #18181d;
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .13);
    --text: #ececf1;
    --muted: #8e8e9a;
    --dim: #5f5f6a;
    --accent: #a193f2;
    --accent-soft: rgba(161, 147, 242, .16);
    --red: #f0677b;
    --amber: #e3a34b;
    --green: #4fc995;
    --r: 4px;
    --r-sm: 2px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --hd: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --tx: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body.auth {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    background: var(--bg); color: var(--text);
    font: 15px/1.55 var(--tx); font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
/* Zemin: tek bir yumusak isik + ince gren. Sabit, bir kez boyanir. */
body.auth::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(900px 520px at 78% -8%, rgba(161, 147, 242, .07), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
::selection { background: var(--accent-soft); }

/* ------------------------------------------------------------ yerlesim */
.auth-wrap {
    position: relative; z-index: 1; flex: 1;
    display: grid; place-items: center;
    width: 100%; padding: 48px 16px 24px;
}
.auth-wrap.has-hero { max-width: 1120px; margin: 0 auto; }
@media (min-width: 900px) {
    .auth-wrap.has-hero { grid-template-columns: minmax(0, 1fr) 400px; justify-items: start; gap: 48px; padding-inline: 32px; }
}
@media (min-width: 1180px) {
    .auth-wrap.has-hero { grid-template-columns: minmax(0, 1fr) 420px; gap: 96px; padding-inline: 40px; }
}
.panel { width: min(420px, 100%); justify-self: center; }

/* ------------------------------------------------------------ hero */
.hero { display: none; max-width: 500px; }
@media (min-width: 900px) { .hero { display: block; } }
.hero h2 {
    margin: 0 0 22px; font: 600 clamp(40px, 4.4vw, 58px)/1.04 var(--hd); letter-spacing: -.035em;
    color: var(--text); text-wrap: balance;
}
.hero h2 em { font-style: normal; color: var(--muted); }
.hero .lede { max-width: 42ch; margin: 0 0 40px; color: var(--muted); font-size: 16px; text-wrap: pretty; }

/*
 * Talep akisi (auth.js oynatir). Satir durumlari: bos = sirada, .on = oluyor, .done = bitti.
 * JS yoksa .sim.run eklenmez ve tum satirlar bitmis haliyle gorunur. Sadece transform / opacity degisir.
 */
.sim { --p: 1; position: relative; list-style: none; margin: 0; padding: 0; max-width: 440px; }
.sim::before, .sim::after {
    content: ""; position: absolute; left: 11px; top: 22px; bottom: 30px; width: 1px; background: var(--line-2);
}
.sim::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p)); transition: transform .9s var(--ease); }
.sim li {
    position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 16px; align-items: start;
    padding: 12px 0 14px;
}
.sim .n {
    position: relative; z-index: 1; width: 23px; height: 23px; border-radius: var(--r-sm); display: grid; place-items: center;
    background: rgba(255, 255, 255, .07);
    font: 500 10.5px var(--mono); color: var(--dim); font-variant-numeric: tabular-nums;
    transition: background-color .3s, color .3s;
}
.sim .n::after {
    content: ""; position: absolute; width: 4px; height: 8px; margin-top: -2px; border: solid var(--bg); border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg) scale(0); transition: transform .35s var(--ease);
}
.sim li > div { min-width: 0; }
.sim b { display: block; font: 500 14.5px/1.4 var(--tx); color: var(--text); transition: color .3s; }
.sim .d { display: flex; align-items: center; gap: 8px; height: 28px; margin: 6px 0 0; font-size: 13px; color: var(--muted); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.sim time { padding-top: 3px; font: 500 11.5px var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; transition: opacity .4s; }

.sim .chip { padding: 3px 9px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font-size: 12.5px; white-space: nowrap; }
.sim .price { font: 600 15px var(--hd); letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; min-width: 56px; }
.sim .bar { position: relative; flex: none; width: 96px; height: 3px; border-radius: 0; overflow: hidden; background: var(--line-2); }
.sim .bar i { position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(1); }
.sim .bubble {
    position: relative; max-width: 100%; padding: 6px 11px; border-radius: var(--r-sm);
    background: var(--surface-2); color: var(--text); font-size: 13px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sim li.done .n, .sim:not(.run) .n { background: var(--text); color: transparent; }
.sim li.done .n::after, .sim:not(.run) .n::after { transform: rotate(45deg) scale(1); }

/*
 * Oynatma: sirada bekleyen satir tamamen gizli. Sirasi gelince once numara yerine oturur, baslik soldan
 * saga acilir (clip-path), ardindan detay gelir. Arka plandaki cizgi gizlenir; dolan cizgi aktif adima kadar uzar.
 */
.sim.run::before { opacity: 0; }
.sim.run .n { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .25s, background-color .3s, color .3s; }
.sim.run b { clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease) .12s, opacity .3s .12s, transform .6s var(--ease) .12s; }
.sim.run .d { transition: opacity .45s var(--ease) .38s, transform .45s var(--ease) .38s; }
.sim.run li:not(.on):not(.done) .n { opacity: 0; transform: scale(.4); }
.sim.run li:not(.on):not(.done) b { opacity: 0; clip-path: inset(0 100% 0 0); transform: translate3d(-8px, 0, 0); }
.sim.run li:not(.on):not(.done) .d { opacity: 0; transform: translate3d(0, 6px, 0); }
.sim.run li:not(.done) time { opacity: 0; }
.sim.run li.on .n { background: var(--accent-soft); color: var(--text); }
.sim.run li:not(.on):not(.done) .bar i { transform: scaleX(0); }
.sim.run li.on .bar i { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.4, 0, .2, 1); }
.sim.run li.on .bubble::after { content: ""; display: inline-block; width: 1.5px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--text); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* Turlar arasi: "Yeni talep bekleniyor" satiri, ilk adimin yerinde durur; talep gelince ona birakir */
.stage .idle {
    position: absolute; left: 0; top: 12px; margin: 0; display: flex; align-items: center; gap: 16px;
    font-size: 14px; color: var(--muted); opacity: 0; transform: translate3d(0, 6px, 0); pointer-events: none;
    transition: opacity .35s, transform .45s var(--ease);
}
.stage.idle .idle { opacity: 1; transform: none; }
.idle .scan { position: relative; width: 23px; height: 23px; border-radius: var(--r-sm); overflow: hidden; background: rgba(255, 255, 255, .07); }
.idle .scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(to bottom, transparent, rgba(161, 147, 242, .55)); animation: scan 1.1s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes scan { from { transform: translate3d(0, -100%, 0); } to { transform: translate3d(0, 250%, 0); } }
.idle .dots { margin-left: -16px; min-width: 1.2em; }
.idle .dots::after { content: ""; animation: dots 1.2s steps(1) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.stage:not(.idle) .idle .scan::after, .stage:not(.idle) .idle .dots::after { animation: none; }

/*
 * Final: adimlar ortada toplanir (--gy: satirin sahne merkezine uzakligi), yerine kazanc karti acilir,
 * sonra kart yukari cikip kaybolur ve siradaki talep alttan gelir.
 */
.stage { position: relative; max-width: 440px; }
.sim li { transition: opacity .45s var(--ease), transform .6s var(--ease); }
.sim::before, .sim::after { transition: transform .9s var(--ease), opacity .3s; }
.stage.gather .sim li {
    opacity: 0; transform: translate3d(0, var(--gy, 0), 0) scale(.86);
    transition: transform .6s cubic-bezier(.6, 0, .8, .25), opacity .3s .28s; transition-delay: var(--gd, 0s), calc(var(--gd, 0s) + .28s);
}
.stage.gather .sim::before, .stage.gather .sim::after { opacity: 0; }
.stage.enter .sim li { opacity: 0; transform: translate3d(0, 14px, 0); transition: none; }
/* Sifirlarken satir icindekiler de aninda gizlenir; yoksa onceki turun basliklari bir an geri gorunur */
.stage.enter .sim li *, .stage.enter .sim li *::after { transition: none !important; }
.stage.enter .sim::before, .stage.enter .sim::after { opacity: 0; transition: none; }
.stage.entering .sim li { transition-delay: var(--ed, 0s); }

.payout, .rankup {
    position: absolute; left: 0; right: 0; top: 50%; padding: 22px 24px 20px; border-radius: var(--r);
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 32px 64px -32px rgba(4, 4, 12, .8);
    opacity: 0; transform: translate3d(0, -50%, 0) scale(.9); pointer-events: none;
    transition: opacity .25s, transform .7s cubic-bezier(.34, 1.4, .64, 1);
}
.stage.paid .payout { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); }
.stage.out .payout { opacity: 0; transform: translate3d(0, calc(-50% - 18px), 0) scale(.98); transition: opacity .4s, transform .5s var(--ease); }
.payout p, .rankup p { margin: 0; }
.payout .ph, .rankup .ph { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); font-weight: 500; }
.payout .ok, .rankup .ok { width: 20px; height: 20px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(79, 201, 149, .14); color: var(--green); }
.payout .ok .i, .rankup .ok .i { width: 12px; height: 12px; stroke-width: 3; }
.payout .route, .rankup .route { margin-left: auto; font-size: 12.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.payout .amt { margin: 14px 0 18px !important; font: 600 46px/1 var(--hd); letter-spacing: -.035em; color: var(--green); font-variant-numeric: tabular-nums; }
.payout .pf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 4px; }
.payout .pf > div:first-child { position: relative; }
.payout small { display: block; font-size: 12px; color: var(--muted); }
.payout .total { font: 600 18px var(--hd); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.payout .plus { position: absolute; left: 100%; bottom: 2px; margin-left: 8px; font: 500 12px var(--mono); font-style: normal; color: var(--green); white-space: nowrap; opacity: 0; }
.stage.paid .payout .plus { animation: plus 1.3s var(--ease) .55s both; }
@keyframes plus { 0% { opacity: 0; transform: translate3d(0, 6px, 0); } 25% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, -10px, 0); } }
.payout .bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.payout .bars i {
    width: 7px; height: 100%; border-radius: 0; background: var(--line-2);
    transform-origin: bottom; transform: scaleY(var(--h, .3)); transition: transform .7s cubic-bezier(.34, 1.3, .64, 1);
}
.payout .bars i:last-child { background: var(--green); }

/* Ikinci final: boost biter, rank ikonu yenisine gecer, 5 yildizli yorum gelir */
.stage.ranked .rankup { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); }
.stage.rout .rankup { opacity: 0; transform: translate3d(0, calc(-50% - 18px), 0) scale(.98); transition: opacity .4s, transform .5s var(--ease); }
.rankup .ru { display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; align-items: center; gap: 6px; margin: 18px 0 16px; }
.rankup .rk { position: relative; margin: 0; display: grid; justify-items: center; gap: 6px; }
.rankup .rk img { width: 46px; height: 46px; transition: opacity .5s, transform .5s var(--ease); }
.rankup figcaption { font-size: 12.5px; color: var(--muted); white-space: nowrap; transition: color .4s; }
.rankup .to img { opacity: .22; transform: scale(.82); }
.rankup .to figcaption { color: var(--dim); }
.rankup .track { position: relative; height: 2px; margin-bottom: 22px; border-radius: 0; background: var(--line-2); overflow: hidden; }
.rankup .track i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--muted), var(--text)); transform-origin: left; transform: scaleX(0); }
.rankup.fill .track i { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.rankup.up .from img { opacity: .35; transform: scale(.88); }
.rankup.up .to img { opacity: 1; animation: rankPop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.rankup.up .to figcaption { color: var(--text); }
@keyframes rankPop { from { opacity: .22; transform: scale(.82); } 55% { transform: scale(1.16); } to { opacity: 1; transform: scale(1); } }
/* Kenari olmayan yumusak isik (radial, disi tamamen seffaf): yeni rankin arkasinda bir kez parlar */
.rankup .ring { position: absolute; top: 23px; left: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; background: radial-gradient(closest-side, rgba(236, 236, 241, .28), rgba(161, 147, 242, .12) 55%, transparent); opacity: 0; pointer-events: none; }
.rankup.up .ring { animation: ring 1.2s var(--ease) .05s both; }
@keyframes ring { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
.rankup .rv { display: flex; align-items: center; gap: 12px; padding-top: 2px; min-width: 0; }
.rankup .stars { display: flex; gap: 3px; flex: none; }
.rankup .stars svg { width: 15px; height: 15px; fill: var(--amber); opacity: 0; transform: scale(.4); }
.rankup.stars .stars svg { animation: star .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.rankup.stars .stars svg:nth-child(2) { animation-delay: .08s; }
.rankup.stars .stars svg:nth-child(3) { animation-delay: .16s; }
.rankup.stars .stars svg:nth-child(4) { animation-delay: .24s; }
.rankup.stars .stars svg:nth-child(5) { animation-delay: .32s; }
@keyframes star { to { opacity: 1; transform: scale(1); } }
.rankup q { min-width: 0; font-size: 13px; color: var(--muted); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translate3d(6px, 0, 0); transition: opacity .5s .45s, transform .5s var(--ease) .45s; }
.rankup q::before { content: "“"; } .rankup q::after { content: "”"; }
.rankup.stars q { opacity: 1; transform: none; }

/* ------------------------------------------------------------ pence */
/*
 * Gorsel kartin icinde, sag ust koseye yaslanir; pence koseyi tutar, izler sol alta dogru uzanir.
 * Icerigin (yazi, alanlar, buton) arkasinda kalir ve kosedan uzaklastikca soner: hicbir seyin ustune binmez.
 * Ilk acilista koseden hafifce kayarak bir kez belirir.
 */
.card { overflow: hidden; }
.card > :not(.claw) { position: relative; z-index: 1; }
.claw {
    position: absolute; z-index: 0; top: -22px; right: -34px; pointer-events: none; user-select: none;
    width: 440px; max-width: none; height: auto;
    /* Sadece koseyi kaplar: baslik ve alt yazinin baslangicina gelmeden tamamen soner */
    -webkit-mask-image: radial-gradient(100% 115% at 100% 0, #000 20%, rgba(0, 0, 0, .5) 30%, transparent 40%);
    mask-image: radial-gradient(100% 115% at 100% 0, #000 20%, rgba(0, 0, 0, .5) 30%, transparent 40%);
    animation: clawIn .9s var(--ease) .4s both;
}
@keyframes clawIn { from { opacity: 0; transform: translate3d(24px, -24px, 0); } to { opacity: 1; transform: none; } }
.js:not(.ready) .claw { animation-play-state: paused; }
@media (max-width: 520px) { .claw { width: 380px; right: -30px; } }

/* Kart: tek seferlik giris */
.card { animation: rise .55s var(--ease) both; }

/* Giris <-> kayit gecisi sayfa yenilemeden (auth.js): eski icerik soner, kart yeni yuksekligine kayar */
.card > :not(.brand):not(.claw) { transition: opacity .18s, transform .18s; }
.card.swap-out > :not(.brand):not(.claw) { opacity: 0; transform: translate3d(0, -6px, 0); }
.card.sizing { overflow: hidden; transition: height .38s var(--ease); }

/* ------------------------------------------------------------ kart */
.card {
    position: relative; padding: 36px 32px 30px; border-radius: var(--r);
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 1px 2px rgba(0, 0, 0, .3), 0 32px 64px -32px rgba(4, 4, 12, .8);
}

/* Giris: tek seferlik, kisa. Yazi tipi hazir olana kadar ilk karede bekler (html.js:not(.ready)). */
.hero { animation: rise .55s var(--ease) both; }
.hero { animation-delay: .06s; }
.stagger > * { animation: rise .5s var(--ease) both; animation-delay: calc(.08s + var(--i, 0) * .04s); }
.js:not(.ready) .card, .js:not(.ready) .hero, .js:not(.ready) .stagger > * { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--surface-2); }
.logo svg.logo-mark { width: 24px; height: 21px; }
.brand b { display: block; font: 600 14px/1.2 var(--hd); letter-spacing: -.01em; }
.brand small { display: block; font-size: 12px; color: var(--muted); }

.title { margin: 0 0 6px; font: 600 26px/1.15 var(--hd); letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
.sub { margin: 0 0 26px; color: var(--muted); font-size: 14.5px; text-wrap: pretty; }

/* ------------------------------------------------------------ alanlar */
.field { position: relative; margin-bottom: 12px; }
.field input {
    width: 100%; height: 54px; padding: 21px 46px 5px 44px;
    border: 0; background: #0a0a0d; border-radius: var(--r-sm);
    color: var(--text); font: inherit; font-size: 15px; outline: none;
    transition: background-color .15s, box-shadow .15s;
}
.field input:hover { background: #0e0e12; }
.field input:focus { background: #0e0e12; box-shadow: 0 0 0 2px var(--accent-soft); }
.field input:user-invalid { background: rgba(240, 103, 123, .08); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); caret-color: var(--text); transition: background-color 99999s; }
.field label {
    position: absolute; left: 44px; top: 16px; color: var(--muted); pointer-events: none;
    transform-origin: left top; transition: transform .18s var(--ease), color .18s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translate3d(0, -9px, 0) scale(.78); }
.field input:focus + label { color: var(--accent); }
.field .ico { position: absolute; left: 15px; top: 17px; width: 19px; height: 19px; color: var(--dim); transition: color .15s; }
.field:focus-within .ico { color: var(--text); }
.field .eye {
    position: absolute; right: 8px; top: 11px; width: 34px; height: 32px; display: grid; place-items: center;
    border: 0; border-radius: var(--r-sm); background: none; color: var(--dim); cursor: pointer;
    transition: color .15s, background-color .15s;
}
.field .eye .i { width: 18px; height: 18px; }
.field .eye:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.field .eye.on { color: var(--text); }
.field.key input { font: 500 15px var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: -2px 1px 6px; }
.meter i { height: 3px; border-radius: 0; background: rgba(255, 255, 255, .08); transition: background-color .25s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--red); }
.meter[data-s="2"] i:nth-child(-n+2) { background: var(--amber); }
.meter[data-s="3"] i:nth-child(-n+3) { background: var(--accent); }
.meter[data-s="4"] i { background: var(--green); }
.meter-label { display: block; min-height: 18px; margin: 0 1px 10px; font-size: 12px; color: var(--muted); }

.row2 { display: flex; justify-content: space-between; align-items: center; margin: 4px 1px 6px; font-size: 13.5px; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input {
    appearance: none; width: 17px; height: 17px; margin: 0; border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer; border: 0; background: rgba(255, 255, 255, .1); transition: background-color .15s;
}
.check input:checked { background: var(--text); }
.check input:checked::after { content: ""; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* ------------------------------------------------------------ buton */
.btn {
    position: relative; width: 100%; height: 50px; margin-top: 8px; border: 0; border-radius: var(--r-sm);
    display: grid; place-items: center;
    font: 600 15px var(--tx); color: var(--bg); background: var(--text); cursor: pointer; text-decoration: none;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
    touch-action: manipulation;
    transition: background-color .15s, transform .12s var(--ease);
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.985); }
.btn .txt { grid-area: 1 / 1; transition: opacity .15s; }
.btn .spin { grid-area: 1 / 1; display: none; }
.btn.loading { pointer-events: none; }
.btn.loading .txt { opacity: 0; }
.btn.loading .spin {
    display: block; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(12, 12, 15, .2); border-top-color: var(--bg); animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); }

:is(.btn, .eye, a, .check input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ yardimci */
.alt { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: currentColor; }
a.btn { text-decoration: none; }

.alert {
    display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-sm); margin-bottom: 18px;
    font-size: 14px; animation: rise .35s var(--ease) both;
}
.alert .i { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.alert.err { background: rgba(240, 103, 123, .08); color: #f5b3bd; }
.alert.ok { background: rgba(79, 201, 149, .08); color: #a9e6cb; }

.shake { animation: shake .4s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.lic-box {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; margin-bottom: 18px;
    border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); font-size: 14px;
}
.lic-box span { color: var(--muted); }
.lic-box b { font: 500 13.5px var(--mono); font-variant-numeric: tabular-nums; }
.lic-box b.dead { color: var(--red); }
.lic-box b.live { color: var(--green); }
.hint { font: 12px var(--mono); color: var(--dim); letter-spacing: .04em; margin: -4px 0 10px 2px; }

/* ------------------------------------------------------------ basari */
.success { text-align: center; padding-top: 4px; }
.success svg.ok { width: 72px; height: 72px; margin: 0 auto 14px; display: block; }
.success svg.ok circle { stroke: var(--green); stroke-width: 3; fill: none; stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .8s var(--ease) .15s forwards; }
.success svg.ok path { stroke: var(--green); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.big { margin: 6px 0 4px; font: 600 48px/1 var(--hd); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.success p { color: var(--muted); margin: 0 0 22px; }
#confetti { position: fixed; inset: 0; z-index: 50; pointer-events: none; }

.foot { position: relative; z-index: 1; margin: 0; padding: 20px 16px 24px; text-align: center; color: var(--dim); font-size: 12.5px; }
.foot .lang-link { color: var(--muted); }
.foot .lang-link:hover { color: var(--text); }

@media (max-width: 520px) {
    .auth-wrap { padding-top: 24px; place-items: start center; }
    .card { padding: 28px 20px 24px; border-radius: var(--r); }
    .title { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ------------------------------------------------------------ satin al (buy.php) */
body.auth [hidden] { display: none !important; }
.plans { display: grid; gap: 6px; margin-bottom: 14px; }
.plan {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 15px; cursor: pointer;
    border-radius: var(--r-sm); background: rgba(255, 255, 255, .035);
    transition: background-color .15s, transform .12s var(--ease);
}
.plan:hover { background: rgba(255, 255, 255, .06); }
.plan:active { transform: scale(.99); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .pn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.plan .pn b { font: 600 15px var(--hd); letter-spacing: -.01em; }
.plan .pn small { color: var(--muted); font-size: 12.5px; }
.plan .pp { font: 600 20px var(--hd); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--muted); transition: color .15s; }
.plan::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--dim); transition: box-shadow .15s; }
.plan:has(input:checked) { background: var(--accent-soft); }
.plan:has(input:checked)::before { box-shadow: inset 0 0 0 4px var(--accent); }
.plan:has(input:checked) .pp { color: var(--text); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan.best .pn b::after { content: "★"; margin-left: 6px; color: var(--amber); font-size: 12px; }
.perks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.perks li::before { content: "✓"; margin-right: 6px; color: var(--green); }
@media (max-width: 380px) { .perks { grid-template-columns: 1fr; } }
.foot.legal { padding-top: 0; margin-top: -14px; }
.foot.legal a { color: var(--muted); text-decoration: none; }
.foot.legal a:hover { color: var(--text); }

/* ------------------------------------------------------------ key ekrani: once paketler (satin al), sonra key */
.buy-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 4px; }
a.buy-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 11px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04);
    text-decoration: none; color: var(--text); transition: background-color .15s, transform .12s var(--ease); }
a.buy-tile:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
a.buy-tile.best { background: var(--accent-soft); }
a.buy-tile.best:hover { background: rgba(161, 147, 242, .24); }
.buy-tile b { font: 600 13px var(--hd); }
.buy-tile .bp { font: 600 22px/1.1 var(--hd); letter-spacing: -.02em; }
.buy-tile small { font-size: 11.5px; color: var(--muted); }
.or { margin: 22px 0 12px; text-align: center; color: var(--dim); font-size: 12.5px; }
.btn.secondary { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: none; }
.btn.secondary:hover { background: rgba(255, 255, 255, .13); }
.btn.secondary.loading .spin { border-color: rgba(255, 255, 255, .2); border-top-color: var(--text); }

/* Discord: logolu baglanti ve deneme lisansi notu (login, register, activate, buy). */
.dc-ico { width: 1.15em; height: 1.15em; flex: none; }
a.dc-link { display: inline-flex; align-items: center; gap: 5px; vertical-align: -.22em; padding: 1px 7px 1px 6px; border-radius: var(--r-sm);
    background: rgba(88, 101, 242, .16); color: #b4bafc; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
a.dc-link:hover { background: #5865f2; color: #fff; }
.dc-trial { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r); background: rgba(88, 101, 242, .08);
    text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.btn .dc-txt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
/* Davet linkiyle gelen: kayit formunun ustunde hediye notu (register.php, lib/referral.php). */
.ref-note { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r);
    background: rgba(79, 201, 149, .10); color: #8fe0bb; font-size: 13.5px; line-height: 1.5; }
.ref-note .i { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ------------------------------------------------------------ Discord siparisi (buy.php, lib/orders.php) */
.order-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 16px 16px; margin-bottom: 14px;
    border-radius: var(--r-sm); background: var(--accent-soft); text-align: center; }
.order-box small { color: var(--muted); font-size: 12.5px; }
.order-code { position: relative; border: 0; background: none; padding: 2px 6px; cursor: pointer; color: var(--text);
    font: 600 28px/1.1 var(--mono); letter-spacing: .06em; transition: transform .12s var(--ease); }
.order-code:hover { transform: scale(1.03); }
.order-code [data-copied] { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font: 12px var(--tx); letter-spacing: 0; color: var(--green); white-space: nowrap; }
.order-plan { color: var(--muted); font-size: 13.5px; }
.order-plan b { color: var(--text); }
.order-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 13.5px; }
.pay-methods { margin: 10px 0 0; text-align: center; letter-spacing: 0; }
.order-wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.order-wait .spin { position: static; display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--accent);
    border-radius: 50%; animation: rot .8s linear infinite; }
.order-cancel { text-align: center; margin-top: 8px; }
.order-cancel .linkish { border: 0; background: none; padding: 0; color: var(--dim); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.order-cancel .linkish:hover { color: var(--text); }
/* Binance Pay butonu (lib/binance.php): Binance sarisi, koyu yazi */
.btn.bpay { background: #f0b90b; color: #181a20; }
.btn.bpay:hover { background: #f8d12f; }
