/* Terminbot — web randevu uygulaması (koyu, "uygulama" görünümü, bol hareket).
   Fontlar kendi sunucumuzdan (Google Fonts'a istek yok → DSGVO).
*/
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mulish"; src: url("fonts/mulish-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mulish"; src: url("fonts/mulish-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JBMono"; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F; }
@font-face { font-family: "JBMono"; src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5; }

/* ── Tokenlar: koyu, "uygulama" görünümü ───────────────────────────────
   Varsayılan palet; işletme teması (.theme-*) gradyanı ve vurguyu değiştirir. */
:root {
  --backdrop: #0b1222;
  --bg: #121c33;
  --card: #1b2844;
  --card-2: #22325a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef2fb;
  --muted: #8d9abb;
  --hero: linear-gradient(140deg, #3b4bff 0%, #2d8cff 55%, #22c4ef 100%);
  --accent: #35b6ff;
  --accent-2: #22d3ee;
  --btn: linear-gradient(120deg, #3a7bff, #22c4ef);
  --ok: #3ddc97;
  --warn: #ff7a85;
  --stamp: #f2c46d;
  --radius: 18px;
  --on-accent: #ffffff;        /* gradyan/lacivert zemin üstündeki yazı */
  --track: rgba(255,255,255,.1); /* halkaların boş kısmı */
  --ring-a: #7cc4ff;           /* halka gradyanı */
  --ring-b: #22d3ee;
  --day-ring: var(--ok);       /* gün kartı doluluk halkası */
  --hero-sub: #c9f1ff;
  --icon-bg: rgba(255,255,255,.06);
  --ripple: rgba(255,255,255,.22);
  --toast-bg: #ffffff;
  --toast-text: #10203a;
  --row-shadow: 0 10px 24px -16px rgba(0,0,0,.6);
  --title-font: var(--body);
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JBMono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
/* Büroservice Türedi: kendi web sitesinin renkleri — krem kâğıt zemin, beyaz kartlar,
   lacivert (#1A365D) başlık/butonlar, pirinç (#9C7B2E) vurgu, serif başlıklar. */
.theme-bueroservice {
  color-scheme: light;
  --backdrop: #f3efe7;
  --bg: #faf8f4;
  --card: #ffffff;
  --card-2: #ffffff;
  --line: #e4ded2;
  --line-2: #d6cdb9;
  --text: #101e33;
  --muted: #5a6879;
  --hero: linear-gradient(140deg, #101e33 0%, #1a365d 55%, #2a4c7d 100%);
  --accent: #9c7b2e;
  --accent-2: #9c7b2e;
  --btn: linear-gradient(120deg, #1a365d, #2a4c7d);
  --ok: #9c7b2e;
  --warn: #b3261e;
  --stamp: #9c7b2e;
  --track: #ece6da;
  --ring-a: #1a365d;
  --ring-b: #9c7b2e;
  --day-ring: #9c7b2e;
  --hero-sub: #f3ead6;
  --icon-bg: #f3ead6;
  --ripple: rgba(26, 54, 93, .12);
  --toast-bg: #101e33;
  --toast-text: #ffffff;
  --row-shadow: 0 1px 0 #e4ded2, 0 12px 28px -22px rgba(16, 30, 51, .45);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --title-font: var(--display);
  --radius: 12px;
}
.theme-bueroservice .backdrop i { opacity: .1; }
.theme-bueroservice .hero-value { font-weight: 400; letter-spacing: -.01em; }
.theme-bueroservice .hero-value .dim { color: #d4b46a; opacity: 1; }
.theme-bueroservice .hero-label { color: #d4b46a; }
.theme-bueroservice .section-title { font-size: 21px; font-weight: 400; letter-spacing: 0; color: #1a365d; }
.theme-bueroservice .row[aria-pressed="true"] { border-color: #1a365d; box-shadow: 0 0 0 1px #1a365d, 0 14px 30px -18px rgba(16, 30, 51, .5); background: #fbf9f5; }
.theme-bueroservice .ring .ico { color: #1a365d; }
.theme-bueroservice .day-num, .theme-bueroservice .stub-num, .theme-bueroservice .done h2 { font-weight: 400; color: inherit; }
.theme-bueroservice .done h2, .theme-bueroservice .calpage .display { color: #1a365d; }
.theme-bueroservice .day-free { color: #9c7b2e; }
.theme-bueroservice .tab-bubble::before { box-shadow: 0 8px 22px -8px rgba(26, 54, 93, .7); }
.theme-bueroservice .btn-primary { box-shadow: 0 14px 30px -16px rgba(26, 54, 93, .8); }
.theme-bueroservice .stub-time { color: #1a365d; }
.theme-bueroservice .calpage-logo { filter: none; opacity: 1; }
.theme-bueroservice .calpage .eyebrow { color: #9c7b2e; }

/* Multikulturen Lohnsteuerhilfeverein: farbiges Original-Logo oben auf weißem Schild,
   App in kräftigem Anthrazit/Stahlblau (sachlich, nicht verspielt), Mulish wie die Website. */
.theme-multikulturen {
  color-scheme: light;
  --backdrop: #e3e6e9;
  --bg: #f4f5f6;
  --card: #ffffff;
  --card-2: #ffffff;
  --line: #dfe3e7;
  --line-2: #c9d0d6;
  --text: #14191e;
  --muted: #56616b;
  --hero: linear-gradient(140deg, #141c23 0%, #1f2b35 50%, #2e4252 100%);
  --accent: #2f5470;
  --accent-2: #3e6a8a;
  --btn: linear-gradient(120deg, #1f2b35, #2e4252);
  --ok: #2f5470;
  --warn: #b3261e;
  --stamp: #2f5470;
  --track: #e4e8ec;
  --ring-a: #1f2b35;
  --ring-b: #3e6a8a;
  --day-ring: #3e6a8a;
  --hero-sub: #d6e1ea;
  --icon-bg: #edf1f4;
  --ripple: rgba(31, 43, 53, .14);
  --toast-bg: #14191e;
  --toast-text: #ffffff;
  --row-shadow: 0 1px 0 #dfe3e7, 0 12px 26px -22px rgba(20, 25, 30, .45);
  --display: "Mulish", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Mulish", "Segoe UI", Helvetica, Arial, sans-serif;
  --title-font: var(--display);
  --radius: 8px;
}
.theme-multikulturen .backdrop i { opacity: .06; }
.theme-multikulturen .hero-value { font-weight: 800; letter-spacing: -.01em; }
.theme-multikulturen .hero-value .dim { color: #9fb6c8; opacity: 1; }
.theme-multikulturen .hero-label { color: #9fb6c8; letter-spacing: .1em; }
.theme-multikulturen .section-title { font-size: 21px; font-weight: 800; letter-spacing: 0; color: #14191e; }
.theme-multikulturen .row[aria-pressed="true"] { border-color: #1f2b35; box-shadow: 0 0 0 1px #1f2b35, 0 14px 30px -18px rgba(20, 25, 30, .5); background: #f6f8f9; }
.theme-multikulturen .ring .ico { color: #2f5470; }
.theme-multikulturen .done h2, .theme-multikulturen .calpage .display { color: #14191e; }
.theme-multikulturen .day-free { color: #2f5470; }
.theme-multikulturen .tab-bubble::before { box-shadow: 0 8px 22px -8px rgba(20, 25, 30, .7); }
.theme-multikulturen .btn { border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.theme-multikulturen .btn-primary { box-shadow: 0 14px 30px -16px rgba(20, 25, 30, .8); }
.theme-multikulturen .stub-time { color: #2f5470; }
.theme-multikulturen .calpage-logo { filter: none; opacity: 1; height: 56px; }
.theme-multikulturen .calpage .eyebrow { color: #2f5470; }
/* Farbiges Logo auf weißem Schild statt Symbol + Name (Logo enthält den Namen schon) */
.hero-top:has(.hero-brand) { gap: 8px; }
.hero-top:has(.hero-brand) .langs button { padding: 5px 7px; font-size: 11px; }
.hero-brand { flex: 1; min-width: 0; display: flex; }
.hero-brand span { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 6px 9px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.6); max-width: 100%; }
.hero-brand img { display: block; height: 44px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--text);
  background: var(--backdrop);
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

/* Masaüstünde arkada süzülen bulanık ışıklar (örnekteki zemin) */
.backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.backdrop i {
  position: absolute; width: 38vw; height: 22vw; border-radius: 40px; filter: blur(70px); opacity: .22;
  background: var(--hero); animation: drift 26s ease-in-out infinite alternate;
}
.backdrop i:nth-child(1) { left: -8vw; top: 8vh; }
.backdrop i:nth-child(2) { right: -10vw; top: 40vh; animation-duration: 32s; animation-delay: -8s; }
.backdrop i:nth-child(3) { left: 30vw; bottom: -12vh; animation-duration: 38s; animation-delay: -16s; opacity: .14; }
@keyframes drift { to { transform: translate(6vw, -5vh) rotate(8deg); } }

/* ── Cihaz kabı ─────────────────────────────────────── */
.device {
  position: relative; z-index: 1; width: 100%; max-width: 480px; margin: 0 auto; min-height: 100dvh;
  background: var(--bg); display: flex; flex-direction: column;
}
@media (min-width: 600px) {
  body { padding: 28px 0; }
  .device { min-height: calc(100dvh - 56px); border-radius: 34px; overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), 0 0 0 1px var(--line); }
}

/* ── Başlık (hero) ──────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(16px + env(safe-area-inset-top)) 20px 54px;
  background: var(--hero);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%);
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow i {
  position: absolute; border-radius: 26px; background: rgba(255,255,255,.12); filter: blur(2px);
  animation: float 14s ease-in-out infinite alternate;
}
.hero-glow i:nth-child(1) { width: 190px; height: 120px; right: -40px; top: 10px; transform: rotate(14deg); }
.hero-glow i:nth-child(2) { width: 130px; height: 90px; left: -30px; bottom: 30px; animation-duration: 18s; animation-delay: -6s; opacity: .7; }
.hero-glow i:nth-child(3) { width: 90px; height: 90px; right: 34%; top: 60%; border-radius: 50%; animation-duration: 11s; opacity: .5; }
@keyframes float { to { transform: translate(-18px, 14px) rotate(-6deg) scale(1.08); } }

.hero-top { position: relative; display: flex; align-items: center; gap: 10px; }
.hero-logo { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.hero-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.18); font-weight: 750; font-size: 13px; }
.hero-name { flex: 1; min-width: 0; font-weight: 650; font-size: 14px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.langs { display: flex; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px; backdrop-filter: blur(6px); }
.langs button { border: 0; background: none; color: rgba(255,255,255,.75); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; transition: background .25s, color .25s; }
.langs button[aria-pressed="true"] { background: #fff; color: #10203a; }

.hero-body { position: relative; text-align: center; margin-top: 22px; }
.hero-label { margin: 0; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); font-weight: 600; }
.hero-value {
  margin: 6px 0 4px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 10vw, 46px);
  line-height: 1.05; letter-spacing: -.02em; display: inline-flex; overflow: hidden; white-space: pre;
}
.hero-value .ch { display: inline-block; }
.hero-value .dim { opacity: .62; font-weight: 500; }
.hero-sub { margin: 0; font-size: 13.5px; color: var(--hero-sub); font-weight: 600; min-height: 1.5em; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 28px; }
.hchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hchip.is-new { animation: pop .5s var(--spring); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ── İçerik alanı ───────────────────────────────────── */
.sheet { position: relative; flex: 1; padding: 0 16px 24px; margin-top: -18px; }
.section-title {
  text-align: center; margin: 0 0 16px; font-family: var(--title-font); font-size: 15px; font-weight: 650; letter-spacing: .1em; color: var(--text);
}
.q-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: -10px 0 16px; }
.block + .block { margin-top: 26px; }
.stage { position: relative; }
.panel { will-change: transform, opacity; }

/* Kart satırı (örnekteki cüzdan satırları) */
.rows { display: grid; gap: 10px; }
.rows--two { grid-template-columns: 1fr 1fr; }
.rows--three { grid-template-columns: repeat(3, 1fr); }
.row {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; min-height: 66px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  box-shadow: var(--row-shadow);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.rows--two .row, .rows--three .row { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 14px 8px; }
@media (hover: hover) { .row:hover { transform: translateY(-2px); border-color: var(--line-2); } }
.row:active { transform: scale(.97); }
.row[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent), 0 14px 30px -14px color-mix(in srgb, var(--accent) 60%, transparent);
}
.ring { position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.ring svg.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--track); }
.ring .arc { stroke: url(#ringGrad); stroke-dasharray: 126; stroke-dashoffset: 126; transition: stroke-dashoffset .7s var(--ease); }
.row[aria-pressed="true"] .ring .arc { stroke-dashoffset: 0; }
.ring .ico { width: 20px; height: 20px; color: var(--text); }
.row-text { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 650; font-size: 15px; line-height: 1.25; }
.row-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row-check {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); transition: background .3s, border-color .3s, transform .4s var(--spring);
}
.row-check svg { width: 13px; height: 13px; stroke: var(--on-accent); stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease) .1s; }
.row[aria-pressed="true"] .row-check { background: var(--btn); border-color: transparent; transform: scale(1.1); }
.row[aria-pressed="true"] .row-check svg { stroke-dashoffset: 0; }
.rows--two .row-check, .rows--three .row-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; }

/* Dokunma dalgası */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: var(--ripple); transform: scale(0); animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Gün kartları: halka o günün doluluk oranını gösterir */
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 14px; margin: 0 -16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  position: relative; overflow: hidden; flex: none; scroll-snap-align: start; width: 78px; padding: 12px 6px 10px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); text-align: center;
  transition: transform .25s var(--ease), border-color .25s;
}
.day:active { transform: scale(.95); }
.day .ring { margin: 0 auto 6px; width: 50px; height: 50px; }
.day .ring .arc { stroke: var(--day-ring); stroke-dasharray: 138; }
.day-num { font-family: var(--display); font-weight: 700; font-size: 19px; }
.day-dow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day-free { display: block; font-size: 10.5px; color: var(--ok); font-weight: 600; margin-top: 1px; }
.day[aria-pressed="true"] { background: var(--btn); border-color: transparent; color: var(--on-accent); }
.day[aria-pressed="true"] .day-dow, .day[aria-pressed="true"] .day-free { color: rgba(255,255,255,.85); }
.day[aria-pressed="true"] .ring .arc { stroke: var(--on-accent); }
.day[aria-pressed="true"] .ring .track { stroke: rgba(255,255,255,.25); }
.month { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 2px; font-weight: 600; }

.times-group + .times-group { margin-top: 16px; }
.times-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 2px; font-weight: 600; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time {
  position: relative; overflow: hidden; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); font-family: var(--mono); font-weight: 600; font-size: 15px;
  transition: transform .2s var(--ease), border-color .2s;
}
.time:active { transform: scale(.94); }
@media (hover: hover) { .time:hover { border-color: var(--line-2); } }
.time[aria-pressed="true"] { background: var(--btn); border-color: transparent; color: var(--on-accent); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }

.empty { padding: 22px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Form */
.field + .field { margin-top: 14px; }
.field label { display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 6px 2px; }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.input {
  width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); font-size: 16px; transition: border-color .25s, box-shadow .25s, background .25s;
}
textarea.input { min-height: 88px; resize: vertical; }
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:focus { outline: none; border-color: var(--accent); background: var(--card-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error .input { border-color: var(--warn); }
.field-hint { margin: 6px 2px 0; font-size: 12.5px; color: var(--muted); }
.field-error { margin: 6px 2px 0; font-size: 13px; color: var(--warn); font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; background: var(--card); border-radius: 14px; border: 1px solid var(--line); }
.seg button { min-height: 40px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--on-accent); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.check label { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.privacy { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }

/* Özet */
.summary { display: grid; gap: 8px; }
.sum-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.sum-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--icon-bg); }
.sum-ico svg { width: 18px; height: 18px; color: var(--accent-2); }
.sum-text { flex: 1; min-width: 0; }
.sum-k { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sum-v { display: block; font-weight: 600; overflow-wrap: anywhere; }
.sum-edit { flex: none; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 13.5px; padding: 6px; }

/* ── Alt kısım: butonlar + sekme çubuğu ─────────────── */
.foot { position: sticky; bottom: 0; z-index: 20; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.actions { display: flex; gap: 10px; margin-bottom: 10px; }
.actions:empty { display: none; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 16px; border: 1px solid transparent; font-weight: 650; font-size: 15.5px;
  text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), opacity .25s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { flex: 1; color: var(--on-accent); background: var(--btn); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-primary[disabled] { opacity: .35; box-shadow: none; cursor: not-allowed; }
.btn-primary:not([disabled])::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite 1s;
}
@keyframes shine { 40%, 100% { transform: translateX(100%); } }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--text); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabbar {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px; border-radius: 22px;
  background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(14px);
}
.tab-bubble {
  position: absolute; top: 8px; left: 6px; width: calc((100% - 12px) / 4); height: 44px; display: grid; place-items: center; pointer-events: none;
  transition: transform .55s var(--spring);
}
.tab-bubble::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--btn); box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--accent) 90%, transparent); }
.tab { position: relative; z-index: 1; border: 0; background: none; height: 44px; display: grid; place-items: center; color: var(--muted); transition: color .3s; }
.tab svg { width: 21px; height: 21px; }
.tab[aria-current="step"] { color: var(--on-accent); }
.tab.is-done { color: var(--text); }
.tab[disabled] { cursor: default; opacity: .55; }

/* ── Bitti ekranı ───────────────────────────────────── */
.done { text-align: center; }
.done-check { width: 86px; height: 86px; margin: 4px auto 14px; }
.done-check .track { stroke: var(--track); }
.done-check .arc { stroke: url(#ringGrad); stroke-dasharray: 251; stroke-dashoffset: 251; animation: draw 1s var(--ease) .15s forwards; }
.done-check .tick { stroke: var(--accent); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-family: var(--display); font-size: 26px; margin: 0 0 8px; letter-spacing: -.01em; }
.done-body { color: var(--muted); margin: 0 auto 20px; max-width: 34ch; font-size: 14.5px; }

.ticket {
  position: relative; text-align: left; display: grid; grid-template-columns: 1fr 88px; margin-bottom: 22px;
  border-radius: 20px; background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  -webkit-mask: radial-gradient(circle 10px at calc(100% - 88px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 10px at calc(100% - 88px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 10px at calc(100% - 88px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 10px at calc(100% - 88px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { padding: 16px; display: grid; gap: 10px; min-width: 0; }
.ticket-label { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ticket-value { display: block; font-weight: 650; font-size: 14.5px; overflow-wrap: anywhere; }
.ticket-stub { border-left: 2px dashed var(--line-2); display: grid; place-content: center; text-align: center; padding: 12px 4px; }
.stub-dow { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stub-num { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1; }
.stub-mon { font-size: 12px; color: var(--muted); font-weight: 600; }
.stub-time { margin-top: 6px; font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--accent-2); }
.stamp {
  position: absolute; right: 100px; bottom: 14px; pointer-events: none; opacity: 0;
  padding: 5px 11px; border: 2.5px solid var(--stamp); border-radius: 9px; color: var(--stamp);
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-9deg);
}
.stamp.is-in { opacity: .95; }
.stamp--confirmed { color: var(--ok); border-color: var(--ok); }
.stamp--cancelled { color: var(--muted); border-color: var(--muted); }

.cal-heading { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; text-align: left; }
.cal-buttons { display: grid; gap: 8px; }
.cal-btn {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .2s var(--ease), border-color .25s;
}
@media (hover: hover) { .cal-btn:hover { transform: translateY(-2px); border-color: var(--line-2); } }
.cal-btn::after { content: "›"; margin-left: auto; font-size: 22px; color: var(--muted); }
.cal-ico { width: 22px; height: 22px; flex: none; color: var(--accent-2); }
.link-row { display: flex; gap: 8px; margin-top: 8px; }
.link-row .btn { flex: 1; min-height: 48px; font-size: 14.5px; }
.wa-nudge { margin-top: 20px; padding: 14px; border-radius: var(--radius); background: var(--card); font-size: 14px; color: var(--muted); text-align: left; }
.wa-nudge .btn { margin-top: 10px; width: 100%; background: #1fa855; color: #fff; }
.done-cancel { margin: -10px auto 18px; font-size: 13px; color: var(--muted); max-width: 36ch; }
.cancel-box { margin-top: 22px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cancel-box p { margin: 0 0 12px; }
.cancel-box.is-late p { margin: 0; }
.cancel-box a { color: var(--accent); font-weight: 600; }
.btn-danger { width: 100%; background: transparent; border-color: var(--warn); color: var(--warn); }
@media (hover: hover) { .btn-danger:hover { background: color-mix(in srgb, var(--warn) 10%, transparent); } }
.again { display: inline-block; margin-top: 20px; color: var(--accent); font-weight: 600; text-decoration: none; }

/* Uçan seçim + bildirim */
.flyer { position: fixed; z-index: 50; pointer-events: none; padding: 6px 12px; border-radius: 999px; background: var(--btn); color: #fff; font-weight: 650; font-size: 13.5px; white-space: nowrap; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.toast {
  position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 14px; background: var(--toast-bg); color: var(--toast-text); font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
}

/* ── Müşterinin takvim sayfası (sunucu tarafı) ──────── */
.calpage { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top)) 16px 48px; }
.calpage-logo { display: block; height: 40px; width: auto; margin: 0 0 22px; filter: brightness(0) invert(1); opacity: .9; }
.calpage .eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.calpage .display { font-family: var(--display); font-size: 34px; margin: 0; letter-spacing: -.02em; }
.calpage .muted { color: var(--muted); margin: 10px 0 22px; }
.calpage .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
.calpage .ticket-row { display: grid; gap: 1px; }
.calpage .ticket-value--small { font-size: 13.5px; font-weight: 500; }
.calpage .ticket-value--mono { font-family: var(--mono); }
.calpage .stamp { right: 14px; top: 74px; bottom: auto; }
.calpage .btn-primary { width: 100%; }
.noscript { max-width: 480px; margin: 40px auto; padding: 20px; background: var(--card); border-radius: var(--radius); }

@media (max-width: 360px) { .rows--three { grid-template-columns: 1fr; } .rows--three .row { flex-direction: row; text-align: left; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Sade mod (tenants.simple_mode): duyuru panosu + tek büyük buton ── */
.hero-body--news { margin-top: 14px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 4px; }
.news-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hero-sub); }
.news-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 0 0 rgba(255, 90, 79, .7); animation: newsPulse 1.8s ease-out infinite; }
@keyframes newsPulse { to { box-shadow: 0 0 0 10px rgba(255, 90, 79, 0); } }
.news-track { display: grid; width: 100%; }
.news-item {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: inherit; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.news-item.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s, visibility 0s; }
.news-item.is-link { cursor: pointer; border-radius: 14px; padding: 4px 6px; }
.news-item.is-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.news-text { margin: 0; font-family: var(--display); font-weight: 750; font-size: clamp(19px, 5.4vw, 24px); line-height: 1.32; overflow-wrap: anywhere; }
.news-text--welcome { font-size: clamp(28px, 8vw, 36px); }
.news-more { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); font-size: 14px; font-weight: 700; }
.news-arrow { width: 16px; height: 16px; flex: none; }
.news-dots { display: flex; gap: 4px; justify-content: center; margin-top: 10px; }
.news-dot-btn { width: 26px; height: 22px; border: 0; padding: 0; background: none; display: grid; place-items: center; }
.news-dot-btn::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.4); transition: width .3s var(--ease), background .3s; }
.news-dot-btn[aria-current="true"]::before { width: 20px; background: #fff; }
.start { text-align: center; padding: 34px 2px 20px; }
.is-simple .btn.btn-start, .btn.btn-start {
  width: 100%; max-width: 340px; aspect-ratio: 1 / 1; min-height: 0; margin: 0 auto; padding: 20px;
  flex-direction: column; gap: 18px; border-radius: 28px; font-size: clamp(30px, 9vw, 40px); font-weight: 800; line-height: 1.1; white-space: normal;
}
.btn-start span { display: block; }
.start-ico { width: 84px; height: 84px; flex: none; stroke-width: 1.6; }
.start-hint { margin: 18px 0 0; font-size: 16px; color: var(--muted); font-weight: 600; }
.start-addr { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
/* Sade mod: 2 sütun büyük kareler (3 randevu konusu + 3 bilgi kutusu) */
.rows--big { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rows--big .row { aspect-ratio: 1 / 1; min-height: 0; flex-direction: column; justify-content: center; text-align: center; gap: 12px; padding: 14px 10px; }
.rows--big .row-text { flex: none; }
.rows--big .row-title { font-size: clamp(17px, 5vw, 21px); font-weight: 800; line-height: 1.2; }
.rows--big .ring { width: 64px; height: 64px; }
.rows--big .ring .ico { width: 30px; height: 30px; }
.rows--big .row-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; }
.row--info { background: var(--icon-bg); border-color: var(--line-2); box-shadow: none; }
.row--info .ring .track { stroke: transparent; }
.row--info .ring { background: var(--card); border-radius: 50%; }
.row--info .ring .ico { color: var(--accent); }

/* Bilgi penceresi */
.has-info, .has-info body { overflow: hidden; }
.info { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.info-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 18, .55); }
.info-card {
  position: relative; width: 100%; max-width: 520px; max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); border-radius: 26px 26px 0 0; padding: 22px 18px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.5);
}
@media (min-width: 600px) { .info { align-items: center; } .info-card { border-radius: 26px; } }
.info-title { margin: 0 0 14px; text-align: center; font-family: var(--title-font); font-size: 24px; font-weight: 800; }
.info-body { overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px 6px; font-size: 17px; }
.info-close { flex: none; width: 100%; margin-top: 14px; }
.info-sub { margin: 20px 0 8px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-biz { margin: 0 0 12px; text-align: center; font-weight: 700; font-size: 17px; }
.hours { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hrow { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 18px; }
.hrow:first-child { border-top: 0; }
.hrow.is-today { background: var(--icon-bg); font-weight: 800; }
.hday { font-weight: 700; }
.htime { text-align: right; font-variant-numeric: tabular-nums; }
.hours .muted { color: var(--muted); font-weight: 600; }
.closed-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc-list { display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.doc-ico { width: 28px; height: 28px; flex: none; color: var(--accent); }
.doc-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-open { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 15px; }
.doc--img { flex-direction: column; align-items: stretch; padding: 10px; }
.doc--img img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); background: var(--icon-bg); }
.doc--img .doc-name { text-align: center; font-size: 15px; }
.contact { display: grid; gap: 10px; }
.crow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.crow .sum-ico { width: 44px; height: 44px; }
.crow .sum-ico svg { width: 22px; height: 22px; }
.crow .sum-k { font-size: 12.5px; }
.crow .sum-v { font-size: 18px; }
.crow .news-arrow { color: var(--muted); }
.is-simple .section-title { font-size: 22px; }
.is-simple .btn { min-height: 60px; font-size: 17px; }
.is-simple .field label { font-size: 16px; }
.is-simple .input { font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .news-dot { animation: none; } }
.is-simple .hero { padding-bottom: 66px; }
