:root {
  --bg: #f6f5f2; --panel: #ffffff; --ink: #1c1d1f; --muted: #6b6e73; --line: #e6e3dd;
  --accent: #0f766e; --accent-soft: #e3f2ef; --warn: #b45309; --warn-soft: #fdf1e3; --bad: #b91c1c; --bad-soft: #fbe9e9;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141516; --panel: #1d1f21; --ink: #ecebe8; --muted: #9a9ca0; --line: #2d3033; --accent: #2dd4bf; --accent-soft: #123532; --warn: #f59e0b; --warn-soft: #3a2a10; --bad: #f87171; --bad-soft: #3a1717; --shadow: none; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #062a26; } }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* Tanıtım */
.landing { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo i { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; font-style: normal; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 36em; }
.points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.points li { padding-left: 28px; position: relative; }
.points li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.auth h2 { font-size: 20px; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { padding: 8px 12px; border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); font-weight: 500; }
.tabs button.on { color: var(--ink); border-color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan .price { font-size: 30px; font-weight: 700; }
.plan ul { padding-left: 18px; color: var(--muted); margin: 8px 0 0; }
.roi { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .roi { grid-template-columns: 1fr; } }
.roi b { display: block; font-size: 26px; }

/* Panel */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.side .logo { padding: 0 8px 20px; }
.side a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); display: flex; justify-content: space-between; }
.side a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side .grow { flex: 1; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; text-align: center; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.main { padding: 28px 32px 60px; max-width: 1180px; width: 100%; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .logo, .side .grow, .side .who { display: none; }
  .main { padding: 20px 16px 60px; }
}
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.head h1 { font-size: 24px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .n { font-size: 28px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 13px; }
.meter { height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--bg); }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 500; background: var(--line); }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.week { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 8px; overflow-x: auto; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 160px; }
.day h4 { margin: 0 0 8px; font-size: 13px; }
.day.today { border-color: var(--accent); }
.appt { border-left: 3px solid var(--accent); background: var(--bg); padding: 6px 8px; border-radius: 6px; margin-bottom: 6px; font-size: 13px; cursor: pointer; }
.appt.iptal { opacity: .45; text-decoration: line-through; border-color: var(--muted); }
.appt.p2 { border-color: var(--bad); }
.appt.p1 { border-color: var(--warn); }
.empty { color: var(--muted); padding: 24px; text-align: center; }

/* Test */
.phone { max-width: 560px; }
.chat { height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border-radius: 10px; border: 1px solid var(--line); }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; }
.msg.bot { background: var(--panel); border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--accent); color: #fff; align-self: flex-end; }
@media (prefers-color-scheme: dark) { .msg.me { color: #062a26; } }
.msg small { display: block; opacity: .6; font-size: 11px; margin-top: 2px; }
.mic { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.mic.live { background: var(--bad); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(185, 28, 28, .15); } }

/* Ayarlar */
.list-edit .item { display: grid; gap: 8px; grid-template-columns: 1fr 90px 100px 36px; align-items: center; margin-bottom: 8px; }
.list-edit .item.qa { grid-template-columns: 1fr 1.4fr 36px; }
.list-edit .item.one { grid-template-columns: 1fr 36px; }
@media (max-width: 640px) { .list-edit .item, .list-edit .item.qa { grid-template-columns: 1fr 1fr; } }
.hours .h { display: grid; grid-template-columns: 110px 80px 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; word-break: break-all; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
ol.steps li { margin-bottom: 10px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal .card { width: min(640px, 100%); max-height: 88vh; overflow-y: auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; z-index: 20; }
