/* =========================================================
   1'e 1 Online Görüşme – danışan sayfası, panel ve görüşme ekranı
   ========================================================= */

/* ---------- Katılım (lobi) ---------- */
.join-hero { padding: 60px 0 90px; }
.join-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.join-grid > * { min-width: 0; }
.join-hero h1 { margin-bottom: .35em; }
.join-hero h1 em { font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.join-form { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.jf-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.jf-field { display: grid; gap: 6px; }
.jf-field > span { font-size: .84rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.jf-field input, .jf-field select {
	width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
	font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.jf-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235a6473' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 40px; }
.jf-field input:focus, .jf-field select:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(24, 136, 150, .14); }
#og-pin { letter-spacing: .4em; font-weight: 800; font-size: 1.15rem; text-align: center; }
#og-pin::placeholder { letter-spacing: normal; font-weight: 500; font-size: .95rem; }
.jf-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.jf-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal-700); flex: none; }
.jf-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #fdecee; color: #a3283c; font-weight: 600; font-size: .92rem; white-space: pre-line; }
.jf-submit { width: 100%; }
.jf-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.jf-note { margin: 0; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .84rem; color: var(--muted); }
.jf-note .icon { color: var(--teal-500); }

/* Ön izleme kartı */
.pv-card { background: #fff; border-radius: 28px; padding: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.pv-video { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #1d6a73, #0d2f35 70%); }
.pv-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.pv-card.ready .pv-video video { opacity: 1; }
.pv-card[data-cam="off"] .pv-video video { opacity: 0; }
video.mirror { transform: scaleX(-1); }
.pv-empty, .pv-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 26px; color: #d6eceb; }
.pv-empty[hidden], .pv-error[hidden] { display: none; }
.pv-empty p, .pv-error p { margin: 0; max-width: 34ch; font-size: .95rem; }
.pv-empty strong { color: #fff; font-size: 1.05rem; }
.pv-empty-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.pv-empty-ico .icon { width: 32px; height: 32px; }
.pv-empty-ico.warn { background: rgba(226, 86, 107, .2); border-color: rgba(226, 86, 107, .5); }
.pv-card[data-cam="off"].ready .pv-video::after { content: "Kamera kapalı"; position: absolute; inset: 0; display: grid; place-items: center; color: #cfe6e6; font-weight: 700; }
.pv-toolbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(10, 30, 36, .55); backdrop-filter: blur(8px); }
.pv-toolbar[hidden] { display: none; }
.pv-toolbar .cbtn { width: 44px; height: 44px; }
.meter { display: flex; align-items: flex-end; gap: 3px; height: 22px; padding: 0 4px; }
.meter i { width: 4px; border-radius: 2px; background: rgba(255,255,255,.3); transition: background .08s; }
.meter i:nth-child(1) { height: 30%; } .meter i:nth-child(2) { height: 45%; } .meter i:nth-child(3) { height: 60%; } .meter i:nth-child(4) { height: 75%; } .meter i:nth-child(5) { height: 90%; } .meter i:nth-child(6) { height: 100%; } .meter i:nth-child(7) { height: 100%; }
.meter i.on { background: #7ef0c8; }
.pv-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 8px 4px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.pv-checks li { display: inline-flex; align-items: center; gap: 8px; }
.pv-checks .dot { width: 10px; height: 10px; border-radius: 50%; background: #cfc5b6; }
.pv-checks li[data-ok="1"] .dot { background: #22b07d; box-shadow: 0 0 0 4px rgba(34, 176, 125, .15); }
.pv-checks li[data-ok="0"] .dot { background: #e2566b; box-shadow: 0 0 0 4px rgba(226, 86, 107, .15); }
.pv-checks li[data-ok="1"] { color: var(--ink); }

@media (max-width: 960px) {
	.join-grid { grid-template-columns: 1fr; gap: 36px; }
	.join-left { text-align: left; }
	.join-right { order: -1; }
	.join-hero .soon-badge { margin-bottom: 14px; }
}
@media (max-width: 520px) {
	.jf-row { grid-template-columns: 1fr; }
	.join-form { padding: 20px; }
	.pv-video { aspect-ratio: 4 / 3.4; }
}

/* ---------- Ortak kontrol butonu ---------- */
.cbtn {
	position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.14); color: #fff; transition: background .2s, transform .2s, color .2s;
}
.cbtn:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.cbtn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.cbtn .gi-mic-off, .cbtn .gi-cam-off { display: none; }
.cbtn[aria-pressed="false"] { background: #fff; color: #c93b52; }
.cbtn[aria-pressed="false"] .gi-mic, .cbtn[aria-pressed="false"] .gi-cam { display: none; }
.cbtn[aria-pressed="false"] .gi-mic-off, .cbtn[aria-pressed="false"] .gi-cam-off { display: block; }
.cbtn > span { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.75); white-space: nowrap; }
.cbtn.end { width: 68px; border-radius: 999px; background: #e2566b; }
.cbtn.end:hover { background: #c93b52; }
.btn-danger { background: #e2566b; color: #fff; }
.btn-danger:hover { background: #c93b52; color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--sand); }
.btn-ghost.danger:hover { color: #c93b52; background: #fdecee; }

/* ---------- Görüşme ekranı ---------- */
body.in-call { overflow: hidden; }
body.in-call .wa-float, body.in-call .to-top { display: none; }
.call {
	position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
	padding: 16px 18px 22px; color: #fff;
	background: radial-gradient(1200px 700px at 0% 0%, rgba(24, 136, 150, .35), transparent 60%), radial-gradient(1000px 700px at 100% 100%, rgba(106, 63, 160, .4), transparent 60%), #0a1f24;
}
.call[hidden] { display: none; }
.call-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.call-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.call-brand img { width: 46px; height: auto; background: #fff; border-radius: 10px; padding: 4px; }
.call-brand strong { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.call-brand small { display: block; font-size: .78rem; color: #a9c6c6; }
.call-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.call-meta > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .82rem; font-weight: 700; }
.call-meta .icon { width: 15px; height: 15px; color: #7ef0c8; }
.call-meta .timer { font-variant-numeric: tabular-nums; min-width: 66px; justify-content: center; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: #f2b84b; }
.conn[data-state="ok"] i { background: #22d38f; box-shadow: 0 0 0 4px rgba(34, 211, 143, .2); }
.conn[data-state="conn"] i { background: #f2b84b; animation: blink 1s infinite; }
.conn[data-state="wait"] i { background: #9fb6b6; }
@keyframes blink { 50% { opacity: .3; } }

.call-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0; }
.tile { position: relative; overflow: hidden; border-radius: 24px; background: linear-gradient(150deg, #133a41, #241a3d); border: 1px solid rgba(255,255,255,.08); min-height: 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0c1d21; }
.tile[data-cam="off"] video { opacity: 0; }
.tile-avatar { position: absolute; inset: 0; display: none; place-items: center; }
.tile[data-cam="off"] .tile-avatar { display: grid; }
.tile-avatar span { display: grid; place-items: center; width: clamp(84px, 14vw, 140px); aspect-ratio: 1; border-radius: 50%; background: var(--grad); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; box-shadow: 0 0 0 10px rgba(255,255,255,.05), 0 0 0 22px rgba(255,255,255,.03); }
.tile-label { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(5, 18, 22, .55); backdrop-filter: blur(8px); font-size: .86rem; font-weight: 700; }
.muted-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e2566b; }
.muted-ico .gi { width: 13px; height: 13px; }
.muted-ico[hidden] { display: none; }
.tile-wait { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 30px; background: linear-gradient(150deg, rgba(19, 58, 65, .96), rgba(36, 26, 61, .96)); }
.tile-wait[hidden] { display: none; }
.tile-wait p { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.tile-wait small { max-width: 40ch; color: #a9c6c6; font-size: .88rem; }
.wait-rings { position: relative; width: 96px; height: 96px; }
.wait-rings span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(126, 240, 200, .6); animation: ring 2.4s ease-out infinite; }
.wait-rings span:nth-child(2) { animation-delay: .8s; }
.wait-rings span:nth-child(3) { animation-delay: 1.6s; }
.wait-rings::after { content: ""; position: absolute; inset: 30px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 30px rgba(126, 240, 200, .35); }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.tile-local.no-media .tile-avatar { display: grid; }
.tile-local.no-media video { display: none; }

/* Odak görünümü: karşı taraf büyük, siz küçük pencerede */
.call[data-layout="focus"] .call-stage { grid-template-columns: 1fr; }
.call[data-layout="focus"] .tile-local { position: absolute; right: 18px; bottom: 18px; width: clamp(150px, 22vw, 300px); aspect-ratio: 16 / 10; z-index: 3; border: 2px solid rgba(255,255,255,.25); }
.call[data-layout="focus"] .tile-local .tile-avatar span { width: 56px; font-size: 1.3rem; box-shadow: none; }
.call[data-layout="focus"] .tile-local .tile-label { left: 8px; bottom: 8px; padding: 4px 9px; font-size: .74rem; }

.call-controls { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 18px 22px; margin: 0 auto; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.call-controls .cbtn[hidden] { display: none; }

.call-toast { position: absolute; left: 50%; top: 84px; z-index: 5; transform: translate(-50%, -10px); padding: 11px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.call-toast.show { opacity: 1; transform: translate(-50%, 0); }
.call-toast.warn { background: #fff4dc; color: #8a5a00; }
.call-toast.ok { background: #dcf7ec; color: #0e6b47; }

.call-modal, .call-ended { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(5, 18, 22, .7); backdrop-filter: blur(6px); }
.call-modal[hidden], .call-ended[hidden] { display: none; }
.cm-box, .ce-box { width: min(520px, 100%); background: #fff; color: var(--ink); border-radius: 26px; padding: 34px 30px; text-align: center; box-shadow: var(--shadow-lg); }
.cm-box h2, .ce-box h2 { font-size: 1.5rem; margin-bottom: .4em; }
.cm-box p, .ce-box p { color: var(--muted); }
.cm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.ce-ico { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--grad); color: #fff; margin-bottom: 14px; }
.ce-ico .icon { width: 32px; height: 32px; }
.call-ended { background: radial-gradient(1000px 600px at 50% 0%, rgba(24, 136, 150, .45), transparent 60%), #0a1f24; }

/* Mobil: dikey ekranda üst-alt bölünme */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1024px) {
	.call { padding: 10px 10px 14px; gap: 10px; }
	.call-stage { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
	.call[data-layout="focus"] .call-stage { grid-template-rows: 1fr; }
	.call[data-layout="focus"] .tile-local { width: 34vw; aspect-ratio: 3 / 4; right: 12px; bottom: 12px; }
	.tile { border-radius: 18px; }
	.call-meta .secure { display: none; }
	.call-brand small { display: none; }
	.call-brand img { width: 38px; }
	.cbtn { width: 48px; height: 48px; }
	.cbtn.end { width: 60px; }
	.call-controls { gap: 10px; padding: 10px 14px 20px; }
	.hide-xs { display: none !important; }
	.call-toast { top: 64px; }
}
@media (max-width: 380px) {
	.call-meta .timer { display: none; }
	.cbtn > span { display: none; }
	.call-controls { padding: 10px 12px; }
}

/* ---------- Panel ---------- */
.panel-hero { padding: 60px 0 100px; background: linear-gradient(180deg, #f6f1ea, var(--bg)); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.panel-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3em; }
.panel-head .lead { margin: 0; }
.panel-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.panel-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 10px; height: 10px; border-radius: 50%; }
.lg-closed { background: #cfc5b6; } .lg-open { background: var(--teal-500); } .lg-wait { background: #f2a43b; } .lg-live { background: #22b07d; }
.panel-error { padding: 14px 18px; border-radius: 14px; background: #fdecee; color: #a3283c; font-weight: 600; }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.room-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; transition: box-shadow .3s, border-color .3s, transform .3s; }
.room-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.room-card::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: #cfc5b6; }
.room-card[data-state="open"]::before { background: var(--teal-500); }
.room-card[data-state="wait"]::before { background: #f2a43b; }
.room-card[data-state="live"]::before { background: #22b07d; }
.room-card[data-state="wait"] { border-color: #f6cf98; box-shadow: 0 0 0 4px rgba(242, 164, 59, .12); }
.room-card header { display: flex; align-items: center; gap: 14px; }
.rc-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--sand); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--muted); flex: none; }
.room-card:not([data-state="closed"]) .rc-num { background: var(--grad); color: #fff; }
.room-card h2 { font-size: 1.15rem; margin: 0; }
.rc-state { font-size: .82rem; font-weight: 700; color: var(--muted); }
.room-card[data-state="wait"] .rc-state { color: #b8721a; }
.room-card[data-state="live"] .rc-state { color: #168a5f; }
.rc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rc-pin, .rc-guest { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.rc-pin small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rc-pin strong { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .08em; color: var(--ink); }
.room-card[data-state="closed"] .rc-pin strong { color: #cfc5b6; }
.rc-guest { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.rc-guest .icon { width: 22px; height: 22px; color: var(--teal-500); flex: none; }
.room-card[data-state="wait"] .rc-guest, .room-card[data-state="live"] .rc-guest { color: var(--ink); }
.rc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-actions .btn { padding: .55em 1em; font-size: .85rem; }
.room-card[data-state="closed"] [data-act="share"], .room-card[data-state="closed"] [data-act="copy"], .room-card[data-state="closed"] [data-act="newpin"], .room-card[data-state="closed"] [data-act="close"] { display: none; }
.room-card:not([data-state="closed"]) [data-act="open"] { display: none; }
.panel-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.panel-tips > div { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.panel-tips .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--teal-100); color: var(--teal-700); flex: none; }
.panel-tips p { margin: 0; font-size: .92rem; color: var(--muted); }
.host-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.host-info > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
.host-info small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.host-info strong { font-family: var(--serif); font-size: 1.3rem; }
@media (max-width: 1000px) { .room-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .room-grid, .panel-tips { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wait-rings span { animation: none; opacity: .4; } }
body.in-call #wpadminbar { display: none; }
.tile.waiting .tile-label, .tile.waiting .tile-avatar { display: none !important; }
.call-meta { flex-wrap: nowrap; }
.call-brand > div { min-width: 0; }
.call-brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1024px) {
	.call-brand strong { font-size: 1rem; }
	.call-meta > span { padding: 6px 10px; font-size: .78rem; }
	.call-meta .timer { min-width: 0; }
	.call-controls { padding: 10px 16px 28px; }
}
