/* Anatolian Export — diş kliniği çağrı asistanı demosu.
   Tasarım dili panel.anatolianexport.com ile aynı: sakin yüzeyler, lacivert + turkuaz, turuncu yalnızca aksiyon. */
:root {
  --bg: #E9EDF1; --card: #FFFFFF; --ink: #0B2233; --ink-2: #1D3346; --sub: #4E5B67;
  --line: rgba(11,34,51,.11); --field: #C9CFD6;
  --teal: #008B8E; --teal-ink: #00686B; --teal-bright: #34C6C3; --teal-soft: #E3F3F2;
  --amber: #B5541C; --amber-soft: #FBEEE4; --red: #B42318; --red-soft: #FDECEA;
  --night: #05101A; --night-2: #0B1B28; --night-line: rgba(255,255,255,.09);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22,.8,.2,1);
  --shadow: 0 0 0 1px rgba(11,34,51,.06), 0 1px 2px rgba(11,34,51,.06), 0 14px 34px -16px rgba(11,34,51,.26);
  --radius: 22px;
  --surface: #FFFFFF; --surface-2: #F0F3F6; --surface-3: #E3E8ED; --hover: #F3F6F8;
  --ok-soft: #E9F7EF; --ok-ink: #11683B;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1117; --card: #121A22; --ink: #EAF0F4; --ink-2: #C8D3DB; --sub: #93A1AC;
  --line: rgba(255,255,255,.09); --field: rgba(255,255,255,.16);
  --teal: #19A7A9; --teal-ink: #5BD3D0; --teal-bright: #3FD1CE; --teal-soft: rgba(52,198,195,.14);
  --amber: #F0A06A; --amber-soft: rgba(240,160,106,.14); --red: #F97066; --red-soft: rgba(249,112,102,.14);
  --surface: #121A22; --surface-2: #18222C; --surface-3: #1F2B36; --hover: #17212A;
  --ok-soft: rgba(31,162,90,.16); --ok-ink: #6FD39B;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 16px 40px -18px rgba(0,0,0,.6);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.01em; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.025em; line-height: 1.12; font-weight: 600; }
p { margin: 0; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--teal-ink); }
img { display: block; max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(0,139,142,.45); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.num, .timer, .kpi b, .dur, .tl time { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .15s var(--ease), filter .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.teal:hover { filter: brightness(1.08); }
.btn.amber { background: #E0894A; color: #2A1405; box-shadow: 0 10px 28px -12px rgba(224,137,74,.8); }
.btn.amber:hover { filter: brightness(1.06); }
.btn.stop { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: #fff; display: grid; place-items: center; }
.icon-btn svg { width: 17px; height: 17px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11.5px/1 var(--font); letter-spacing: .01em; background: rgba(52,198,195,.14); color: #5BD3D0; }
.tag-dim { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.eyebrow { font: 600 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #5BD3D0; }
.eyebrow.dark { color: var(--teal-ink); }
.sub { color: var(--sub); font-size: 14px; }

/* top bar (night) */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(5,16,26,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--night-line); color: #fff; }
.brand img { height: 26px; width: auto; }
.top-mid { display: none; align-items: center; gap: 8px; margin-left: 6px; }
.clinic-name { font-weight: 600; font-size: 14px; color: rgba(255,255,255,.86); }
.top-end { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ================= stage ================= */
.stage { background: var(--night); color: #EAF0F4; padding: 28px 16px 36px; }
.stage-inner { max-width: 1120px; margin: 0 auto; }
.stage-head { max-width: 640px; margin-bottom: 22px; }
.stage-head h1 { font-size: clamp(28px, 7vw, 44px); margin: 10px 0 10px; color: #fff; }
.lead { color: #93A1AC; font-size: 16px; }
.stage-grid { display: grid; gap: 14px; }

.call { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.call-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--night-line); }
.state-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.07); font: 600 12.5px/1 var(--font); color: rgba(255,255,255,.75); }
.state-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #93A1AC; }
.call[data-state="connecting"] .state-pill { color: #F0A06A; background: rgba(240,160,106,.12); }
.call[data-state="connecting"] .dot { background: #F0A06A; animation: blink 1s infinite; }
.call[data-state="live"] .state-pill { color: #3FD1CE; background: rgba(52,198,195,.14); }
.call[data-state="live"] .dot { background: #3FD1CE; box-shadow: 0 0 0 0 rgba(63,209,206,.6); animation: pulse 1.6s infinite; }
.call[data-state="ended"] .state-pill { color: #6FD39B; background: rgba(31,162,90,.16); }
.call[data-state="ended"] .dot { background: #6FD39B; }
.call[data-state="error"] .state-pill { color: #F97066; background: rgba(249,112,102,.14); }
.call[data-state="error"] .dot { background: #F97066; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63,209,206,0); } 100% { box-shadow: 0 0 0 0 rgba(63,209,206,0); } }
@keyframes blink { 50% { opacity: .3; } }
.call-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.55); }
.timer { color: #fff; font-weight: 600; font-size: 13px; }

.scenarios { display: flex; gap: 6px; padding: 12px 14px 0; overflow-x: auto; scrollbar-width: none; }
.scenarios::-webkit-scrollbar { display: none; }
.scn { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.scn:hover { border-color: rgba(255,255,255,.3); }
.scn.is-on { background: rgba(52,198,195,.14); border-color: rgba(63,209,206,.45); color: #5BD3D0; }
.scn:disabled { opacity: .45; cursor: default; }
.scn-hint { padding: 8px 14px 0; font-size: 13px; color: rgba(255,255,255,.5); min-height: 28px; }
.scn-hint q { color: rgba(255,255,255,.82); quotes: "“" "”"; }

.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 44px; margin: 8px 14px 0; border-radius: 14px; background: rgba(255,255,255,.03); }
.wave i { width: 3px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.16); transition: height .12s linear, background .2s; }
.call[data-state="live"] .wave i { background: #3FD1CE; }

.transcript { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; height: 270px; overflow-y: auto; scroll-behavior: smooth; }
.t-empty { margin: auto; color: rgba(255,255,255,.35); font-size: 13.5px; text-align: center; max-width: 260px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.42; animation: rise .25s var(--ease); }
.msg small { display: block; font: 600 10.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; opacity: .7; }
.msg.ai { align-self: flex-start; background: rgba(52,198,195,.12); color: #DDF4F3; border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: rgba(255,255,255,.08); color: #EAF0F4; border-bottom-right-radius: 6px; }
.msg.partial { opacity: .6; }
.sys { align-self: center; display: inline-flex; gap: 6px; align-items: center; max-width: 94%; padding: 5px 10px; border-radius: 999px; background: rgba(240,160,106,.1); color: #F0C29F; font-size: 12px; animation: rise .25s var(--ease); }
.sys b { font-weight: 700; letter-spacing: .06em; font-size: 10.5px; color: #F0A06A; }
.sys.ok { background: rgba(31,162,90,.14); color: #9BE2BA; }
.sys.ok b { color: #6FD39B; }
.sys.warn { background: rgba(249,112,102,.14); color: #FBB4AE; }
.sys.warn b { color: #F97066; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.call-actions { padding: 12px 14px 16px; border-top: 1px solid var(--night-line); display: grid; gap: 8px; }
.call-note { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.45); }

/* live card */
.live { display: grid; gap: 12px; align-content: start; }
.live-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 16px; }
.live-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.live-head h2 { font-size: 17px; color: #fff; }
.live-badge { font: 600 11.5px/1 var(--font); padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); }
.live-badge.on { background: rgba(52,198,195,.14); color: #3FD1CE; }
.live-badge.done { background: rgba(31,162,90,.16); color: #6FD39B; }
.fields { margin: 0; display: grid; }
.f { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--night-line); }
.f:first-child { border-top: 0; }
.f dt { font-size: 13px; color: rgba(255,255,255,.5); }
.f dd { margin: 0; font-weight: 600; font-size: 14.5px; color: rgba(255,255,255,.35); text-align: right; display: inline-flex; gap: 8px; align-items: center; }
.f.filled dd { color: #fff; }
.f.filled dd::after { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #19A7A9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.f.flash { animation: flash 1.1s var(--ease); }
@keyframes flash { 0% { background: rgba(52,198,195,.22); } 100% { background: transparent; } }
.live-foot { margin-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.45); }

.wa { background: #0E2A26; border: 1px solid rgba(37,211,102,.18); border-radius: var(--radius); padding: 14px; animation: rise .35s var(--ease); }
.wa-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.wa-head svg { width: 16px; height: 16px; color: #25D366; }
.wa-head .tag { margin-left: auto; }
.wa-bubble { background: #144D3F; color: #E9FFF5; padding: 10px 12px; border-radius: 14px 14px 14px 4px; font-size: 14px; line-height: 1.45; }

/* ================= panel ================= */
.panel { max-width: 1120px; margin: 0 auto; padding: 26px 16px 8px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); border-left: 3px solid var(--amber); border-top-left-radius: 0; border-bottom-left-radius: 0; font-size: 13.5px; color: var(--ink-2); margin-bottom: 20px; }
.banner svg { width: 18px; height: 18px; flex: none; color: var(--amber); margin-top: 1px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { font-size: 24px; }
.panel-head .sub { margin-top: 4px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-3); }
.seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; color: var(--sub); }
.seg button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); display: grid; gap: 2px; }
.kpi span { font-size: 12.5px; color: var(--sub); }
.kpi b { font: 600 24px/1.15 var(--display); letter-spacing: -.02em; }
.kpi small { font-size: 12px; color: var(--sub); }
.kpi.bump b { animation: bump .6s var(--ease); color: var(--teal-ink); }
@keyframes bump { 40% { transform: scale(1.12); } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h3 { font-size: 16px; }
.count { font-size: 12.5px; color: var(--sub); }

.attention { margin-bottom: 18px; }
.att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.att { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.att .ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.att .ic svg { width: 16px; height: 16px; }
.att.urgent .ic { background: var(--red-soft); color: var(--red); }
.att.callback .ic { background: var(--amber-soft); color: var(--amber); }
.att.new .ic { background: var(--teal-soft); color: var(--teal-ink); }
.att p { flex: 1; min-width: 0; }
.att p small { display: block; color: var(--sub); font-size: 12.5px; }
.att button { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--field); background: var(--card); font-size: 12.5px; font-weight: 600; }
.att.done { opacity: .5; }
.att.done button { pointer-events: none; }
.att-empty { padding: 12px; color: var(--sub); font-size: 14px; }

.tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tab { height: 40px; padding: 0 14px; border: 0; background: none; font-weight: 600; font-size: 14.5px; color: var(--sub); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.is-on { color: var(--ink); border-bottom-color: var(--teal); }

.calls { display: grid; gap: 12px; }
.list-card { padding: 12px; }
.list-card .card-head { padding: 6px 6px 0; }
.call-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ci { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border-radius: 14px; border: 1px solid transparent; background: none; text-align: left; transition: background .15s; }
.ci:hover { background: var(--hover); }
.ci.is-on { background: var(--teal-soft); border-color: rgba(0,139,142,.2); }
.ci.is-live { animation: arrive .9s var(--ease); }
@keyframes arrive { 0% { background: rgba(52,198,195,.35); transform: translateY(-6px); opacity: 0; } 100% { } }
.av { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font: 700 12.5px/1 var(--font); background: var(--surface-3); color: var(--ink-2); }
.ci-main { flex: 1; min-width: 0; }
.ci-top { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14.5px; }
.ci-top .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-sub { font-size: 12.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-end { display: grid; justify-items: end; gap: 4px; flex: none; }
.ci-end time { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }

.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 11.5px/1 var(--font); white-space: nowrap; }
.p-randevu { background: var(--ok-soft); color: var(--ok-ink); }
.p-geri { background: var(--amber-soft); color: var(--amber); }
.p-acil { background: var(--red-soft); color: var(--red); }
.p-bilgi { background: var(--surface-3); color: var(--ink-2); }
.p-live { background: var(--teal); color: #fff; }
.p-demo { background: var(--surface-3); color: var(--sub); font-weight: 500; }
.p-off { background: rgba(11,34,51,.08); color: var(--ink-2); }
:root[data-theme="dark"] .p-off { background: rgba(255,255,255,.08); }
.p-cat { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }

.detail { display: grid; gap: 14px; align-content: start; }
.d-head { display: flex; gap: 12px; align-items: center; }
.d-head .av { width: 44px; height: 44px; font-size: 14px; background: var(--teal-soft); color: var(--teal-ink); }
.d-head h3 { font-size: 18px; }
.d-head p { font-size: 13px; color: var(--sub); }
.d-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.d-summary { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14.5px; }
.d-summary small { display: block; font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--sub); margin-bottom: 6px; }
.d-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.d-grid div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.d-grid span { display: block; font-size: 12px; color: var(--sub); }
.d-grid b { font-size: 14px; font-weight: 600; }
.d-tabs { display: flex; gap: 4px; }
.d-tabs button { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; font-size: 13px; font-weight: 600; color: var(--sub); }
.d-tabs button.is-on { background: var(--surface-3); color: var(--ink); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--line); }
.tl li:first-child { border-top: 0; }
.tl time { color: var(--sub); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; padding-top: 1px; }
.tx { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.tx p { font-size: 14px; }
.tx b { font-weight: 600; }
.tx .sysline { font-size: 12.5px; color: var(--amber); }
.d-note { font-size: 12.5px; color: var(--sub); }

/* agenda */
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--sub); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; }
.lg-ai { background: var(--teal); }
.lg-tel { background: var(--ink-2); opacity: .55; }
.lg-web { background: var(--amber); }
.agenda-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.agenda { display: grid; grid-template-columns: 44px repeat(6, minmax(104px, 1fr)); min-width: 680px; }
.ag-h { position: sticky; top: 0; padding: 8px 6px; font-size: 12.5px; font-weight: 600; color: var(--sub); text-align: center; border-bottom: 1px solid var(--line); }
.ag-h.today { color: var(--teal-ink); }
.ag-t { font-size: 11.5px; color: var(--sub); padding: 4px 6px 0 0; text-align: right; font-variant-numeric: tabular-nums; border-top: 1px solid var(--line); height: 46px; }
.ag-c { position: relative; border-top: 1px solid var(--line); border-left: 1px solid var(--line); height: 46px; }
.slot { position: absolute; inset: 3px; border-radius: 10px; padding: 5px 7px; font-size: 11.5px; line-height: 1.25; overflow: hidden; display: grid; align-content: start; gap: 1px; }
.slot b { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot span { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-ai { background: var(--teal-soft); color: var(--teal-ink); box-shadow: inset 3px 0 0 var(--teal); }
.s-tel { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 3px 0 0 var(--field); }
.s-web { background: var(--amber-soft); color: var(--amber); box-shadow: inset 3px 0 0 var(--amber); }
.s-acil { background: var(--red-soft); color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.slot.glow { animation: glow 2.4s var(--ease) 2; z-index: 2; }
@keyframes glow { 0%, 100% { box-shadow: inset 3px 0 0 var(--teal), 0 0 0 0 rgba(52,198,195,0); } 40% { box-shadow: inset 3px 0 0 var(--teal), 0 0 0 6px rgba(52,198,195,.35); } }
.agenda-note { margin-top: 12px; font-size: 12.5px; color: var(--sub); }

/* ================= info ================= */
.info { max-width: 1120px; margin: 0 auto; padding: 18px 16px 24px; }
.info-grid { display: grid; gap: 12px; }
.info h3 { font-size: 19px; margin-bottom: 6px; }
.calc-fields { display: grid; gap: 10px; margin: 14px 0; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); font-size: 16px; font-variant-numeric: tabular-nums; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,139,142,.14); }
.calc-out { padding: 14px 16px; border-radius: 16px; background: var(--teal-soft); display: grid; gap: 2px; }
.calc-out span { font-size: 13px; color: var(--teal-ink); }
.calc-out strong { font: 600 30px/1.1 var(--display); color: var(--teal-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc-out small { font-size: 12.5px; color: var(--sub); }

.turnkey h3 { margin-top: 8px; font-size: 21px; }
.steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 50px; border-radius: 14px; background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 8px; background: var(--teal); color: #fff; font: 700 12.5px/24px var(--font); text-align: center; }
.steps b { color: var(--ink); display: block; }

.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 14px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008B8E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }

.price-rows { display: grid; gap: 0; margin: 10px 0 12px; }
.price-rows div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.price-rows div:first-child { border-top: 0; }
.price-rows span { color: var(--sub); font-size: 14px; }
.price-rows strong { font: 600 22px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-rows small { font-size: 13px; color: var(--sub); font-weight: 500; margin-left: 2px; }
.price .sub { margin-bottom: 10px; }
.price .btn { margin-top: 6px; }
.contact { margin-top: 10px; text-align: center; font-size: 13px; color: var(--sub); }

.foot { max-width: 1120px; margin: 0 auto; padding: 18px 16px 40px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--sub); }
.foot img { height: 24px; width: auto; }
.foot .logo-w { display: none; }
:root[data-theme="dark"] .foot .logo-c { display: none; }
:root[data-theme="dark"] .foot .logo-w { display: block; }

/* ================= larger screens ================= */
@media (min-width: 720px) {
  .top { padding: 12px 24px; }
  .top-mid { display: flex; }
  .stage { padding: 44px 24px 52px; }
  .panel, .info { padding-left: 24px; padding-right: 24px; }
  .kpis { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .calc-fields { grid-template-columns: repeat(3, minmax(0,1fr)); align-items: end; }
}
@media (min-width: 960px) {
  .stage-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
  .live { position: sticky; top: 76px; }
  .transcript { height: 320px; }
  .calls { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .detail { position: sticky; top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* küçük ekran ince ayarları */
@media (max-width: 719px) {
  #callWho { display: none; }
  .kpis .kpi:last-child { grid-column: span 2; }
  .calc-fields .field span { min-height: 0; }
}
@media (min-width: 720px) {
  .calc-fields .field span { min-height: 2.6em; display: flex; align-items: flex-end; }
}

/* ================= açık tema (varsayılan): sahne ve üst bar panel.anatolianexport açık temasıyla aynı ================= */
:root:not([data-theme="dark"]) .top { background: rgba(246,248,250,.92); border-bottom-color: var(--line); color: var(--ink); }
:root:not([data-theme="dark"]) .top .brand .logo-w { display: none; }
:root:not([data-theme="dark"]) .top .brand .logo-c { display: block; }
.top .brand .logo-c { display: none; }
:root:not([data-theme="dark"]) .clinic-name { color: var(--ink-2); }
:root:not([data-theme="dark"]) .icon-btn { border-color: var(--field); color: var(--ink); }
:root:not([data-theme="dark"]) .tag { background: var(--teal-soft); color: var(--teal-ink); }
:root:not([data-theme="dark"]) .tag-dim { background: var(--surface-3); color: var(--sub); }
:root:not([data-theme="dark"]) .eyebrow { color: var(--teal-ink); }

:root:not([data-theme="dark"]) .stage { background: linear-gradient(160deg, #F2FAF9 0%, #F7F8FA 100%); color: var(--ink); border-bottom: 1px solid var(--line); }
:root:not([data-theme="dark"]) .stage-head h1 { color: var(--ink); }
:root:not([data-theme="dark"]) .lead { color: var(--sub); }
:root:not([data-theme="dark"]) .call,
:root:not([data-theme="dark"]) .live-card { background: var(--card); border-color: transparent; box-shadow: var(--shadow); }
:root:not([data-theme="dark"]) .call-strip,
:root:not([data-theme="dark"]) .call-actions,
:root:not([data-theme="dark"]) .f { border-color: var(--line); }
:root:not([data-theme="dark"]) .state-pill { background: var(--surface-2); color: var(--sub); }
:root:not([data-theme="dark"]) .call[data-state="connecting"] .state-pill { background: var(--amber-soft); color: var(--amber); }
:root:not([data-theme="dark"]) .call[data-state="connecting"] .dot { background: var(--amber); }
:root:not([data-theme="dark"]) .call[data-state="live"] .state-pill { background: var(--teal-soft); color: var(--teal-ink); }
:root:not([data-theme="dark"]) .call[data-state="live"] .dot { background: var(--teal); }
:root:not([data-theme="dark"]) .call[data-state="ended"] .state-pill { background: var(--ok-soft); color: var(--ok-ink); }
:root:not([data-theme="dark"]) .call[data-state="ended"] .dot { background: var(--ok-ink); }
:root:not([data-theme="dark"]) .call[data-state="error"] .state-pill { background: var(--red-soft); color: var(--red); }
:root:not([data-theme="dark"]) .call[data-state="error"] .dot { background: var(--red); }
:root:not([data-theme="dark"]) .call-meta { color: var(--sub); }
:root:not([data-theme="dark"]) .timer { color: var(--ink); }
:root:not([data-theme="dark"]) .scn { border-color: var(--field); color: var(--ink-2); }
:root:not([data-theme="dark"]) .scn:hover { border-color: var(--teal); }
:root:not([data-theme="dark"]) .scn.is-on { background: var(--teal-soft); border-color: rgba(0,139,142,.35); color: var(--teal-ink); }
:root:not([data-theme="dark"]) .scn-hint { color: var(--sub); }
:root:not([data-theme="dark"]) .scn-hint q { color: var(--ink); }
:root:not([data-theme="dark"]) .wave { background: var(--surface-2); }
:root:not([data-theme="dark"]) .wave i { background: var(--field); }
:root:not([data-theme="dark"]) .call[data-state="live"] .wave i { background: var(--teal); }
:root:not([data-theme="dark"]) .t-empty { color: var(--sub); }
:root:not([data-theme="dark"]) .msg.ai { background: var(--teal-soft); color: var(--ink); }
:root:not([data-theme="dark"]) .msg.user { background: var(--surface-2); color: var(--ink); }
:root:not([data-theme="dark"]) .sys { background: var(--amber-soft); color: #7A3A12; }
:root:not([data-theme="dark"]) .sys b { color: var(--amber); }
:root:not([data-theme="dark"]) .sys.ok { background: var(--ok-soft); color: var(--ok-ink); }
:root:not([data-theme="dark"]) .sys.ok b { color: var(--ok-ink); }
:root:not([data-theme="dark"]) .sys.warn { background: var(--red-soft); color: var(--red); }
:root:not([data-theme="dark"]) .sys.warn b { color: var(--red); }
:root:not([data-theme="dark"]) .call-note,
:root:not([data-theme="dark"]) .live-foot,
:root:not([data-theme="dark"]) .f dt { color: var(--sub); }
:root:not([data-theme="dark"]) .live-head h2 { color: var(--ink); }
:root:not([data-theme="dark"]) .live-badge { background: var(--surface-2); color: var(--sub); }
:root:not([data-theme="dark"]) .live-badge.on { background: var(--teal-soft); color: var(--teal-ink); }
:root:not([data-theme="dark"]) .live-badge.done { background: var(--ok-soft); color: var(--ok-ink); }
:root:not([data-theme="dark"]) .f dd { color: var(--field); }
:root:not([data-theme="dark"]) .f.filled dd { color: var(--ink); }
:root:not([data-theme="dark"]) .btn.stop { background: var(--btn-stop, #0B2233); color: #fff; border: 0; }
:root:not([data-theme="dark"]) .wa { background: #F1FBF5; border-color: rgba(37,211,102,.25); box-shadow: var(--shadow); }
:root:not([data-theme="dark"]) .wa-head { color: var(--sub); }
:root:not([data-theme="dark"]) .wa-bubble { background: #DCF8C6; color: #0B2233; }
.sound-btn { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--field); background: transparent; font-size: 12px; font-weight: 600; color: inherit; display: inline-flex; gap: 6px; align-items: center; }
.sound-btn svg { width: 14px; height: 14px; }
:root[data-theme="dark"] .sound-btn { border-color: rgba(255,255,255,.18); }

/* ikinci buton: örnek görüşme */
.btn.ghost { background: transparent; color: inherit; border: 1px solid var(--field); }
.btn.ghost:hover { border-color: var(--teal); }
:root[data-theme="dark"] .call .btn.ghost { color: #EAF0F4; border-color: rgba(255,255,255,.18); }

/* ================= masaüstü yan widget'ları ================= */
.rail { display: none; }
@media (min-width: 1440px) {
  :root { --wrap: 1040px; --rw: clamp(170px, calc((100vw - var(--wrap)) / 2 - 56px), 250px); }
  .stage-inner, .panel, .info, .foot { max-width: var(--wrap); }
  .rail { display: grid; gap: 10px; position: fixed; top: 88px; width: var(--rw); z-index: 40; }
  .rail-l { left: calc((100vw - var(--wrap)) / 2 - var(--rw) - 28px); }
  .rail-r { right: calc((100vw - var(--wrap)) / 2 - var(--rw) - 28px); }
}
.rail-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; }
.rail-card h3 { font-size: 16px; line-height: 1.2; }
.rail-card p { font-size: 13px; color: var(--sub); }
.rail-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.rail-ic svg { width: 20px; height: 20px; }
.wa-ic { background: rgba(37,211,102,.14); color: #128C4A; }
:root[data-theme="dark"] .wa-ic { color: #4ADE80; }
.btn.wa-btn { background: #25D366; color: #06301A; }
.btn.wa-btn:hover { filter: brightness(1.05); }
.rail-num { text-align: center; font-variant-numeric: tabular-nums; font-size: 12.5px !important; }
.rail-mini { grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 12px 14px; }
.rail-mini b { font: 600 22px/1 var(--display); color: var(--teal-ink); min-width: 44px; }
.rail-mini span { font-size: 12.5px; color: var(--sub); line-height: 1.3; }
.rail-card.accent { border-top: 3px solid var(--teal); border-top-left-radius: 0; border-top-right-radius: 0; }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rail-list li { position: relative; padding-left: 22px; font-size: 13px; color: var(--ink-2); }
.rail-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008B8E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/9px no-repeat; }
.rail-price { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.rail-price b { font: 600 17px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ================= tek odak akışı (30 Kas revize) ================= */
/* tema tek: açık. Koyu tema kaldırıldı. */
.top .brand img { display: block; }

/* açılış: karartma + tek buton */
.intro { display: none; }
body.step-intro .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; padding: 20px;
  background: rgba(11,34,51,.58); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .35s var(--ease); }
body.step-intro { overflow: hidden; }
.intro-card { width: min(440px, 100%); background: var(--card); border-radius: 26px; padding: 26px 24px 20px; box-shadow: 0 30px 80px -20px rgba(5,16,26,.55); display: grid; gap: 12px; text-align: center; justify-items: center; animation: rise .45s var(--ease); }
.intro-logo { height: 28px; width: auto; margin-bottom: 4px; }
.intro-card h2 { font-size: clamp(23px, 5.6vw, 28px); }
.intro-text { color: var(--sub); font-size: 15px; }
.intro-btn { height: 56px; font-size: 16.5px; margin-top: 6px; animation: nudge 2.4s var(--ease) 1.2s infinite; }
.intro-note { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--sub); }
.intro-note svg { width: 15px; height: 15px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes nudge { 0%, 100% { box-shadow: 0 10px 28px -12px rgba(224,137,74,.8), 0 0 0 0 rgba(224,137,74,.45); } 50% { box-shadow: 0 10px 28px -12px rgba(224,137,74,.8), 0 0 0 10px rgba(224,137,74,0); } }

/* demo bitene kadar panel, fiyat ve alt bilgi görünmez (progressive disclosure) */
body.step-intro .after-demo, body.step-demo .after-demo { display: none; }
body.step-done .after-demo { animation: rise .6s var(--ease); }

/* görüşme sırasında dikkat görüşme kartında: başlık sadeleşir */
body.step-demo .stage-head .lead, body.step-live .stage-head .lead { opacity: .8; }

/* senaryo etiketi */
.scn-label { flex: none; align-self: center; font-size: 12.5px; color: var(--sub); padding-right: 2px; }

/* panel başlığı + sekmeler aynı satırda (F-deseni: başlık solda, gezinme sağda) */
.panel-head { align-items: flex-end; }
.panel-head .tabs { border-bottom: 0; margin: 0; }
.panel-head h2 { font-size: 26px; margin-top: 4px; }
.panel { padding-top: 34px; }
.calls { margin-bottom: 14px; }
.kpi-row { display: grid; gap: 10px; margin: 6px 0 14px; }
.kpi-row .seg { justify-self: start; order: -1; }
.kpi-row .kpis { margin: 0; }
@media (min-width: 720px) { .kpi-row { grid-template-columns: 1fr auto; align-items: start; } .kpi-row .seg { order: 0; } }

/* yeni kayıt vurgusu */
.ci.is-live { box-shadow: 0 0 0 2px var(--teal) inset; }

/* sonraki adım çubuğu (sabit alt) */
.next-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); animation: up .45s var(--ease); }
@keyframes up { from { transform: translateY(110%); } }
.next-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 12px; align-items: center; background: #0B2233; color: #fff; border-radius: 20px; padding: 12px 12px 12px 18px; box-shadow: 0 20px 50px -18px rgba(5,16,26,.6); }
.next-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.next-text b { font-size: 15.5px; }
.next-text span { font-size: 13px; color: rgba(255,255,255,.7); }
.next-inner .btn { flex: none; height: 46px; }
body.has-next .foot { padding-bottom: 120px; }
@media (max-width: 520px) { .next-inner { flex-direction: column; align-items: stretch; text-align: left; } .next-inner .btn { width: 100%; } }

/* karar bölümü: kurulum + fiyat önce */
.info-grid .price .btn { margin-top: 10px; }

/* WhatsApp aksiyon widget'ı — demo bitince görünür, alt çubuk varken üstüne çıkar */
.cta-widget { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: none; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: #25D366; color: #06301A; text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(18,140,74,.6); transition: transform .2s var(--ease), bottom .3s var(--ease); }
body.step-done .cta-widget, body.step-live .cta-widget { display: inline-flex; animation: ctaIn .5s var(--ease); }
.cta-widget:hover { transform: translateY(-2px); }
.cta-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #25D366; position: relative; }
.cta-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); animation: ring 2.8s var(--ease) infinite; }
.cta-ic svg { width: 26px; height: 26px; }
.cta-text { display: grid; line-height: 1.15; }
.cta-text b { font-size: 15px; font-weight: 700; }
.cta-text small { font-size: 12px; opacity: .8; }
.cta-bubble { position: absolute; right: 0; bottom: calc(100% + 12px); width: 250px; padding: 12px 14px; border-radius: 16px; background: #0B2233; color: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.35; box-shadow: 0 16px 40px -14px rgba(5,16,26,.55);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.cta-bubble small { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; color: rgba(255,255,255,.7); }
.cta-bubble::after { content: ""; position: absolute; right: 34px; top: 100%; border: 8px solid transparent; border-top-color: #0B2233; }
.cta-widget:hover .cta-bubble, .cta-widget:focus-visible .cta-bubble, .cta-widget.peek .cta-bubble { opacity: 1; transform: none; }
@keyframes ctaIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
body.has-next .cta-widget { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (max-width: 520px) {
  .cta-widget { padding: 6px 14px 6px 6px; }
  .cta-ic { width: 38px; height: 38px; }
  .cta-text b { font-size: 14px; }
  body.has-next .cta-widget { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
