:root {
  --bg: #0f0a1f; --bg2: #160f2c; --card: #1d1538; --card2: #241a45; --line: #33275e; --txt: #f4f1ff; --mut: #a99fc7; --mut2: #7d7399;
  --gold: #ffd166; --gold2: #f4a261; --pink: #ff4d8d; --red: #ef476f; --green: #06d6a0; --blue: #4cc9f0; --purple: #9b5de5;
  --r: 14px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--txt); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mut); } .small { font-size: 13px; } .tiny { font-size: 12px; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; } .col { display: flex; flex-direction: column; gap: 10px; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* düğmeler + form */
.btn { appearance: none; border: 1px solid var(--line); background: var(--card2); color: var(--txt); border-radius: 10px; padding: 9px 16px; cursor: pointer; font-weight: 600; transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: #4b3b85; background: #2c2154; } .btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, #ff4d8d, #9b5de5); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.gold { background: linear-gradient(135deg, #ffd166, #f4a261); color: #2a1a00; border-color: transparent; }
.btn.green { background: #0b5e48; border-color: #127a5e; } .btn.danger { background: #5a1525; border-color: #7a2035; }
.btn.ghost { background: transparent; } .btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; } .btn.lg { padding: 13px 24px; font-size: 16px; border-radius: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--mut); }
input.i, select.i, textarea.i { background: #120c26; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--txt); width: 100%; outline: none; }
input.i:focus, select.i:focus, textarea.i:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(155, 93, 229, .25); }
textarea.i { min-height: 110px; resize: vertical; }
label.chk { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }
.err { color: #ff8fa3; font-size: 13px; min-height: 18px; }

/* kartlar */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card h3 { font-size: 16px; color: var(--gold); display: flex; gap: 8px; align-items: center; }
.stat { background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.5px; } .stat .l { color: var(--mut); font-size: 13px; } .stat .s { font-size: 12px; color: var(--mut2); margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #2c2154; color: var(--mut); border: 1px solid var(--line); }
.badge.green { background: rgba(6, 214, 160, .14); color: #5ef0c6; border-color: rgba(6, 214, 160, .35); }
.badge.gold { background: rgba(255, 209, 102, .14); color: var(--gold); border-color: rgba(255, 209, 102, .35); }
.badge.red { background: rgba(239, 71, 111, .15); color: #ff8fa3; border-color: rgba(239, 71, 111, .4); }
.badge.blue { background: rgba(76, 201, 240, .14); color: #8fe0f7; border-color: rgba(76, 201, 240, .35); }
.badge.purple { background: rgba(155, 93, 229, .18); color: #c9a7ff; border-color: rgba(155, 93, 229, .4); }

/* tablo */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--mut); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid rgba(51, 39, 94, .6); vertical-align: middle; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: rgba(155, 93, 229, .08); }
.scroll { overflow-x: auto; }

/* uygulama kabuğu */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 10, 31, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.logo { font-weight: 900; font-size: 19px; display: flex; gap: 8px; align-items: center; color: var(--txt); }
.logo i { font-style: normal; background: linear-gradient(135deg, #ffd166, #ff4d8d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tab { padding: 8px 14px; border-radius: 10px; color: var(--mut); cursor: pointer; white-space: nowrap; font-weight: 600; border: 1px solid transparent; background: none; }
.tab:hover { color: var(--txt); background: var(--card); } .tab.on { color: var(--txt); background: var(--card2); border-color: var(--line); }
.tab .n { background: var(--pink); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
main.app { padding: 8px 0 60px; }
.sec { display: flex; flex-direction: column; gap: 14px; }
.key { font-family: Consolas, "Cascadia Mono", monospace; font-size: 18px; letter-spacing: 1px; background: #120c26; border: 1px dashed #5a4a8a; border-radius: 10px; padding: 10px 14px; user-select: all; }
.empty { color: var(--mut); text-align: center; padding: 28px; border: 1px dashed var(--line); border-radius: var(--r); }
hr.s { border: none; border-top: 1px solid var(--line); margin: 6px 0; }
.ann { border-left: 3px solid var(--gold); padding: 8px 12px; background: rgba(255, 209, 102, .06); border-radius: 0 10px 10px 0; }

/* paket kartları */
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.plan.hl { border-color: rgba(255, 77, 141, .6); box-shadow: 0 0 0 1px rgba(255, 77, 141, .3), 0 18px 40px rgba(255, 77, 141, .12); }
.plan .ribbon { position: absolute; top: -11px; right: 18px; background: linear-gradient(135deg, #ff4d8d, #9b5de5); padding: 3px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.plan .price { font-size: 34px; font-weight: 900; } .plan .price small { font-size: 14px; color: var(--mut); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.plan li::before { content: '✓'; color: var(--green); font-weight: 900; margin-right: 8px; }
.plan li.no { color: var(--mut2); } .plan li.no::before { content: '–'; color: var(--mut2); }
.months { display: flex; gap: 6px; flex-wrap: wrap; }
.months button { flex: 1; min-width: 60px; padding: 7px 6px; border-radius: 9px; border: 1px solid var(--line); background: #120c26; cursor: pointer; font-size: 13px; color: var(--mut); }
.months button.on { border-color: var(--gold); color: var(--gold); background: rgba(255, 209, 102, .08); }

/* modal + bildirim */
.ov { position: fixed; inset: 0; background: rgba(5, 2, 14, .7); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { width: min(640px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.modal.wide { width: min(980px, 100%); }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); } .modal .mh h2 { margin: 0; font-size: 18px; flex: 1; }
.modal .mb { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; } .modal .mf { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: calc(100% - 32px); }
.toast { background: #1f1740; border: 1px solid var(--line); border-left: 4px solid var(--green); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); animation: tin .2s ease-out; }
.toast.bad { border-left-color: var(--red); }
@keyframes tin { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.toast.out { opacity: 0; transform: translateX(20px); transition: opacity .25s, transform .25s; }
html.locked { overflow: hidden; }
.ov { animation: ovin .2s ease-out; } .ov.out { opacity: 0; transition: opacity .18s; }
.ov .modal { animation: min .28s cubic-bezier(.2, .8, .2, 1); } .ov.out .modal { transform: translateY(10px) scale(.98); transition: transform .18s; }
@keyframes ovin { from { opacity: 0; } } @keyframes min { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.btn.busy { position: relative; color: transparent !important; } .btn.busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sec > * { animation: secin .35s cubic-bezier(.2, .8, .2, 1) backwards; } .sec > *:nth-child(2) { animation-delay: .05s; } .sec > *:nth-child(3) { animation-delay: .1s; } .sec > *:nth-child(4) { animation-delay: .15s; } .sec > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes secin { from { opacity: 0; transform: translateY(12px); } }
.card, .stat { transition: border-color .2s, transform .2s, box-shadow .2s; } .stat.click { cursor: pointer; } .stat.click:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow); }
.plan { transition: transform .25s, border-color .25s, box-shadow .25s; } .plan:hover { transform: translateY(-4px); border-color: #4b3b85; }
.bars .bar { transform-origin: 50% 100%; animation: grow .6s cubic-bezier(.2, .8, .2, 1) backwards; } @keyframes grow { from { transform: scaleY(0); } }
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; min-height: 18px; } @keyframes skel { to { background-position: -200% 0; } }
.wallet { background: radial-gradient(500px 200px at 0% 0%, rgba(255, 209, 102, .16), transparent), var(--card); border-color: rgba(255, 209, 102, .35); }
.wallet .bal { font-size: 40px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--gold); line-height: 1.1; } .wallet .bal small { font-size: 15px; color: var(--mut); font-weight: 600; margin-left: 6px; }
.delta.plus { color: #5ef0c6; font-weight: 700; } .delta.minus { color: #ff8fa3; font-weight: 700; }
.chipset { display: flex; gap: 6px; flex-wrap: wrap; } .chipset button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #120c26; color: var(--mut); cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; } .chipset button:hover { color: var(--txt); } .chipset button.on { border-color: var(--gold); color: var(--gold); background: rgba(255, 209, 102, .08); } .chipset button i { font-style: normal; opacity: .7; margin-left: 4px; }
.logo img { display: block; border-radius: 9px; } .logo span b { font-weight: 900; background: linear-gradient(135deg, #ffd166, #ff4d8d); -webkit-background-clip: text; background-clip: text; color: transparent; } .logo span { letter-spacing: .5px; }
.seg2 { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #120c26; border: 1px solid var(--line); flex-wrap: wrap; } .seg2 button { border: 0; background: none; color: var(--mut); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 700; transition: all .2s; } .seg2 button.on { background: linear-gradient(135deg, #ff4d8d, #9b5de5); color: #fff; }
.qa { display: flex; gap: 6px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* mesajlaşma (oyun istekleri) */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; padding: 4px; }
.msg { max-width: 80%; padding: 9px 12px; border-radius: 12px; background: var(--card2); white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; background: #3a2470; } .msg.admin { border: 1px solid rgba(255, 209, 102, .35); }
.msg .w { font-size: 11px; color: var(--mut); margin-bottom: 3px; }
.pre { white-space: pre-wrap; word-break: break-word; }

/* giriş ekranı */
.auth { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 30px 16px; }
.auth .box { width: min(440px, 100%); }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line); font-weight: 800; color: var(--gold); font-size: 13px; }

/* tanıtım sayfası */
.hero { padding: 70px 0 50px; background: radial-gradient(1200px 500px at 70% -10%, rgba(255, 77, 141, .25), transparent), radial-gradient(900px 500px at 10% 10%, rgba(155, 93, 229, .25), transparent); }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; letter-spacing: -1px; }
.hero h1 b { background: linear-gradient(135deg, #ffd166, #ff4d8d 60%, #9b5de5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #d8d0f0; max-width: 640px; }
.col > .badge { align-self: flex-start; }
.phone { width: 100%; aspect-ratio: 9 / 16; border-radius: 28px; border: 8px solid #2a2050; background: linear-gradient(180deg, #2b1d55 0%, #ff4d8d 140%); position: relative; overflow: hidden; box-shadow: var(--shadow); max-width: 300px; margin-left: auto; }
.phone .ring { position: absolute; left: 50%; top: 58%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(62deg); border-radius: 50%; border: 3px dashed rgba(255, 209, 102, .7); }
.phone .dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; animation: bob 1s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-6px); } }
.phone .chip { position: absolute; left: 10px; right: 10px; padding: 6px 10px; border-radius: 99px; background: rgba(20, 14, 40, .8); font-size: 12px; font-weight: 700; }
section.blk { padding: 56px 0; } section.blk h2 { font-size: 30px; font-weight: 900; text-align: center; margin-bottom: 8px; } section.blk .sub { text-align: center; color: var(--mut); margin-bottom: 30px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; } .feat .ic { font-size: 30px; } .feat h4 { margin: 8px 0 4px; font-size: 16px; } .feat p { margin: 0; color: var(--mut); font-size: 14px; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; } details.faq summary { cursor: pointer; font-weight: 700; } details.faq p { color: var(--mut); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--mut); font-size: 13px; }

/* grafik */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #ff4d8d, #9b5de5); min-height: 3px; }
.bars .t { font-size: 11px; color: var(--mut); } .bars .val { font-size: 11px; color: var(--txt); font-weight: 700; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.kcol h4 { margin: 0 0 4px; font-size: 13px; color: var(--mut); display: flex; justify-content: space-between; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; font-size: 13px; } .kcard:hover { border-color: var(--purple); }
.kcard .tt { font-weight: 700; margin-bottom: 4px; }
