:root {
  --bg: #0b0a12;
  --panel: #14121d;
  --panel2: #1b1826;
  --line: rgba(255, 255, 255, .07);
  --text: #f4f2fa;
  --muted: #9c97ad;
  --accent: #ff5a3c;
  --accent2: #ff2d55;
  --gold: #ffc83d;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
.av { position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); min-width: var(--s); border-radius: 50%; overflow: hidden; color: #fff; font-weight: 800; font-size: calc(var(--s) * .45); line-height: 1; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------ giriş */
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 20% 0%, #3a1430 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #2b1a05 0%, transparent 60%), var(--bg); }
.login-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.login-card h1 { margin: 14px 0 4px; font-size: 22px; }
.login-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.field input { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); outline: none; }
.field input:focus { border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn:hover { background: #24202f; }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); border: 0; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: #ff8a8a; }
.btn.block { width: 100%; padding: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.err { color: #ff8a8a; font-size: 13px; min-height: 18px; margin-top: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.logo .mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: linear-gradient(135deg, #ff7a18, #ff2d55); box-shadow: 0 6px 18px rgba(255,80,60,.4); }
.logo b { background: linear-gradient(90deg, #ffb340, #ff5a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------ panel */
.app { height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 12px; }
.topbar { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; min-width: 0; }
.tabs { display: flex; gap: 4px; background: var(--panel2); border-radius: 12px; padding: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 700; color: var(--muted); white-space: nowrap; font-size: 14px; }
.tabs button.on { background: #fff; color: #111; }
.tabs button:not(.on):hover { color: var(--text); }
.spacer { flex: 1; }
.chips { display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.chip.live .dot { background: var(--err); box-shadow: 0 0 0 4px rgba(239,68,68,.18); animation: pulse 1.4s infinite; }
.chip.warn .dot { background: var(--warn); }
.chip.idle .dot { background: #666; }
.chip .lbl { color: #ff6b6b; letter-spacing: .04em; }
.chip.warn .lbl, .chip.idle .lbl { color: var(--muted); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; font-size: 16px; }
.iconbtn:hover { background: #24202f; }
@keyframes pulse { 50% { opacity: .45; } }

.main { display: grid; grid-template-columns: 1fr 340px; gap: 12px; min-height: 0; }
.side { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-height: 0; }
.card h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .18em; color: #cfcbe0; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.card h3 .r { margin-left: auto; letter-spacing: 0; font-size: 14px; color: var(--text); }
.ebar { height: 10px; background: #26222f; border-radius: 99px; overflow: hidden; }
.ebar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
.note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.feed-card { display: flex; flex-direction: column; }
.feed { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; scrollbar-width: thin; }
.fi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel2); font-size: 14px; animation: fin .3s ease-out; }
.fi .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ddd9ea; }
.fi b { color: #fff; margin-right: 4px; }
.fi.gift { background: linear-gradient(90deg, rgba(255,200,61,.16), rgba(255,200,61,.05)); border: 1px solid rgba(255,200,61,.35); }
.fi.gift b { color: var(--gold); }
.fi.social b { color: #ff9ecb; }
.fi .gv { color: #7fd8ff; font-weight: 700; }
@keyframes fin { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------ sahne */
.stage { position: relative; overflow: hidden; border-radius: 18px; background: #000; min-height: 0; font-size: 16px; isolation: isolate; }
.stage canvas { position: absolute; inset: 0; display: block; }
.ov { position: absolute; pointer-events: none; z-index: 2; }
.stage .glass { background: rgba(40, 28, 30, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); color: #fff; }

.board { top: 1.1em; left: 1.1em; width: 19em; border-radius: 1em; padding: .8em 1em; font-family: "Baloo 2", Inter, sans-serif; }
.board .bt { font-weight: 800; font-size: 1.05em; display: flex; align-items: center; gap: .4em; }
.board ol { list-style: none; margin: .45em 0 0; padding: 0; display: grid; gap: .3em; }
.board li { display: flex; align-items: center; gap: .5em; font-weight: 700; font-size: .95em; }
.board li .rk { width: 1.3em; text-align: center; font-size: .9em; }
.board li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li .dm { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.board li.first .nm { color: var(--gold); }
.board .empty { color: rgba(255,255,255,.7); font-size: .85em; margin-top: .3em; }
.board .hint { margin-top: .55em; padding: .4em .6em; border-radius: .6em; background: linear-gradient(90deg, rgba(255,200,61,.25), rgba(255,90,60,.2)); font-size: .8em; font-weight: 800; animation: hintp 2.2s ease-in-out infinite; }
@keyframes hintp { 50% { filter: brightness(1.25); } }
.vipb { font-size: .7em; padding: .05em .45em; border-radius: .5em; color: #1a1206; font-weight: 900; }

.tempo { top: 1.1em; right: 1.1em; display: grid; justify-items: center; gap: .6em; }
.dial { width: 6.6em; height: 6.6em; position: relative; border-radius: 50%; background: rgba(40,28,30,.62); backdrop-filter: blur(6px); }
.dial svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dial .c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; font-family: "Baloo 2", Inter, sans-serif; color: #fff; text-align: center; line-height: 1.05; }
.dial .c i { font-style: normal; font-size: 1.3em; }
.dial .c b { font-size: 1.15em; font-weight: 900; }
.dial.max { animation: shakey .25s infinite; }
@keyframes shakey { 25% { transform: rotate(-3deg) scale(1.04); } 75% { transform: rotate(3deg) scale(1.04); } }
.pill { border-radius: 99px; padding: .3em .9em; font-weight: 800; font-size: .95em; display: inline-flex; gap: .4em; align-items: center; }

.bottom { left: 50%; bottom: 1.1em; transform: translateX(-50%); display: grid; justify-items: center; gap: .5em; font-family: "Baloo 2", Inter, sans-serif; width: max-content; max-width: 92%; }
.bottom .hint2 { background: rgba(30,22,20,.66); color: #fff; padding: .25em .9em; border-radius: .5em; font-weight: 700; font-size: .95em; }
.bottom .cta { background: rgba(20,30,24,.86); color: #fff; padding: .45em 1.4em; border-radius: 99px; font-weight: 800; font-size: 1.3em; border: 2px solid rgba(255,255,255,.12); box-shadow: 0 8px 26px rgba(0,0,0,.35); transition: transform .3s; }
.bottom .cta b { color: var(--gold); }
.bottom .cta.swap { animation: ctaswap .5s; }
@keyframes ctaswap { 0% { transform: scale(.85); opacity: 0; } 60% { transform: scale(1.06); } }

.status-ov { top: 1.1em; left: 50%; transform: translateX(-50%); max-width: 60%; text-align: center; font-weight: 700; font-size: .9em; padding: .55em 1em; border-radius: .8em; background: rgba(15,12,20,.82); color: #fff; border: 1px solid rgba(255,255,255,.15); pointer-events: auto; }
.status-ov.hide { display: none; }
.status-ov button { margin-left: .6em; background: #fff; color: #111; border: 0; border-radius: .5em; padding: .25em .7em; font-weight: 800; }

/* hediye efektleri */
.toasts { top: 1.1em; left: 21.5em; display: grid; gap: .45em; font-family: "Baloo 2", Inter, sans-serif; }
.toast { display: flex; align-items: center; gap: .55em; padding: .35em .9em .35em .35em; border-radius: 99px; background: linear-gradient(90deg, rgba(255,90,60,.92), rgba(255,45,85,.88)); color: #fff; font-weight: 800; font-size: .95em; box-shadow: 0 6px 18px rgba(0,0,0,.3); animation: tin .35s cubic-bezier(.2,1.4,.4,1), tout .4s ease-in 2.6s forwards; }
.toast .gi { width: 1.8em; height: 1.8em; display: grid; place-items: center; font-size: 1.1em; }
.toast .gi img { width: 100%; height: 100%; object-fit: contain; }
.toast .x { color: #ffe066; font-size: 1.15em; }
@keyframes tin { from { transform: translateX(-30px) scale(.8); opacity: 0; } }
@keyframes tout { to { transform: translateY(-10px); opacity: 0; } }

.blayer { inset: 0; display: grid; place-items: start center; padding-top: 12%; }
.banner { display: flex; align-items: center; gap: 1em; padding: 1em 1.6em 1em 1em; border-radius: 1.3em; color: #fff; font-family: "Baloo 2", Inter, sans-serif; background: linear-gradient(135deg, #ff9a1f, #ff4d2d 60%, #ff2d55); box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 20px 50px rgba(255,80,40,.45); animation: bin .55s cubic-bezier(.2,1.5,.35,1), bout .45s ease-in forwards; animation-delay: 0s, var(--d, 3s); position: relative; }
.banner .gimg { width: 5.2em; height: 5.2em; border-radius: .8em; background: rgba(0,0,0,.25); display: grid; place-items: center; font-size: 3.2em; font-size: 2.9em; width: 1.8em; height: 1.8em; }
.banner .gimg img { width: 90%; height: 90%; object-fit: contain; }
.banner .who { display: flex; align-items: center; gap: .45em; font-size: 1.6em; font-weight: 900; line-height: 1; }
.banner .what { font-size: 1.2em; font-weight: 800; opacity: .95; margin-top: .15em; }
.banner .val { display: inline-flex; gap: .3em; margin-top: .35em; background: rgba(0,0,0,.22); border-radius: 99px; padding: .15em .8em; font-weight: 900; font-size: 1.05em; }
.banner .cmb { position: absolute; right: -.6em; top: -.8em; background: #ffe066; color: #5a2a00; font-weight: 900; font-size: 1.5em; padding: .1em .5em; border-radius: .5em; transform: rotate(8deg); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.banner.t3 { background: linear-gradient(135deg, #ffe066, #ffb21f 45%, #ff6a00); color: #3a1800; box-shadow: 0 0 0 4px #fff3b0, 0 0 60px rgba(255,200,40,.9); font-size: 1.15em; }
.banner.t3 .val { background: rgba(80,30,0,.2); }
.banner .hdr { position: absolute; top: -1.3em; left: 50%; transform: translateX(-50%); background: #2a0f00; color: #ffe066; font-weight: 900; font-size: .95em; padding: .2em 1em; border-radius: 99px; letter-spacing: .08em; white-space: nowrap; animation: hdrp .6s infinite alternate; }
@keyframes hdrp { to { transform: translateX(-50%) scale(1.08); } }
@keyframes bin { from { transform: translateY(-40px) scale(.5); opacity: 0; } }
@keyframes bout { to { transform: translateY(-30px) scale(.8); opacity: 0; } }

.ribbon { padding: .5em 1.6em; border-radius: .9em; font-family: "Baloo 2", Inter, sans-serif; font-weight: 900; font-size: 1.7em; color: #1a1206; text-align: center; box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 0 50px var(--g, rgba(255,200,61,.7)); background: var(--c, #ffc83d); animation: bin .55s cubic-bezier(.2,1.5,.35,1), bout .45s ease-in forwards; animation-delay: 0s, var(--d, 3s); }
.ribbon small { display: block; font-size: .5em; letter-spacing: .25em; opacity: .8; }
.ribbon.leader { background: linear-gradient(135deg, #fff09a, #ffb21f); font-size: 2em; }

.mega { inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(80,20,0,.35), rgba(0,0,0,.72)); animation: mfade 6.2s forwards; font-family: "Baloo 2", Inter, sans-serif; z-index: 5; }
.mega .rays { position: absolute; left: 50%; top: 45%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(255,215,90,.22) 0 8deg, transparent 8deg 20deg); animation: spin 8s linear infinite; }
.mega .box { position: relative; text-align: center; color: #fff; animation: mpop .8s cubic-bezier(.2,1.6,.35,1); }
.mega .big { font-size: 5.2em; font-weight: 900; line-height: .95; background: linear-gradient(180deg, #fff6b0, #ffc83d 50%, #ff7a00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 #6a2a00) drop-shadow(0 0 30px rgba(255,180,40,.8)); animation: mpulse .5s infinite alternate; letter-spacing: -.01em; }
.mega .gift { font-size: 6em; line-height: 1.1; width: 1.4em; height: 1.4em; margin: 0 auto; display: grid; place-items: center; animation: gbob 1s ease-in-out infinite alternate; }
.mega .gift img { width: 100%; height: 100%; object-fit: contain; }
.mega .who { font-size: 2.6em; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: .3em; margin-top: .1em; text-shadow: 0 4px 0 rgba(0,0,0,.4); }
.mega .what { font-size: 1.6em; font-weight: 800; color: #ffe066; }
.mega .val { display: inline-block; margin-top: .4em; font-size: 1.8em; font-weight: 900; padding: .15em .9em; border-radius: 99px; background: linear-gradient(90deg, #00c6ff, #7a5cff); box-shadow: 0 0 30px rgba(0,198,255,.6); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes mpop { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
@keyframes mpulse { to { transform: scale(1.06); } }
@keyframes gbob { to { transform: translateY(-10px) rotate(4deg); } }
@keyframes mfade { 0% { opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------ OBS modu (panel içinde) */
.app.obs { padding: 0; gap: 0; grid-template-rows: 1fr; }
.app.obs .topbar, .app.obs .side { display: none; }
.app.obs .main { grid-template-columns: 1fr; }
.app.obs .stage { border-radius: 0; }
.app.obs .status-ov { display: none; }
.obs-exit { position: fixed; right: 12px; bottom: 12px; z-index: 50; opacity: 0; transition: opacity .2s; }
.app.obs ~ .obs-exit { display: block; }
.obs-exit:hover { opacity: 1; }
body.overlay, body.overlay .stage { border-radius: 0; background: #000; }
body.overlay .stage { position: fixed; inset: 0; }

/* ------------------------------------------------ ayarlar */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; place-items: center; z-index: 100; padding: 16px; }
.modal.open { display: grid; }
.sheet { width: min(720px, 100%); max-height: 92vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.sheet h2 { margin: 0 0 4px; font-size: 20px; display: flex; align-items: center; }
.sheet h2 .x { margin-left: auto; }
.sec { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.sec h4 { margin: 0 0 10px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.sec h4 .n { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: grid; place-items: center; font-size: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input { flex: 1; min-width: 180px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--text); outline: none; }
.row input:focus { border-color: var(--accent); }
.inwrap { flex: 1; min-width: 200px; display: flex; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding-left: 12px; }
.inwrap span { color: var(--muted); font-weight: 700; }
.inwrap input { border: 0; background: none; min-width: 0; padding-left: 4px; }
.stline { margin-top: 10px; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); display: flex; gap: 8px; align-items: center; }
.stline .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.steps { margin: 0; padding-left: 20px; color: #d7d3e4; font-size: 14px; line-height: 1.6; }
.steps li { margin-bottom: 4px; }
.steps code { background: var(--panel2); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.tip { background: rgba(255,200,61,.1); border: 1px solid rgba(255,200,61,.3); color: #ffe6a6; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method { background: var(--panel2); border-radius: 14px; padding: 14px; }
.method h5 { margin: 0 0 8px; font-size: 14px; }
.toastmsg { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #fff; color: #111; padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: fin .2s; }

@media (max-width: 1100px) {
  .main { grid-template-columns: 1fr; grid-template-rows: minmax(360px, 62vh) auto; }
  .side { grid-template-rows: auto 380px; }
  .chips .chip.hide-sm { display: none; }
}
@media (max-width: 720px) {
  .app { padding: 8px; gap: 8px; }
  .topbar { flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; }
  .cols2 { grid-template-columns: 1fr; }
  .stage { font-size: 11px; }
}

/* ------------------------------------------------ v2: yayın, müzik, sekmeler */
.chip.golive { cursor: pointer; border-color: rgba(239,68,68,.45); color: #fff; }
.chip.golive:hover { background: #2a1b22; }
.chip.golive.on { background: linear-gradient(90deg, #ef4444, #ff2d55); border-color: transparent; }
.chip.golive.on .dot { background: #fff !important; animation: pulse 1.2s infinite; }
.mtabs { display: flex; gap: 6px; margin: 14px 0 4px; flex-wrap: wrap; }
.mtabs button { border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 8px 12px; font-weight: 700; color: var(--muted); }
.mtabs button.on { background: #fff; color: #111; }
.pane { display: none; }
.pane.on { display: block; }
.sec.first { border-top: 0; margin-top: 8px; }
.field select, .field input[type=number] { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; color: var(--text); outline: none; font: inherit; }
.field input[type=range] { accent-color: var(--accent); padding: 0; border: 0; background: none; }
.field.check { flex-direction: row; display: flex; align-items: center; gap: 8px; color: var(--text); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.sstats { margin-top: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.logs { background: #08070c; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 11.5px; color: #b9b4c9; max-height: 220px; overflow: auto; white-space: pre-wrap; margin: 10px 0 0; }
.logs:empty { display: none; }
.tabs.small { display: inline-flex; margin-bottom: 12px; flex-wrap: wrap; }
.tabs.small button { padding: 6px 11px; font-size: 13px; }
.tracks { display: grid; gap: 6px; margin-bottom: 12px; }
.track { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.track.on { border-color: var(--accent); background: linear-gradient(90deg, rgba(255,90,60,.14), transparent); }
.track input { accent-color: var(--accent); width: 18px; height: 18px; }
.track .tn { flex: 1; min-width: 0; display: grid; }
.track .tn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .tn small { color: var(--muted); font-size: 12px; }
.iconbtn.sm { width: 34px; height: 34px; font-size: 14px; }
a.btn { text-decoration: none; }
@media (max-width: 720px) { .grid3 { grid-template-columns: 1fr; } }
