:root {
  --bg: #0b0d14; --bg2: #11141f; --card: #161a28; --card2: #1d2233; --line: #262c40;
  --text: #eef0f6; --muted: #9aa3b8; --p1: #7c5cff; --p2: #22d3ee; --accent: #f59e0b;
  --danger: #ef4444; --ok: #22c55e; --radius: 16px; --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height: 1.5; }
body { min-height: 100vh; background: radial-gradient(900px 500px at 10% -10%, rgba(124, 92, 255, 0.25), transparent 60%), radial-gradient(800px 500px at 100% 0%, rgba(34, 211, 238, 0.18), transparent 60%), var(--bg); }
a { color: var(--p2); }
.muted { color: var(--muted); } .small { font-size: 0.85rem; } .center { text-align: center; }
.grad { background: linear-gradient(90deg, var(--accent), var(--danger), var(--ok)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; max-width: 1100px; margin: 0 auto; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.05rem; }
.brand b { color: var(--p2); }
.logo { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--danger) 50%, var(--ok)); display: inline-block; }
.userbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn { background: var(--card2); border: 1px solid var(--line); color: var(--text); padding: 10px 16px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: 0.15s; }
.btn:hover { background: #242a3d; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--p1), #5b8def); border: none; color: #fff; box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35); }
.btn.big { padding: 14px 22px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; } .btn.small { padding: 6px 12px; font-size: 0.85rem; } .btn.tiny { padding: 4px 8px; font-size: 0.85rem; }
.btn.mic { border-color: rgba(239, 68, 68, 0.5); } .btn.mic.on { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); } 50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(124, 92, 255, 0.15); color: #c4b5fd; font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(124, 92, 255, 0.35); }

.screen { max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; }
.hero { text-align: center; padding: 30px 0 10px; }
.avatars-hero { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.av-hero { background: var(--card); border: 2px solid var(--c); border-radius: 18px; padding: 10px 14px; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.av-hero span { font-size: 2rem; } .av-hero b { font-size: 0.9rem; } .av-hero small { color: var(--c); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1; margin: 10px 0; font-weight: 900; }
.lead { color: var(--muted); max-width: 640px; margin: 0 auto 22px; font-size: 1.05rem; }
.idea-form { max-width: 640px; margin: 0 auto; text-align: left; }
.idea-label { display: block; font-weight: 700; margin-bottom: 6px; }
.idea-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.idea-box textarea, .founder-box textarea, .form input { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px; font: inherit; resize: vertical; }
.idea-box textarea { border: none; background: transparent; padding: 4px; min-height: 120px; }
.idea-box textarea:focus, .founder-box textarea:focus, .form input:focus { outline: 2px solid rgba(124, 92, 255, 0.5); }
.idea-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 30px auto; }
.how div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.how b { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: var(--p1); color: #fff; text-align: center; line-height: 28px; margin-bottom: 8px; }
.how p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) { .how { grid-template-columns: 1fr; } }
.foot { text-align: center; color: var(--muted); padding: 30px 0 10px; font-size: 0.85rem; }
.foot a { color: var(--muted); }

.note { max-width: 1100px; margin: 10px auto; padding: 12px 14px; border-radius: 12px; font-size: 0.92rem; }
.note.ok { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: #bbf7d0; }
.note.err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fecaca; }
.banner.warn { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: rgba(255, 184, 0, 0.1); border: 1px solid rgba(255, 184, 0, 0.35); color: #ffe7a8; padding: 12px 16px; border-radius: 12px; margin: 12px auto; max-width: 1100px; font-size: 0.9rem; }

/* ---------- oda sahnesi (dikey, reel uyumlu) ---------- */
.stage { max-width: 520px; margin: 10px auto; background: #07080d; border: 1px solid var(--line); border-radius: 22px; padding: 14px; min-height: 80vh; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.investors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inv { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 12px 8px; text-align: center; transition: 0.3s; opacity: 0.55; position: relative; }
.inv .em { font-size: 2.2rem; display: block; transition: 0.3s; }
.inv b { display: block; font-size: 0.85rem; margin-top: 4px; }
.inv small { color: var(--c); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.inv.active { opacity: 1; border-color: var(--c); transform: scale(1.06); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent), 0 10px 30px rgba(0, 0, 0, 0.5); }
.inv.active .em { animation: talk 0.5s infinite alternate; }
@keyframes talk { from { transform: translateY(0) scale(1); } to { transform: translateY(-3px) scale(1.08); } }
.inv .wave { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: none; gap: 2px; }
.inv.active .wave { display: flex; }
.inv .wave i { width: 3px; height: 8px; background: var(--c); border-radius: 2px; animation: wave 0.6s infinite ease-in-out; }
.inv .wave i:nth-child(2) { animation-delay: 0.15s; } .inv .wave i:nth-child(3) { animation-delay: 0.3s; } .inv .wave i:nth-child(4) { animation-delay: 0.45s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 16px; } }
.inv .verdict-badge { position: absolute; top: -8px; right: -6px; font-size: 0.65rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: #000; border: 1px solid var(--line); }
.subtitle-box { flex: 1; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); border-radius: 16px; padding: 14px; min-height: 150px; }
.speaker-name { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.subtitle { font-size: 1.25rem; font-weight: 700; line-height: 1.35; min-height: 3em; }
.subtitle .w { opacity: 0.18; transition: opacity 0.12s; } .subtitle .w.on { opacity: 1; }
.subtitle .react { display: block; color: var(--muted); font-weight: 500; font-size: 1rem; margin-bottom: 6px; }
.thinking { display: flex; align-items: center; gap: 4px; color: var(--muted); margin-top: 10px; }
.thinking span { width: 8px; height: 8px; border-radius: 50%; background: var(--p2); animation: blink 1s infinite; }
.thinking span:nth-child(2) { animation-delay: 0.2s; } .thinking span:nth-child(3) { animation-delay: 0.4s; }
.thinking em { margin-left: 8px; font-style: normal; font-size: 0.85rem; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.founder-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.founder-box.disabled { opacity: 0.5; pointer-events: none; }
.founder-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.answer-tools { display: flex; gap: 8px; margin-top: 8px; }
.answer-tools .btn { flex: 1; }
.rec { color: var(--danger); font-size: 0.8rem; margin-top: 6px; font-weight: 700; }
.idea-strip { font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; max-height: 3.2em; overflow: hidden; }

/* ---------- değerleme kartı ---------- */
.vcard { max-width: 560px; margin: 16px auto; background: linear-gradient(160deg, #141826, #0b0d14); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.vcard-top { display: flex; justify-content: space-between; align-items: center; }
.score { font-weight: 900; } .score b { font-size: 2.4rem; color: var(--accent); } .score small { color: var(--muted); }
.vcard h1 { font-size: 1.6rem; margin: 10px 0 4px; }
.valuation { background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 14px; padding: 10px 14px; margin: 14px 0; }
.valuation small { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.valuation b { font-size: 1.3rem; color: var(--p2); }
.decisions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.decisions li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.decisions .av { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 20%, transparent); border: 2px solid var(--c); display: grid; place-items: center; font-size: 1.4rem; }
.decisions b { font-size: 0.9rem; } .decisions li small { color: var(--muted); font-size: 0.72rem; }
.decisions p { margin: 2px 0 0; font-size: 0.82rem; color: #cdd3e3; }
.decisions strong { text-align: right; font-size: 0.8rem; display: flex; flex-direction: column; align-items: flex-end; }
.decisions strong small { font-size: 0.7rem; }
.d-yatirim strong { color: var(--ok); } .d-pas strong { color: var(--danger); } .d-belki strong { color: var(--accent); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.cols h4 { margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.cols ul { margin: 0; padding-left: 18px; font-size: 0.85rem; }
.meme { margin: 14px 0 6px; font-weight: 700; font-style: italic; color: #fcd34d; }
.next { font-size: 0.9rem; color: #cdd3e3; }
.idea summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
.result-actions { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-actions .btn:first-child { grid-column: 1 / -1; }
.share-main { max-width: 600px; margin: 0 auto; padding: 16px; text-align: center; }
.share-main .vcard { text-align: left; }
.share-main .brand { justify-content: center; margin: 10px 0; }

/* ---------- odalarım ---------- */
.my-rooms { max-width: 760px; margin: 20px auto; }
.rooms-list { display: grid; gap: 10px; }
.room-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.room-item .t { font-weight: 700; } .room-item .i { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.room-item .s { font-weight: 900; color: var(--accent); font-size: 1.3rem; }

/* ---------- modal / form ---------- */
.modal { position: fixed; inset: 0; background: rgba(5, 7, 12, 0.75); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; width: min(440px, 100%); position: relative; box-shadow: var(--shadow); }
.close { position: absolute; right: 10px; top: 8px; background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.tabs { display: flex; gap: 6px; background: var(--bg2); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.tab { flex: 1; background: none; border: none; color: var(--muted); padding: 8px; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 600; }
.tab.active { background: var(--card2); color: var(--text); }
.form label { display: block; margin-bottom: 10px; font-size: 0.9rem; }
.form label input { margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: #cdd3e3; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--p1); }
#turnstile-box:empty { display: none; } #turnstile-box { margin: 4px 0 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f2437; border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; z-index: 100; max-width: 90vw; box-shadow: var(--shadow); font-size: 0.92rem; }
.toast.ok { border-color: var(--ok); } .toast.err { border-color: var(--danger); }
