/* Atabey Randevu — tasarım sistemi (bordo · mavi · siyah) */
:root {
  --bg: #07080c;
  --bg2: #0c0e14;
  --surface: #11131a;
  --surface2: #171a23;
  --surface3: #1e222d;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #eceef4;
  --muted: #9aa2b4;
  --faint: #6b7385;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --radius: 16px;
  --radius-sm: 11px;
  --sidebar: 252px;
  --nav-h: 66px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  /* Tema: karma (varsayılan) */
  --acc: #b3173f;
  --acc2: #2563eb;
  --acc-text: #ff7d9b;
  --acc2-text: #80b4ff;
  --grad: linear-gradient(120deg, #a5163f 0%, #6a2a90 52%, #1f5fe0 100%);
  --glow1: rgba(179, 23, 63, .30);
  --glow2: rgba(37, 99, 235, .26);
  --acc-soft: rgba(179, 23, 63, .16);
  --acc2-soft: rgba(37, 99, 235, .16);
  color-scheme: dark;
}
[data-theme="bordo"] {
  --acc: #b3173f; --acc2: #1e40af;
  --acc-text: #ff7d9b; --acc2-text: #80b4ff;
  --grad: linear-gradient(135deg, #cf2452 0%, #8a1235 55%, #4a0d22 100%);
  --glow1: rgba(190, 24, 70, .38); --glow2: rgba(30, 64, 175, .16);
  --acc-soft: rgba(190, 24, 70, .18); --acc2-soft: rgba(30, 64, 175, .16);
}
[data-theme="mavi"] {
  --acc: #2563eb; --acc2: #b3173f;
  --acc-text: #80b4ff; --acc2-text: #ff7d9b;
  --grad: linear-gradient(135deg, #3f8cff 0%, #1f5fe0 50%, #14328f 100%);
  --glow1: rgba(37, 99, 235, .38); --glow2: rgba(179, 23, 63, .18);
  --acc-soft: rgba(37, 99, 235, .18); --acc2-soft: rgba(179, 23, 63, .16);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(900px 560px at -8% -12%, var(--glow1), transparent 62%),
    radial-gradient(900px 620px at 108% 108%, var(--glow2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
a { color: var(--acc2-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.bold { font-weight: 650; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.gap-s { gap: 6px; } .gap-l { gap: 18px; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; }
.pre { white-space: pre-wrap; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 26px; height: 26px; }

/* ---------- Kabuk ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border-right: 1px solid var(--line); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(179, 23, 63, .35); }
.brand .logo svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand b { font-size: 16.5px; letter-spacing: -.02em; display: block; line-height: 1.1; }
.brand span { font-size: 11.5px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; padding-right: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted);
  font-weight: 550; text-decoration: none; position: relative; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); text-decoration: none; }
.nav a.active { color: #fff; background: linear-gradient(90deg, var(--acc-soft), var(--acc2-soft)); box-shadow: inset 0 0 0 1px var(--line2); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--grad); }
.nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.nav .badge-n { margin-left: auto; background: var(--acc); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; font-weight: 700; }
.userbox { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.userbox .grow b { display: block; font-size: 13.5px; }
.userbox .grow span { font-size: 11.5px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 28px;
  background: rgba(7, 8, 12, .72); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 20px; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.content { padding: 24px 28px 60px; width: 100%; max-width: 1240px; margin: 0 auto; flex: 1; }
.bottomnav { display: none; }
.only-m { display: none !important; }

/* Abonelik bandı */
.banner {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--acc-soft), var(--acc2-soft)); border: 1px solid var(--line2); font-size: 13.5px;
}
.banner.bad { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .4); }
.banner .btn { margin-left: auto; }

/* ---------- Kart / ızgara ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative;
}
.card.flat { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 15.5px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stat { padding: 16px 18px; overflow: hidden; }
.stat .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; background: var(--acc-soft); color: var(--acc-text); }
.stat:nth-child(even) .ic { background: var(--acc2-soft); color: var(--acc2-text); }
.stat .v { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--grad); opacity: .07; }

/* ---------- Düğme / form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line2); background: rgba(255,255,255,.05); color: var(--text); font-weight: 600; font-size: 14px;
  transition: transform .08s, background .15s, border-color .15s, filter .15s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: rgba(255,255,255,.09); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(120, 30, 90, .35); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--bad); border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.08); }
.btn.danger:hover { background: rgba(251,113,133,.16); }
.btn.ok { color: var(--ok); border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.icon { padding: 9px; border-radius: 11px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--acc2-text); font-weight: 600; }
.link:hover { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35);
  color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--acc2); box-shadow: 0 0 0 3px var(--acc2-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select option { background: #11131a; color: var(--text); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--acc); }
input[type=color] { padding: 3px; height: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.err { color: var(--bad); font-size: 13px; }
.hint { color: var(--faint); font-size: 12px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--surface3); border: 1px solid var(--line2); position: relative; cursor: pointer; padding: 0; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--grad); border-color: transparent; }
.switch input:checked::after { transform: translateX(18px); }

.seg { display: inline-flex; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.seg button.on { background: var(--grad); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--text); font-size: 13px; font-weight: 550; }
button.chip:hover { background: rgba(255,255,255,.09); }
.chip.on { background: var(--acc-soft); border-color: var(--acc); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
.b-planned { background: rgba(128,180,255,.14); color: var(--acc2-text); }
.b-confirmed { background: rgba(167,139,250,.16); color: #c4b5fd; }
.b-done { background: rgba(52,211,153,.14); color: var(--ok); }
.b-cancelled { background: rgba(154,162,180,.14); color: var(--muted); }
.b-noshow { background: rgba(251,113,133,.14); color: var(--bad); }
.b-warn { background: rgba(251,191,36,.14); color: var(--warn); }
.b-acc { background: var(--acc-soft); color: var(--acc-text); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Liste ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li.click { cursor: pointer; transition: background .12s; }
.li.click:hover { background: rgba(255,255,255,.04); }
.avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; background: var(--grad); }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.time-col { width: 58px; flex: none; text-align: left; }
.time-col b { font-size: 16px; display: block; letter-spacing: -.01em; }
.time-col span { font-size: 11.5px; color: var(--muted); }
.bar-l { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.empty { text-align: center; padding: 38px 18px; color: var(--muted); }
.empty .ic { width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.empty h4 { color: var(--text); font-size: 16px; margin-bottom: 4px; }
.day-h { padding: 10px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); font-weight: 700; }
.skel { border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.2s infinite; height: 64px; margin-bottom: 10px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 11px 15px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: #fff; border-color: var(--acc); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.searchbox input { padding-left: 40px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { min-width: 180px; }

/* ---------- Modal / sheet ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line2); border-radius: 22px; box-shadow: var(--shadow); animation: pop .18s ease-out;
}
.modal.wide { max-width: 760px; }
.modal.narrow { max-width: 420px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.modal-h h3 { font-size: 17px; flex: 1; }
.modal-b { padding: 6px 20px 18px; overflow-y: auto; flex: 1; }
.modal-f { padding: 14px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-f .left { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes rise { from { transform: translateY(40px); opacity: .6; } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; background: var(--surface3); border: 1px solid var(--line2); border-left: 3px solid var(--acc2); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: 340px; animation: pop .2s; font-size: 14px; }
.toast.ok { border-left-color: var(--ok); } .toast.bad { border-left-color: var(--bad); }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.ac-list .li { padding: 10px 12px; }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(0,0,0,.3); }
.warnbox { border: 1px solid rgba(251,191,36,.4); background: rgba(251,191,36,.08); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }

/* ---------- Takvim ---------- */
.cal { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: rgba(0,0,0,.25); max-height: calc(100vh - 230px); min-height: 420px; }
.cal-inner { display: flex; min-width: 100%; position: relative; }
.cal-gutter { width: 54px; flex: none; position: sticky; left: 0; z-index: 6; background: var(--bg2); border-right: 1px solid var(--line); }
.cal-gutter .h { height: 64px; padding: 0 8px; font-size: 11.5px; color: var(--faint); text-align: right; transform: translateY(-8px); }
.cal-head { position: sticky; top: 0; z-index: 5; height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg2); border-bottom: 1px solid var(--line); font-weight: 650; font-size: 13.5px; }
.cal-gutter .cal-head { border-right: 0; z-index: 7; }
.cal-col { flex: 1; min-width: 150px; border-left: 1px solid var(--line); position: relative; }
.cal-col.today .cal-head { color: #fff; background: linear-gradient(180deg, var(--acc-soft), var(--acc-soft)), var(--bg2); }
.cal-body { position: relative; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
.cal-line.half { border-top-style: dashed; opacity: .55; }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px); pointer-events: none; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--acc-text); z-index: 4; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc-text); }
.ev {
  position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 5px 8px; font-size: 12.5px; line-height: 1.25; overflow: hidden; cursor: pointer; z-index: 3;
  border-left: 4px solid var(--c, var(--acc)); background: color-mix(in srgb, var(--c, var(--acc)) 24%, #0d0f15); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.35); transition: transform .1s, box-shadow .1s;
}
.ev:hover { transform: scale(1.015); z-index: 5; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.ev b { display: block; font-size: 12.5px; }
.ev span { opacity: .8; font-size: 11.5px; }
.ev.st-done { opacity: .62; }
.ev.st-cancelled, .ev.st-noshow { opacity: .4; text-decoration: line-through; }
.ev.st-confirmed::after { content: "✓"; position: absolute; right: 7px; top: 4px; font-size: 12px; color: var(--ok); }
.datebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.datebar .title { font-weight: 700; font-size: 16px; min-width: 190px; text-align: center; }

/* ---------- Diş şeması ---------- */
.dental { overflow-x: auto; padding-bottom: 6px; }
.dental-in { width: max-content; margin: 0 auto; padding: 0 4px; }
.arch { display: flex; gap: 2px; }
.arch .mid { width: 1px; background: var(--line2); margin: 0 6px; }
.arch-lbl { text-align: center; font-size: 11px; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; margin: 6px 0; }
.tooth { width: 35px; flex: none; background: none; border: 0; padding: 2px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #cfd5e4; }
.tooth svg { width: 32px; height: 40px; fill: currentColor; opacity: .95; transition: transform .1s; }
.tooth:hover svg { transform: scale(1.12); }
.tooth small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tooth.s-saglam { color: #cfd5e4; }
.tooth.s-curuk { color: #f87171; }
.tooth.s-dolgu { color: #60a5fa; }
.tooth.s-kanal { color: #c084fc; }
.tooth.s-kaplama { color: #fbbf24; }
.tooth.s-cekilmis { color: #4b5263; }
.tooth.s-cekilmis svg { opacity: .35; }
.tooth.s-implant { color: #2dd4bf; }
.tooth.s-planli { color: #fb923c; }
.tooth.has-note small::after { content: " •"; color: var(--acc-text); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Grafik ---------- */
.chart { max-width: 100%; height: auto; display: block; }
.chart text { fill: var(--faint); font-size: 10px; font-family: inherit; }
.hbar { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 13.5px; }
.hbar .n { width: 42%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .tr { flex: 1; height: 10px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.hbar .v { width: 70px; text-align: right; color: var(--muted); font-size: 12.5px; }
.cols { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.cols .c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; font-size: 11.5px; color: var(--muted); }
.cols .c i { display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: var(--grad); min-height: 3px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.legend-col { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.legend-col span { display: flex; align-items: center; gap: 8px; }
.legend-col b { margin-left: auto; padding-left: 14px; }

/* ---------- Giriş / kayıt ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-hero { position: relative; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-right: 1px solid var(--line); }
.auth-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 420px at 10% 10%, rgba(179,23,63,.55), transparent 65%),
  radial-gradient(640px 460px at 95% 95%, rgba(37,99,235,.5), transparent 62%); opacity: .9; }
.auth-hero > * { position: relative; }
.auth-hero h2 { font-size: 40px; letter-spacing: -.03em; line-height: 1.08; margin: 28px 0 14px; }
.auth-hero h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.25); }
.auth-hero p { color: #c9cfdd; font-size: 16.5px; max-width: 470px; }
.feat { display: grid; gap: 12px; margin-top: 26px; }
.feat div { display: flex; gap: 12px; align-items: center; color: #dfe3ee; }
.feat i { width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.auth-form { display: grid; place-items: center; padding: 32px 22px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 720px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sector {
  text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255,255,255,.035);
  display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, background .15s, transform .1s; min-height: 118px;
}
.sector:hover { background: rgba(255,255,255,.07); transform: translateY(-1px); }
.sector.on { border-color: var(--acc); background: linear-gradient(135deg, var(--acc-soft), var(--acc2-soft)); box-shadow: 0 0 0 1px var(--acc) inset; }
.sector .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.sector b { font-size: 14px; line-height: 1.2; }
.sector span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.menu-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-preview .chip { font-size: 12px; padding: 4px 9px; }
.theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.theme-card { border: 1px solid var(--line2); border-radius: 16px; padding: 10px; background: rgba(255,255,255,.03); text-align: left; }
.theme-card.on { border-color: #fff; box-shadow: 0 0 0 1px #fff inset; }
.theme-card .sw { height: 64px; border-radius: 11px; margin-bottom: 8px; border: 1px solid var(--line); }
.sw.karma { background: radial-gradient(90px 60px at 0 0, rgba(179,23,63,.9), transparent 70%), radial-gradient(100px 70px at 100% 100%, rgba(37,99,235,.9), transparent 70%), #07080c; }
.sw.bordo { background: radial-gradient(120px 70px at 0 0, rgba(190,24,70,.95), transparent 72%), radial-gradient(90px 60px at 100% 100%, rgba(30,64,175,.4), transparent 70%), #07080c; }
.sw.mavi { background: radial-gradient(120px 70px at 0 0, rgba(37,99,235,.95), transparent 72%), radial-gradient(90px 60px at 100% 100%, rgba(179,23,63,.4), transparent 70%), #07080c; }
.ring { width: 130px; height: 130px; flex: none; }
.checklist .li { padding: 11px 4px; }
.checklist .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; flex: none; }
.checklist .done .ck { background: var(--ok); border-color: var(--ok); color: #04231a; }
.checklist .done .t { text-decoration: line-through; color: var(--faint); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { cursor: pointer; }
.days input { display: none; }
.days span { display: grid; place-items: center; width: 46px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); color: var(--muted); font-weight: 650; font-size: 13px; }
.days input:checked + span { background: var(--grad); color: #fff; border-color: transparent; }
.fab { display: none; }
.linkbox { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: rgba(0,0,0,.35); border: 1px dashed var(--line2); border-radius: 12px; font-size: 13px; word-break: break-all; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  .topbar h1 { font-size: 18px; }
  .content { padding: 16px 14px calc(var(--nav-h) + 90px); }
  .hide-m { display: none !important; }
  .only-m { display: flex !important; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 40;
    height: var(--nav-h); border-radius: 22px; background: rgba(17, 19, 26, .9); backdrop-filter: blur(18px); border: 1px solid var(--line2); box-shadow: var(--shadow);
  }
  .bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--muted); background: none; border: 0; text-decoration: none; font-weight: 600; }
  .bottomnav a.active { color: #fff; }
  .bottomnav a.active svg { color: var(--acc-text); }
  .bottomnav .plus { position: relative; }
  .bottomnav .plus i { position: absolute; top: -20px; width: 58px; height: 58px; border-radius: 20px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 30px rgba(160, 30, 90, .55); border: 3px solid var(--bg); }
  .bottomnav .plus span { margin-top: 32px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g4.keep2, .g2.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px; } .stat .v { font-size: 21px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backdrop { align-items: end; padding: 0; }
  .modal { max-width: none; border-radius: 24px 24px 0 0; max-height: 92vh; animation: rise .22s ease-out; }
  .modal.narrow, .modal.wide { max-width: none; }
  .modal-f { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .toasts { left: 14px; right: 14px; bottom: calc(var(--nav-h) + 26px); align-items: stretch; }
  .toast { max-width: none; }
  .cal { max-height: calc(100vh - 290px); }
  .cal-col { min-width: 132px; }
  .auth { display: block; }
  .auth-hero { display: none; }
  .auth-form { min-height: 100vh; padding: 22px 16px; align-items: start; }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv { grid-template-columns: 110px 1fr; }
  .datebar { gap: 6px; }
  .datebar .title { order: -1; flex: 1 0 100%; text-align: left; font-size: 18px; min-width: 0; }
  .toolbar .seg { flex: none; }
  .li { padding: 12px 12px; }
  .card { padding: 15px; }
  .theme-cards { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .sector-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .sidebar, .bottomnav, .topbar, .toasts { display: none !important; } body { background: #fff; color: #000; } }
@media (max-width: 720px) {
  .dental-in { width: 100%; padding: 0; }
  .arch { gap: 1px; }
  .arch .mid { margin: 0 2px; }
  .tooth { width: auto; flex: 1 1 0; min-width: 0; }
  .tooth svg { width: 100%; max-width: 22px; height: 28px; }
  .tooth small { font-size: 9px; }
}

/* ---------- Harita ---------- */
.gmap { position: relative; overflow: hidden; background: #0d1018; border: 1px solid var(--line2); border-radius: 18px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.gmap.gm-drag { cursor: grabbing; }
.gm-tiles, .gm-marks { position: absolute; inset: 0; }
.gm-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; filter: invert(1) hue-rotate(200deg) brightness(.92) contrast(.9) saturate(.55); }
.gm-pin { position: absolute; left: 0; top: 0; width: 2px; height: 2px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.gm-pin > span { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: 12.5px; color: #fff; background: #4b5563; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 6px 18px rgba(0,0,0,.55); margin-bottom: 10px; }
.gm-pin > span::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 10px; height: 10px; background: inherit; border-right: 2px solid rgba(255,255,255,.85); border-bottom: 2px solid rgba(255,255,255,.85); transform: translateX(-50%) rotate(45deg); }
.gm-pin.ok > span { background: #059669; }
.gm-pin.few > span { background: #d97706; }
.gm-pin.me > span { background: #2563eb; padding: 6px; margin-bottom: 4px; }
.gm-pin.me > span::after { display: none; }
.gm-pin.sel > span { background: var(--grad); }
.gm-pin:hover { z-index: 5; }
.gm-pop { position: absolute; left: 0; top: 0; z-index: 8; }
.gm-pop > div { position: absolute; left: 0; bottom: 42px; transform: translateX(-50%); width: 250px; padding: 14px; border-radius: 16px; background: #12151f; border: 1px solid var(--line2); box-shadow: 0 18px 46px rgba(0,0,0,.65); cursor: default; }
.gm-ctl { position: absolute; right: 10px; top: 10px; z-index: 6; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); }
.gm-ctl button { width: 36px; height: 36px; border: 0; background: rgba(12,14,22,.92); color: #fff; font-size: 20px; font-weight: 600; }
.gm-ctl button + button { border-top: 1px solid var(--line); }
.gm-attr { position: absolute; left: 0; bottom: 0; z-index: 6; padding: 2px 8px; font-size: 10.5px; color: #cbd5e1; background: rgba(0,0,0,.55); border-top-right-radius: 8px; }
.gmap-h { height: 260px; }
