/* =====================================================================
   Dent Pro Tasarım Sistemi v2 — "Mine & Mercan"
   Açık, sıcak kağıt zemin · mine yeşili (teal) marka · mercan vurgu · mor/güneş yardımcı renkler
   Tüm sayfalar (panel, giriş, karşılama) bu tokenları kullanır. Takvim: calendar.css aynı tokenları taşır.
   ===================================================================== */
:root {
  /* Zemin & metin */
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --surface-3: #f1ede6;
  --ink: #1e1b2e;
  --ink-2: #5b5670;
  --ink-3: #9a95a8;
  --line: #ece7df;
  --line-strong: #ddd6cb;

  /* Marka */
  --brand: #0e9c8b;        /* mine yeşili */
  --brand-deep: #0b6b60;
  --brand-ink: #ffffff;
  --brand-soft: #e2f5f1;
  --coral: #ff6b4a;        /* vurgu / CTA */
  --coral-deep: #d9472a;
  --coral-soft: #ffece6;
  --violet: #7a5af8;
  --violet-soft: #eeeafe;
  --sun: #f4b740;
  --sun-soft: #fef4dc;
  --sky: #2f9bf0;
  --sky-soft: #e4f2fd;

  /* Durum */
  --ok: #12a150;   --ok-soft: #e3f7ea;
  --warn: #b86e00; --warn-soft: #fff2d6;
  --danger: #e5484d; --danger-soft: #fdeaea;

  /* Biçim */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(30 27 46 / .05);
  --shadow: 0 1px 2px rgb(30 27 46 / .04), 0 10px 30px -14px rgb(30 27 46 / .18);
  --shadow-lg: 0 24px 60px -20px rgb(30 27 46 / .35);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131217; --surface: #1b1a21; --surface-2: #211f28; --surface-3: #282630; --ink: #f2eff8; --ink-2: #b3adc2; --ink-3: #7b768a;
    --line: #2b2933; --line-strong: #3a3743;
    --brand: #2cc7b2; --brand-deep: #7fe3d4; --brand-ink: #062a25; --brand-soft: #123631;
    --coral: #ff8466; --coral-deep: #ffab97; --coral-soft: #3a1d17; --violet: #9d85ff; --violet-soft: #251e45;
    --sun: #f7c65e; --sun-soft: #352a12; --sky: #5db4f5; --sky-soft: #142a3c;
    --ok: #3ccf7a; --ok-soft: #12301f; --warn: #f3b443; --warn-soft: #33260c; --danger: #ff6b6f; --danger-soft: #3a1618;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 30px -14px rgb(0 0 0 / .7); --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131217; --surface: #1b1a21; --surface-2: #211f28; --surface-3: #282630; --ink: #f2eff8; --ink-2: #b3adc2; --ink-3: #7b768a;
  --line: #2b2933; --line-strong: #3a3743;
  --brand: #2cc7b2; --brand-deep: #7fe3d4; --brand-ink: #062a25; --brand-soft: #123631;
  --coral: #ff8466; --coral-deep: #ffab97; --coral-soft: #3a1d17; --violet: #9d85ff; --violet-soft: #251e45;
  --sun: #f7c65e; --sun-soft: #352a12; --sky: #5db4f5; --sky-soft: #142a3c;
  --ok: #3ccf7a; --ok-soft: #12301f; --warn: #f3b443; --warn-soft: #33260c; --danger: #ff6b6f; --danger-soft: #3a1618;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 30px -14px rgb(0 0 0 / .7); --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* ---------- Temel ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 8px 12px; background: var(--surface); border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: none; box-shadow: var(--ring); }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.spacer { flex: 1; }

/* ---------- Kabuk ---------- */
.panel { display: grid; grid-template-columns: 264px 1fr; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto;
}
.sidebar__brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 14px; border-radius: 14px; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(255 255 255 / .22), transparent 55%),
    linear-gradient(135deg, var(--brand) 0%, #0c8577 55%, #5c4bd6 140%);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand) 80%, transparent);
}
:root[data-theme="dark"] .sidebar__brand, :root:not([data-theme="light"]) .sidebar__brand { color: #fff; }
.sidebar__clinic { display: grid; min-width: 0; }
.sidebar__clinic strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__clinic span { font-size: 12px; opacity: .85; }
.brand-mark {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: #fff; color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .02em;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .06);
}
.brand-mark svg { width: 22px; height: 22px; }
.sidebar nav ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.sidebar__group { margin: 14px 10px 6px; color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.sidebar__link {
  --ic: var(--brand);
  display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 11px;
  color: var(--ink-2); text-decoration: none; font-weight: 600;
}
.sidebar__ic {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: color-mix(in srgb, var(--ic) 13%, transparent); color: var(--ic);
}
.sidebar__ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sidebar__link:hover { background: var(--surface-2); color: var(--ink); }
.sidebar__link.is-active { background: color-mix(in srgb, var(--ic) 10%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic) 25%, transparent); }
.sidebar__link.is-active .sidebar__ic { background: var(--ic); color: #fff; }
.sidebar__badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 20px; }
.sidebar__user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid var(--line); }
.sidebar__who { display: grid; min-width: 0; flex: 1; }
.sidebar__who strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__who span { color: var(--ink-3); font-size: 12px; }
.avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-weight: 750; font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px;
  padding: 16px 32px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 21px; font-weight: 750; }
.topbar__titles { min-width: 0; }
.topbar__titles p { margin: 2px 0 0; font-size: 13px; }
.topbar__actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topbar .topbar__menu { display: none; }
.content { padding: 26px 32px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; max-width: 1280px; width: 100%; }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgb(30 27 46 / .45); }

@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; width: 284px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .topbar { padding: 12px 16px; }
  .topbar .topbar__menu { display: inline-flex; }
  .content { padding: 18px 16px 44px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ---------- Kart ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card__head h2 { margin: 0; font-size: 15.5px; font-weight: 700; }
.card__head p { margin: 0; }
.card__body { padding: 20px; }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.card--tint { --tint: var(--brand); background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 7%, var(--surface)), var(--surface) 70%); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Buton ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 90%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); border-color: transparent; }
.btn--accent { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--coral) 90%, transparent); }
.btn--accent:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.btn--danger { color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn--sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn--icon { width: 38px; padding: 0; }
.btn--icon.btn--sm { width: 31px; }
.btn--block { width: 100%; height: 46px; font-size: 15px; }
.btn--help { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 30%, transparent); background: var(--violet-soft); }
.btn--help:hover { background: color-mix(in srgb, var(--violet) 18%, var(--surface)); border-color: var(--violet); }

/* ---------- Form ---------- */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); min-width: 0; }
.field small { font-weight: 500; color: var(--ink-3); }
.input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 11px;
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--ink-3); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input[type="color"] { padding: 4px; width: 58px; }
.input--sm { height: 32px; padding: 0 9px; }
.input:focus-visible { border-color: var(--brand); box-shadow: var(--ring); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.chip-check input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.chip-check input:focus-visible + span { box-shadow: var(--ring); }

/* ---------- Geri bildirim ---------- */
.alert { margin: 0; padding: 12px 15px; border-radius: 12px; font-weight: 600; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.alert--success { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert--error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert--info { background: var(--sun-soft); color: var(--warn); border-color: color-mix(in srgb, var(--sun) 40%, transparent); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--brand { background: var(--brand-soft); color: var(--brand-deep); }
.badge--violet { background: var(--violet-soft); color: var(--violet); }
.badge--coral { background: var(--coral-soft); color: var(--coral-deep); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---------- Tablo & liste ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 11px 20px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover > td { background: color-mix(in srgb, var(--brand) 3%, transparent); }
.table tr:last-child > td { border-bottom: 0; }
.table tr.is-inactive > td { color: var(--ink-3); }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who strong { display: block; }
.who small { color: var(--ink-3); }
.edit-row > td { background: var(--surface-2) !important; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { --tint: var(--brand); position: relative; overflow: hidden; padding: 18px 20px; }
.stat::after { content: ""; position: absolute; right: -24px; top: -24px; width: 96px; height: 96px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 12%, transparent); }
.stat__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--tint) 15%, transparent); color: var(--tint); margin-bottom: 10px; }
.stat__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat__label { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.stat__value { margin-top: 2px; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__hint { margin-top: 2px; color: var(--ink-3); font-size: 12.5px; }
.tint-brand { --tint: var(--brand); } .tint-coral { --tint: var(--coral); } .tint-violet { --tint: var(--violet); }
.tint-sun { --tint: var(--sun); } .tint-sky { --tint: var(--sky); } .tint-danger { --tint: var(--danger); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list__time { font: 700 13px var(--mono); min-width: 48px; color: var(--brand-deep); }
.list__main { flex: 1; min-width: 0; }
.list__main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__main small { color: var(--ink-2); }
.empty { padding: 30px 20px; text-align: center; color: var(--ink-2); }
.empty__art { display: block; width: 72px; height: 72px; margin: 0 auto 10px; }

.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 12px; background: var(--surface-3); }
.seg a, .seg button { flex: none; padding: 6px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); text-decoration: none; font: inherit; font-weight: 650; font-size: 13px; cursor: pointer; }
.seg a[aria-current="page"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1180px) { .split { grid-template-columns: minmax(0, 1fr); } }
.week td, .week th { padding: 8px 10px; }
.week .input { height: 36px; width: 116px; padding: 0 8px; }
.week .day { font-weight: 700; white-space: nowrap; }
.week tr.is-closed .input { opacity: .4; }
.week .sep { color: var(--ink-3); padding: 0 2px; }
.integration .card__head .badge { margin-left: auto; }
.secret-hint { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.health { display: grid; gap: 8px; align-content: start; }
.health__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Modal (yardım, onay, formlar) ----------
   <dialog class="modal"> <form method="dialog" class="modal__box"> head/body/foot </form> </dialog> */
.modal { width: min(640px, calc(100vw - 24px)); max-height: min(86dvh, 820px); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.modal--wide { width: min(880px, calc(100vw - 24px)); }
.modal::backdrop { background: rgb(30 27 46 / .5); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal__box { display: flex; flex-direction: column; max-height: inherit; }
.modal__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 0; font-size: 18px; }
.modal__head p { margin: 3px 0 0; color: var(--ink-2); font-size: 13px; }
.modal__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); }
.modal__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal__close { margin-left: auto; }
.modal__body { padding: 18px 22px; overflow-y: auto; }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* Yardım içeriği tipografisi */
.prose { color: var(--ink); }
.prose h3 { margin: 18px 0 8px; font-size: 15px; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 20px; }
.prose kbd { padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; font: 600 12px var(--mono); background: var(--surface-2); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps > li { counter-increment: step; position: relative; padding: 12px 14px 12px 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.steps > li::before { content: counter(step); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; }
.tip { padding: 12px 14px; border-radius: 12px; background: var(--sun-soft); color: var(--warn); font-weight: 600; }

/* Anahtar (switch): <button class="switch" aria-pressed="true|false"><span></span></button> */
.switch { position: relative; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background .18s; flex: none; }
.switch > span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .18s; }
.switch[aria-pressed="true"] { background: var(--brand); }
.switch[aria-pressed="true"] > span { transform: translateX(18px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.switch.is-busy { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .switch, .switch > span { transition: none; } }

/* İlerleme */
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--violet)); }

/* ---------- Giriş ekranı ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); background: var(--bg); }
.auth__art {
  position: relative; overflow: hidden; padding: 48px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(60% 50% at 85% 15%, rgb(255 255 255 / .18), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, color-mix(in srgb, var(--coral) 55%, transparent), transparent 60%),
    linear-gradient(140deg, #0e9c8b 0%, #0b7d70 45%, #5a47d1 100%);
}
.auth__art h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; max-width: 14ch; }
.auth__art p { max-width: 40ch; opacity: .9; font-size: 15px; }
.auth__art ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.auth__art li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.auth__art li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 7px; background: rgb(255 255 255 / .2) 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/14px no-repeat; }
.auth__tooth { position: absolute; right: -60px; bottom: -40px; width: 340px; opacity: .14; }
.auth__panel { display: grid; place-items: center; padding: 32px 20px; }
.auth__card { width: min(420px, 100%); display: grid; gap: 18px; }
.auth__brand { display: flex; align-items: center; gap: 12px; }
.auth__brand .brand-mark { background: var(--brand); color: #fff; }
.auth__brand p { margin: 0; }
.auth__product { font-weight: 800; font-size: 18px; }
.auth__title { margin: 6px 0 0; font-size: 26px; font-weight: 800; }
.auth__foot { margin: 0; font-size: 12.5px; }
@media (max-width: 880px) { .auth { grid-template-columns: 1fr; } .auth__art { display: none; } }

/* ---------- Resepsiyon QR (/checkin-qr) ---------- */
.card__head-end { margin-left: auto; }
.qrc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1500px) { .qrc { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); } }
.qrc__body { max-width: 900px; }
.qrc__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.qrc__code { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-align: center; box-shadow: var(--shadow-sm); }
.qrc__code img { display: block; width: 240px; height: 240px; }
.qrc__code figcaption { margin-top: 8px; color: #1e1b2e; font-size: 13px; font-weight: 700; }
.qrc__side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.qrc__url { display: flex; gap: 8px; }
.qrc__url .input { flex: 1; min-width: 0; font-size: 13px; }
.qrc__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.qrc__steps { margin: 0; }
.qrc__renew { margin-top: 20px; }
.qrc__renew .card__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.qrc__renew h2 { margin: 0 0 4px; font-size: 15.5px; }
.qrc__renew p { margin: 0; max-width: 70ch; }
@media (max-width: 640px) {
  .qrc__body { grid-template-columns: minmax(0, 1fr); }
  .qrc__code { justify-self: center; }
  .qrc__code img { width: 200px; height: 200px; }
}

/* Yazdırılabilir afiş (/checkin-qr/print) — ekranda önizleme, kâğıtta yalnızca afiş */
.qrp-page { background: var(--bg); }
.qrp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; max-width: 560px; margin: 20px auto 0; padding: 0 16px; }
.qrp-bar__note { max-width: 528px; margin: 12px auto 0; }
.qrp {
  display: grid; justify-items: center; gap: 14px; max-width: 528px; margin: 20px auto 40px; padding: 40px 36px 30px;
  border-radius: 28px; background: #fff; color: #1e1b2e; text-align: center; box-shadow: var(--shadow-lg);
  border-top: 10px solid #0e9c8b;
}
.qrp__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.qrp__brand .brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e2f5f1; }
.qrp__brand svg { width: 22px; height: 22px; }
.qrp h1 { margin: 6px 0 0; font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: #0b6b60; }
.qrp__lead { margin: 0; font-size: 18px; line-height: 1.45; color: #4a4560; }
.qrp__code { padding: 14px; border: 3px solid #0e9c8b; border-radius: 22px; }
.qrp__code img { display: block; width: 280px; height: 280px; }
.qrp__steps { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; text-align: left; font-size: 16px; font-weight: 650; }
.qrp__steps b { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: #ff6b4a; color: #fff; font-size: 14px; }
.qrp__foot { margin: 6px 0 0; color: #6b6680; font-size: 14px; }
.qrp__url { margin: 0; color: #9a95ab; font-size: 11px; word-break: break-all; }
@media print {
  @page { margin: 12mm; }
  .qrp-page { background: #fff; }
  .qrp-bar, .qrp-bar__note { display: none !important; }
  .qrp { margin: 0 auto; box-shadow: none; border: 2px solid #0e9c8b; border-top-width: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
