* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:#e50914; --red2:#f6121d; --bg:#0b0b0b; --card:#181818; --card2:#232323;
  --text:#fff; --muted:#a3a3a3; --line:#2a2a2a; --green:#46d369;
}
body { font-family:"Segoe UI",Roboto,Arial,sans-serif; background:var(--bg); color:var(--text); min-height:100vh; }
.hidden { display:none !important; }
img { display:block; }

/* ---------- GİRİŞ EKRANI ---------- */
.auth-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; position:relative; overflow:hidden; }
.auth-bg {
  position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(229,9,20,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(123,97,255,.25), transparent 60%),
    linear-gradient(180deg,#0b0b0b,#000);
}
.auth-card {
  position:relative; z-index:1; width:100%; max-width:440px;
  background:rgba(18,18,18,.92); backdrop-filter:blur(6px);
  border:1px solid var(--line); border-radius:16px; padding:40px 38px;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
}
.brand-big { text-align:center; margin-bottom:22px; }
.brand-big img { height:72px; width:auto; margin:0 auto; display:block; }

.tabs { display:flex; background:var(--card2); border-radius:10px; padding:5px; margin-bottom:22px; }
.tab { flex:1; padding:11px; border:none; border-radius:7px; background:transparent; color:var(--muted); cursor:pointer; font-size:15px; font-weight:600; transition:.2s; }
.tab.active { background:var(--red); color:#fff; }

.social { display:flex; flex-direction:column; gap:10px; }
.gbtn-wrap { display:flex; justify-content:center; min-height:0; }
.gbtn-wrap:empty { display:none; }
.social-btn {
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding:12px; border-radius:8px; border:1px solid var(--line); background:var(--card2);
  color:#fff; font-size:14.5px; font-weight:600; cursor:pointer; transition:.15s; width:100%;
}
.social-btn:hover { background:#2e2e2e; }
.social-btn.guest { border-style:dashed; }

.divider { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12.5px; margin:20px 0; }
.divider::before,.divider::after { content:""; flex:1; height:1px; background:var(--line); }

#authForm { display:flex; flex-direction:column; gap:12px; }
input {
  width:100%; padding:14px; border-radius:8px; border:1px solid var(--line);
  background:#0f0f0f; color:#fff; font-size:15px; transition:.15s;
}
input:focus { outline:none; border-color:var(--red); box-shadow:0 0 0 3px rgba(229,9,20,.2); }
.pass-wrap { position:relative; }
.pass-wrap input { padding-right:44px; }
.eye { position:absolute; right:8px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; font-size:16px; opacity:.7; }

.strength { height:5px; background:var(--card2); border-radius:4px; overflow:hidden; }
.strength span { display:block; height:100%; width:0; background:var(--red); transition:.25s; }

.primary { background:var(--red); color:#fff; border:none; padding:14px; border-radius:8px; font-size:16px; font-weight:700; cursor:pointer; transition:.15s; }
.primary:hover { background:var(--red2); }
.ghost { background:transparent; border:1px solid var(--line); color:#fff; padding:8px 14px; border-radius:7px; cursor:pointer; font-size:14px; transition:.15s; }
.ghost:hover { border-color:#666; background:#1c1c1c; }

.error { color:#ff6b6b; font-size:13.5px; min-height:16px; }
.note { color:#7c7c7c; font-size:12px; margin-top:18px; line-height:1.5; text-align:center; }

/* login/register alanlarini gizle-goster */
body.mode-login .reg-only { display:none; }
body.mode-register .login-only { display:none; }

/* dogrulama ekrani acikken diger her seyi gizle */
.auth-card.verifying .tabs,
.auth-card.verifying .social,
.auth-card.verifying .divider,
.auth-card.verifying #authForm,
.auth-card.verifying .note { display:none; }
.vfield { margin-top:14px; }
.vfield label { display:block; font-size:12.5px; color:var(--muted); margin-bottom:6px; }
.vrow { display:flex; gap:8px; }
.vrow input { letter-spacing:4px; font-size:18px; text-align:center; }
.vrow .mini { white-space:nowrap; }
.dev-codes { background:rgba(245,166,35,.12); border:1px solid rgba(245,166,35,.4); color:#f5a623;
  font-size:12.5px; padding:10px 12px; border-radius:8px; margin-top:10px; line-height:1.6; }

/* ---------- TOPBAR ---------- */
#topbar { display:flex; justify-content:space-between; align-items:center; padding:14px 40px; position:sticky; top:0; z-index:20; background:linear-gradient(180deg,#000,rgba(0,0,0,.4)); }
.brand { display:flex; align-items:center; gap:8px; color:#fff; font-weight:900; letter-spacing:1px; font-size:20px; cursor:pointer; }
.brand img { height:30px; width:auto; display:block; }
.brand span { text-transform:uppercase; background:linear-gradient(90deg,#2fa8fd,#a266f5,#f52faa); -webkit-background-clip:text; background-clip:text; color:transparent; }
#topbar nav { display:flex; align-items:center; gap:14px; }
.me { display:flex; align-items:center; gap:8px; cursor:pointer; }
#meName { font-size:14px; }
.badge { background:var(--red); color:#fff; border-radius:10px; font-size:11px; padding:1px 6px; margin-left:4px; }

/* ---------- KATALOG ---------- */
.hero { padding:34px 40px 10px; }
.hero h2 { font-size:28px; }
.stream-status { color:var(--muted); margin-top:8px; font-size:14px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:18px; padding:20px 40px 60px; }
.card { background:var(--card); border-radius:10px; overflow:hidden; cursor:pointer; transition:transform .2s, box-shadow .2s; }
.card:hover { transform:scale(1.04); box-shadow:0 12px 30px rgba(0,0,0,.6); }
.card img { width:100%; height:135px; object-fit:cover; background:#000; }
.card .info { padding:12px 14px; }
.card .info h4 { font-size:15px; margin-bottom:4px; }
.card .info .meta { color:var(--muted); font-size:12.5px; }
.card .info .desc { color:#8c8c8c; font-size:12px; margin-top:6px; line-height:1.4; }

/* ---------- OYNATICI ---------- */
.player-wrap { padding:20px 40px 60px; }
.back { background:none; color:#fff; border:none; font-size:16px; cursor:pointer; margin-bottom:14px; }
.back:hover { color:var(--red); }
.player-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; gap:12px; flex-wrap:wrap; }
.player-actions { display:flex; align-items:center; gap:10px; }
.party-tag { background:rgba(70,211,105,.15); color:var(--green); border:1px solid rgba(70,211,105,.4); padding:5px 10px; border-radius:20px; font-size:12.5px; }
#player { width:100%; max-height:72vh; border-radius:10px; background:#000; }
.player-note { color:var(--muted); font-size:13px; margin-top:12px; }

/* ---------- SOHBET ---------- */
.chat { margin-top:18px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.chat-log { max-height:220px; overflow-y:auto; padding:12px; display:flex; flex-direction:column; gap:8px; }
.chat-msg { display:flex; gap:8px; align-items:flex-start; font-size:14px; }
.chat-msg b { color:var(--red); margin-right:4px; }
.chat-msg.sys { color:var(--muted); font-style:italic; font-size:13px; }
.chat-form { display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); }
.chat-form input { flex:1; }
.chat-form button { padding:10px 16px; }

/* ---------- ARKADAŞLAR PANELİ ---------- */
.panel { position:fixed; top:0; right:0; width:340px; max-width:92vw; height:100vh; background:#111; border-left:1px solid var(--line); z-index:40; padding:18px; overflow-y:auto; box-shadow:-10px 0 40px rgba(0,0,0,.5); }
.panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.search-wrap { position:relative; margin-bottom:18px; }
.search-results { margin-top:8px; display:flex; flex-direction:column; gap:6px; }
.section { margin-top:18px; }
.section h4 { font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:10px; }
.friend-row { display:flex; align-items:center; gap:10px; padding:8px; border-radius:8px; background:var(--card); }
.friend-row .fname { flex:1; font-size:14px; }
.friend-row .status { font-size:11.5px; color:var(--muted); }
.dot { width:8px; height:8px; border-radius:50%; background:#555; display:inline-block; margin-right:5px; }
.dot.on { background:var(--green); }
.mini { padding:6px 10px; font-size:12.5px; border-radius:6px; border:none; cursor:pointer; }
.mini.red { background:var(--red); color:#fff; }
.mini.grey { background:var(--card2); color:#fff; }
.empty { color:#666; font-size:13px; }

/* ---------- MODAL & TOAST ---------- */
.modal { position:fixed; inset:0; background:rgba(0,0,0,.8); display:flex; align-items:center; justify-content:center; z-index:60; padding:20px; }
.modal-card { background:var(--card); border:1px solid var(--line); padding:28px; border-radius:14px; max-width:420px; width:100%; }
.modal-card h3 { margin-bottom:10px; }
.muted { color:var(--muted); font-size:14px; line-height:1.5; margin-bottom:16px; }
.row { display:flex; gap:10px; }
.row .primary, .row .ghost { flex:1; }
.invite-list { display:flex; flex-direction:column; gap:8px; max-height:300px; overflow-y:auto; }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#fff; color:#111; padding:12px 20px; border-radius:10px; font-size:14px; font-weight:600; z-index:80; box-shadow:0 8px 30px rgba(0,0,0,.4); }

/* ---------- ODALAR ---------- */
.hero { display:flex; align-items:center; justify-content:space-between; }
.hero .primary { padding:11px 18px; font-size:15px; }
.rooms { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; padding:20px 40px 60px; }
.room-card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px; cursor:pointer; transition:.15s; }
.room-card:hover { border-color:var(--red); transform:translateY(-2px); }
.room-card h4 { font-size:17px; margin-bottom:6px; }
.room-card .rc-meta { color:var(--muted); font-size:13px; }
.room-card .rc-video { color:var(--green); font-size:12.5px; margin-top:8px; }
.rooms .empty { color:#666; padding:20px 0; }

/* ---------- ODA GÖRÜNÜMÜ ---------- */
.room-wrap { padding:18px 40px 50px; }
.room-head { display:flex; align-items:center; gap:14px; margin-bottom:16px; flex-wrap:wrap; }
.room-head h3 { font-size:22px; }
.room-grid { display:grid; grid-template-columns:1fr 320px; gap:20px; align-items:start; }
.video-area { background:#000; border-radius:12px; aspect-ratio:16/9; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.video-area video, .video-area #ytPlayer, .video-area iframe { width:100%; height:100%; border:0; }
.video-empty { color:var(--muted); text-align:center; padding:20px; line-height:1.6; }
.video-form { display:flex; gap:8px; margin-top:12px; }
.video-form input { flex:1; }
.video-form button { padding:12px 18px; }
.netflix-note { margin-top:12px; background:rgba(229,9,20,.08); border:1px solid rgba(229,9,20,.3); color:#f3a3a7; font-size:12.5px; padding:10px 12px; border-radius:8px; line-height:1.5; }
.room-side { display:flex; flex-direction:column; gap:16px; }
.side-sec { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; }
.side-sec h4 { font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:10px; }
.member-list { display:flex; flex-direction:column; gap:6px; max-height:220px; overflow-y:auto; }
.chat-sec { display:flex; flex-direction:column; }
.chat-sec .chat-log { max-height:300px; }

/* ---------- PROFİL ---------- */
.profile-head { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.profile-head h3 { font-size:20px; }
.profile-actions { display:flex; flex-direction:column; gap:10px; }
.profile-actions button { width:100%; padding:12px; }

/* ---------- MESAJLAR ---------- */
#dmPanel .chat-log { display:flex; flex-direction:column; gap:8px; padding:10px 0; }
.convo-row { cursor:pointer; }

/* ---------- AVATAR (ortak) ---------- */
.avatar-wrap { position:relative; display:inline-flex; flex-shrink:0; border-radius:8px; }
.avatar-wrap .avatar-img { width:100%; height:100%; object-fit:cover; border-radius:inherit; background:#0f0f0f; }
.avatar-wrap.xs { width:24px; height:24px; border-radius:6px; }
.avatar-wrap.sm { width:34px; height:34px; border-radius:8px; }
.avatar-wrap.md { width:44px; height:44px; border-radius:10px; }
.avatar-wrap.lg { width:64px; height:64px; border-radius:14px; }
.avatar-wrap.xl { width:130px; height:130px; border-radius:22px; margin:0 auto; }
.avatar-wrap.framed { box-shadow:0 0 0 3px var(--f1,#7b61ff), 0 0 18px 2px var(--f2,#00e5ff); }
.crown-badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); font-size:15px; z-index:2; pointer-events:none; filter:drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
.avatar-wrap.xl .crown-badge { font-size:38px; top:-24px; }
.avatar-wrap.lg .crown-badge { font-size:22px; top:-17px; }
.avatar-wrap.xs .crown-badge { font-size:11px; top:-9px; }

/* ---------- AVATAR DÜZENLEYİCİ + MAĞAZA ---------- */
.avatar-editor { max-width:640px; width:100%; max-height:88vh; display:flex; flex-direction:column; }
.modal-x { position:absolute; top:18px; right:18px; }
.ae-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; padding-right:36px; }
.ae-head h3 { margin:0; }
.ae-diamonds { background:rgba(245,166,35,.12); border:1px solid rgba(245,166,35,.4); color:#f5a623; padding:6px 14px; border-radius:20px; font-size:14px; font-weight:700; }
.ae-tabs { display:flex; background:var(--card2); border-radius:10px; padding:5px; margin-bottom:16px; }
.ae-tab { flex:1; padding:10px; border:none; border-radius:7px; background:transparent; color:var(--muted); cursor:pointer; font-size:14px; font-weight:600; }
.ae-tab.active { background:var(--red); color:#fff; }
.ae-body { overflow-y:auto; flex:1; padding-right:4px; }
.ae-preview { display:flex; justify-content:center; padding:10px 0 22px; }
.ae-panel.hidden { display:none; }
.ae-cat { margin-bottom:18px; }
.ae-cat h4 { font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; }
.ae-chips { display:flex; flex-wrap:wrap; gap:8px; }
.ae-chip { background:var(--card2); border:1px solid var(--line); color:#fff; padding:8px 12px; border-radius:8px; font-size:13px; cursor:pointer; transition:.15s; }
.ae-chip:hover { border-color:#666; }
.ae-chip.active { border-color:var(--red); background:rgba(229,9,20,.15); color:#fff; }
.ae-chip.locked { opacity:.55; }
.ae-chips.swatches { gap:10px; }
.ae-chip.swatch { width:34px; height:34px; padding:0; border-radius:50%; border:2px solid var(--line); }
.ae-chip.swatch.active { border-color:#fff; box-shadow:0 0 0 2px var(--red); }
.ae-chip.swatch.locked { position:relative; }
.ae-shop-section { margin-bottom:20px; }
.ae-shop-section h4 { font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:10px; }
.shop-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:12px; }
.shop-card { background:var(--card2); border:1px solid var(--line); border-radius:12px; padding:12px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:6px; }
.shop-card.owned { border-color:rgba(70,211,105,.5); }
.sc-visual { width:52px; height:52px; display:flex; align-items:center; justify-content:center; font-size:28px; border-radius:12px; background:#151515; }
.sc-frame-preview { border-radius:50%; box-shadow:0 0 0 3px var(--f1), 0 0 14px 2px var(--f2); background:#0f0f0f; }
.sc-name { font-size:12.5px; font-weight:600; line-height:1.3; }
.sc-price { font-size:12px; color:#f5a623; }
.sc-owned { font-size:11.5px; color:var(--green); }
.sc-action { width:100%; margin-top:4px; }
.sc-action .mini { width:100%; }

@media (max-width:800px){ .room-grid { grid-template-columns:1fr; } }
@media (max-width:600px){
  #topbar,.hero,.rooms,.room-wrap { padding-left:18px; padding-right:18px; }
  .auth-card { padding:30px 22px; }
  #meName { display:none; }
}
