/* ==========================================================================
   Gülüş Akademisi – Mobil uygulama arayüzü (v3)
   Marka kimliği siteden (renkler, Playfair başlıklar, logo), metinler telefonun sistem fontuyla; düzen uygulamadan:
   kontrol paneli, kartlar, gruplu listeler, alt sayfalar (sheet), sabit eylem butonu,
   daralan başlık ve sayfalar arası paylaşımlı geçişler (View Transitions).
   ========================================================================== */


@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

:root {
  --white: #FFFFFF;
  --bg: #F2F2EF;
  --cream: #E3E4DB;
  --gray: #919296;
  --gray-2: #6F7074;
  --dark: #454547;
  --dark-2: #2F2F31;
  --gold: #DDB100;
  --gold-2: #A88700;
  --gold-soft: #FBF6E2;
  --red: #D2493F;
  --green: #4F8A3B;
  --line: rgba(69, 69, 71, .09);
  /* Anlamsal renkler (açık / koyu modda değişir) */
  --surface: #FFFFFF;
  --text: #454547;
  --ink: #454547;
  --fill: rgba(69, 69, 71, .07);
  --outline: rgba(69, 69, 71, .25);
  --header-bg: rgba(242, 242, 239, .86);
  --bar-bg: rgba(255, 255, 255, .9);
  --bg-0: rgba(242, 242, 239, 0);
  --bg-95: rgba(242, 242, 239, .95);
  --grabber: #D6D6D1;
  --placeholder: #A9A9AC;
  --star-off: #DEDED8;
  --tab-off: #A3A3A6;
  --logo-filter: none;
  --tooth: #575756;
  --tooth-detail: rgba(198, 198, 197, .45);
  color-scheme: light;
  --r: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 31, 33, .04), 0 6px 20px rgba(31, 31, 33, .05);
  --header-h: 52px;
  --tabbar-h: 62px;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(.2, .9, .25, 1);
}

/* Koyu mod: sistem ayarını izler; kullanıcı Profil > Görünüm'den Açık/Koyu seçebilir */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113;
    --surface: #1C1C1E;
    --text: #ECECE7;
    --ink: #2C2C2E;
    --dark-2: #0B0B0C;
    --cream: #E3E4DB;
    --gray: #8E8E93;
    --gray-2: #A1A1A6;
    --gold-2: #E8C232;
    --gold-soft: rgba(221, 177, 0, .14);
    --line: rgba(255, 255, 255, .09);
    --fill: rgba(255, 255, 255, .08);
    --outline: rgba(255, 255, 255, .25);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --header-bg: rgba(17, 17, 19, .82);
    --bar-bg: rgba(28, 28, 30, .88);
    --bg-0: rgba(17, 17, 19, 0);
    --bg-95: rgba(17, 17, 19, .95);
    --grabber: #48484A;
    --placeholder: #6C6C70;
    --star-off: #3A3A3C;
    --tab-off: #7C7C80;
    --logo-filter: brightness(0) invert(.92);
    --tooth: #D6D6D1;
    --tooth-detail: rgba(255, 255, 255, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113;
  --surface: #1C1C1E;
  --text: #ECECE7;
  --ink: #2C2C2E;
  --dark-2: #0B0B0C;
  --cream: #E3E4DB;
  --gray: #8E8E93;
  --gray-2: #A1A1A6;
  --gold-2: #E8C232;
  --gold-soft: rgba(221, 177, 0, .14);
  --line: rgba(255, 255, 255, .09);
  --fill: rgba(255, 255, 255, .08);
  --outline: rgba(255, 255, 255, .25);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --header-bg: rgba(17, 17, 19, .82);
  --bar-bg: rgba(28, 28, 30, .88);
  --bg-0: rgba(17, 17, 19, 0);
  --bg-95: rgba(17, 17, 19, .95);
  --grabber: #48484A;
  --placeholder: #6C6C70;
  --star-off: #3A3A3C;
  --tab-off: #7C7C80;
  --logo-filter: brightness(0) invert(.92);
  --tooth: #D6D6D1;
  --tooth-detail: rgba(255, 255, 255, .08);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 10px); }
body.m {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: -.01em; color: var(--text);
  background: #1f1f21; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overscroll-behavior-y: none;
}
img { max-width: 100%; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tap { transition: transform .15s var(--ease), opacity .15s; }
.tap:active { transform: scale(.97); opacity: .9; }

/* ---------- Kabuk ---------- */
.m-shell {
  position: relative; max-width: 520px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  background: var(--bg);
  padding-top: calc(var(--header-h) + var(--safe-top));
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
  overflow-x: hidden;
}
.m-shell.no-tabbar { padding-bottom: calc(var(--safe-bottom) + 24px); }
.m-shell.has-cta { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 92px); }
.m-shell.no-tabbar.has-cta { padding-bottom: calc(var(--safe-bottom) + 96px); }

/* Üst çubuk */
.m-header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto;
  height: calc(var(--header-h) + var(--safe-top)); padding: var(--safe-top) 6px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: .5px solid transparent; transition: border-color .25s, background .25s, color .25s;
  view-transition-name: m-header;
}
.m-header { border-bottom-color: var(--line); }
.m-header .m-title {
  position: absolute; left: 60px; right: 60px; text-align: center; font-weight: 500; font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s, transform .25s var(--ease);
}
body.has-large-title:not(.title-collapsed) .m-header .m-title { opacity: 0; transform: translateY(6px); }
.m-icon-btn {
  position: relative; width: 44px; height: 44px; border: 0; background: none; color: inherit; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; padding: 0;
}
.m-icon-btn:active { background: var(--fill); }
.m-icon-btn .dot { position: absolute; top: 9px; right: 9px; min-width: 9px; height: 9px; border-radius: 9px; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }

/* Başlık çubuğu tüm sayfalarda sabit ve görünür; büyük başlık görünürken ortada logo durur */
.m-header .m-mark { filter: var(--logo-filter); position: absolute; left: 50%; top: calc(var(--safe-top) + var(--header-h) / 2); height: 22px; transform: translate(-50%, -50%); opacity: 0; transition: opacity .2s; pointer-events: none; }
body.has-large-title:not(.title-collapsed) .m-header .m-mark { opacity: 1; }
body.home-page .m-header { background: var(--ink); color: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.home-page .m-header .m-icon-btn .dot { box-shadow: 0 0 0 2px var(--ink); }
.m-brand { position: absolute; left: 50%; transform: translateX(-50%); width: 42px; }

/* Büyük sayfa başlığı (kaydırınca üst çubuğa daralır) */
.large-title { padding: 8px 20px 14px; }
.large-title h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.12; letter-spacing: -.2px; }
.large-title p { margin: 6px 0 0; color: var(--gray-2); font-size: 14px; }

/* Alt sekme çubuğu */
.m-tabbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto;
  height: calc(var(--tabbar-h) + var(--safe-bottom)); padding: 0 8px var(--safe-bottom);
  background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--line); display: flex; justify-content: space-around; align-items: stretch;
  view-transition-name: m-tabbar;
}
.m-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--tab-off); font-size: 10.5px; font-weight: 500; }
.m-tabbar a i { font-size: 23px; line-height: 1; transition: transform .2s var(--ease); }
.m-tabbar a.active { color: var(--text); }
.m-tabbar a.active i { color: var(--gold); transform: translateY(-1px); }

/* Sabit eylem butonu */
.m-cta {
  position: fixed; z-index: 49; left: 0; right: 0; max-width: 520px; margin: 0 auto;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom)); padding: 10px 16px;
  background: linear-gradient(180deg, var(--bg-0), var(--bg-95) 35%);
}
.no-tabbar .m-cta, .m-cta.bottom { bottom: 0; padding-bottom: calc(var(--safe-bottom) + 12px); }

/* Menü (aşağıdan açılan sayfa) */
.m-menu-backdrop { position: fixed; z-index: 99; inset: 0; background: rgba(20,20,22,.4); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.m-menu {
  position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 16px calc(var(--safe-bottom) + 18px);
  transform: translateY(105%); transition: transform .42s var(--ease); visibility: hidden;
}
.m-menu.open { transform: none; visibility: visible; }
body.menu-open .m-menu-backdrop { opacity: 1; visibility: visible; }
.m-menu .grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--grabber); margin: 2px auto 14px; }
.m-menu-head { display: flex; align-items: center; gap: 12px; padding: 0 4px 16px; }
.m-menu-head .logo-box { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.m-menu-head .logo-box img { width: 30px; filter: brightness(0) invert(1); }
.m-menu-head b { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 19px; line-height: 1.2; }
.m-menu-head small { color: var(--gray-2); font-size: 12.5px; }
.m-menu-head .m-icon-btn { margin-left: auto; background: var(--surface); width: 36px; height: 36px; font-size: 16px; }
.m-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.m-menu-grid a { background: var(--surface); border-radius: var(--r-sm); padding: 14px 6px 12px; text-align: center; font-size: 12.5px; line-height: 1.25; box-shadow: var(--shadow); }
.m-menu-grid a i { display: block; font-size: 24px; color: var(--gold-2); margin-bottom: 6px; }
.m-menu-grid a.active { outline: 1.5px solid var(--gold); }
.m-menu-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 0; font-size: 12px; color: var(--gray-2); }
.m-menu-foot a { text-decoration: underline; }
.lang-switch { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 3px; }
.lang-switch a { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; text-decoration: none !important; color: var(--gray-2); }
.lang-switch a.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Uygulamayı indir */
.m-install { position: fixed; z-index: 60; left: 12px; right: 12px; max-width: 496px; margin: 0 auto; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); background: var(--surface); border-radius: var(--r); box-shadow: 0 12px 34px rgba(0,0,0,.16); display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.m-install img { width: 42px; height: 42px; border-radius: 10px; }
.m-install div { flex: 1; font-size: 12.5px; line-height: 1.35; color: var(--gray-2); }
.m-install strong { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.m-install a.btn-sm { background: var(--gold); color: var(--white); padding: 8px 16px; border-radius: 20px; font-weight: 500; font-size: 13px; }
.m-install button { border: 0; background: none; color: var(--gray); font-size: 18px; padding: 4px; }

/* ---------- Tipografi ---------- */
.m-h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0 0 8px; }
.m-h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 21px; line-height: 1.2; margin: 0; }
.m-h3 { font-size: 13px; font-weight: 500; color: var(--gray-2); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 8px 4px; }
.rule { width: 28px; height: 2px; background: var(--gold); border-radius: 2px; margin: 10px 0 16px; }
.m-eyebrow { display: block; font-size: 12.5px; font-weight: 500; color: var(--gold-2); margin: 0 0 4px; }
.m-muted { color: var(--gray-2); }
.m-small { font-size: 12.5px; color: var(--gray); }
.m-pad { padding: 0 16px; }
.section { padding: 0 16px; margin: 0 0 22px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 20px; margin: 0 0 10px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 20px; margin: 0; }
.section-head a { font-size: 13.5px; font-weight: 500; color: var(--gold-2); }

.m-prose { color: var(--gray-2); font-size: 15px; line-height: 1.68; }
.m-prose h2, .m-prose h3, .m-prose h4 { color: var(--text); font-size: 16.5px; font-weight: 500; margin: 22px 0 6px; line-height: 1.35; }
.m-prose > :first-child { margin-top: 0; }
.m-prose ul, .m-prose ol { padding-left: 20px; margin: 0 0 14px; }
.m-prose li { margin-bottom: 6px; padding-left: 2px; }
.m-prose ul li::marker { color: var(--gold); }
.m-prose ol li::marker { color: var(--gold-2); font-weight: 500; }
.m-prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.m-prose strong { color: var(--text); font-weight: 500; }
.m-prose img { border-radius: var(--r-sm); height: auto; }
.m-prose table { width: 100%; border-collapse: collapse; font-size: 13px; }
.m-prose td, .m-prose th { border: 1px solid var(--line); padding: 6px; }

/* ---------- Butonlar ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px;
  padding: 15px 16px; font-weight: 500; font-size: 15.5px; line-height: 1.2; text-align: center; cursor: pointer;
  background: var(--ink); color: var(--white); transition: transform .15s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn.gold { background: var(--gold); color: var(--white); }
.btn.soft { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.btn.outline, .btn.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--outline); }
.btn.light { background: rgba(255,255,255,.12); color: var(--white); }
.btn.danger { background: rgba(210,73,63,.09); color: var(--red); }
.btn.inline { display: inline-flex; width: auto; padding: 11px 18px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn small { font-weight: 400; opacity: .8; }
.m-stack > * + * { margin-top: 10px; }
.link-more { font-size: 14px; font-weight: 500; color: var(--gold-2); display: inline-flex; align-items: center; gap: 4px; }
.link-more::after { content: "›"; font-size: 18px; line-height: 1; }

/* ---------- Kartlar ve listeler ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card-pad { padding: 16px 18px; }
.group { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.m-list > *, .group > a, .group > div.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; position: relative; }
.m-list > * + *::before, .group > * + *::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--line); }
.m-list .m-list-main, .group .grow { flex: 1; min-width: 0; }
.m-list p { margin: 0; line-height: 1.35; }
.m-list p b { font-weight: 500; }
.m-list small, .group small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--gray); line-height: 1.4; }
.m-list .m-list-action, .chev { color: #C2C2C4; font-size: 18px; }
.m-list .passive { opacity: .55; }
.ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; background: var(--gold-soft); color: var(--gold-2); }
.ico.dark { background: var(--ink); color: var(--gold); }
.ico.green { background: rgba(79,138,59,.12); color: var(--green); }

.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 500; background: var(--fill); color: var(--text); white-space: nowrap; }
.badge.gold { background: var(--gold-soft); color: var(--gold-2); }
.badge.green { background: rgba(79,138,59,.12); color: var(--green); }
.badge.red { background: rgba(210,73,63,.1); color: var(--red); }

/* ---------- Ana sayfa (kontrol paneli) ---------- */
.dash-top { position: relative; background: var(--ink); color: var(--white); padding: 4px 20px 46px; border-radius: 0 0 28px 28px; overflow: hidden; }
.dash-top::before { content: ""; position: absolute; right: -40px; top: -30px; width: 150px; height: 150px; border-radius: 40px; background: var(--gold); opacity: .14; transform: rotate(18deg); }
.dash-top .greet { position: relative; font-size: 13.5px; color: rgba(255,255,255,.65); margin: 0; }
.dash-top h1 { position: relative; margin: 2px 0 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.12; color: var(--cream); }
.dash-top h1 em { font-style: italic; color: var(--gold); }
.dash-body { position: relative; margin-top: -28px; }

.next-card { display: flex; align-items: center; gap: 14px; margin: 0 16px 14px; padding: 14px 16px; }
.next-card .date { flex: 0 0 52px; height: 56px; border-radius: 12px; background: var(--ink); color: var(--white); text-align: center; display: flex; flex-direction: column; justify-content: center; line-height: 1.05; }
.next-card .date b { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 22px; }
.next-card .date small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--gold); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px; margin-bottom: 14px; }
.quick a { background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 12px 4px 10px; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.2; }
.quick a i { display: flex; width: 38px; height: 38px; margin: 0 auto 7px; border-radius: 11px; align-items: center; justify-content: center; font-size: 21px; background: var(--gold-soft); color: var(--gold-2); }

/* Fırçalama sayacı (halka) */

/* Tedavi kartları */
.h-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 2px 16px 8px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.t-card { position: relative; display: block; flex: 0 0 132px; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #c9c9c3; scroll-snap-align: start; box-shadow: var(--shadow); }
.t-card img { width: 100%; height: 100%; object-fit: cover; }
.t-card::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(0deg, rgba(31,31,33,.78), rgba(31,31,33,0)); }
.t-card span { position: absolute; z-index: 2; left: 11px; right: 10px; bottom: 10px; color: var(--white); font-weight: 500; font-size: 14px; line-height: 1.2; }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.t-grid .t-card { flex: none; }
.t-grid .t-card span { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 18px; left: 13px; bottom: 12px; }

/* Arama */
.search { display: block; position: relative; margin: 0 16px 14px; }
.search input { width: 100%; border: 0; border-radius: 12px; background: var(--fill); padding: 11px 14px 11px 38px; font-size: 15px; outline: none; -webkit-appearance: none; }
.search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 17px; }

/* Bilgi kartı (SEO metinleri) */
.about-card { overflow: hidden; }
.about-card details { padding: 16px 18px 18px; }
.about-img { display: block; aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-card summary { list-style: none; cursor: pointer; margin-top: 0; font-weight: 500; font-size: 14px; color: var(--gold-2); }
.about-card summary::-webkit-details-marker { display: none; }
.about-card details[open] summary { display: none; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Detay: görsel + alt sayfa (sheet) ---------- */
.d-hero { position: relative; height: 290px; background: var(--ink); overflow: hidden; }
.d-hero img { width: 100%; height: 100%; object-fit: cover; }
.d-hero.portrait img { object-position: center 18%; }
.d-hero .like { position: absolute; z-index: 3; top: auto; right: 16px; bottom: 40px; }
.sheet { position: relative; z-index: 2; margin-top: -26px; background: var(--surface); border-radius: 26px 26px 0 0; padding: 12px 20px 26px; min-height: 50vh; }
.sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--grabber); margin: 0 auto 16px; }
.sheet .m-h1 { font-size: 30px; }
.after-sheet { background: var(--surface); padding-bottom: 10px; }
.page-white .m-shell { background: var(--surface); }

/* Hekim kartları */
.doctor-card { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.doctor-card + .doctor-card { margin-top: 10px; }
.doctor-card .photo { flex: 0 0 82px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--cream); }
.doctor-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-card .info { flex: 1; min-width: 0; }
.doctor-card h2, .doctor-card h3 { margin: 0 0 2px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 18px; line-height: 1.2; }
.doctor-card small { display: block; color: var(--gray-2); font-size: 12.5px; margin-bottom: 10px; }
.doctor-card .actions { display: flex; gap: 8px; }
.doctor-card .actions a { padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; background: var(--fill); }
.doctor-card .actions a.primary { background: var(--ink); color: var(--white); }

/* Makaleler */
.article-card { position: relative; display: block; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.article-card + .article-card { margin-top: 12px; }
.article-card .img { aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.article-card .img img { width: 100%; height: 100%; object-fit: cover; }
.article-card .meta { padding: 12px 16px 14px; }
.article-card .meta h2, .article-card .meta h3 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 18px; line-height: 1.25; }
.article-card .meta small { font-size: 12.5px; color: var(--gray); }
.article-row { display: flex; gap: 12px; align-items: center; }
.article-row .thumb { flex: 0 0 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--cream); }
.article-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.like { position: absolute; z-index: 3; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 20px; border: 0; background: rgba(255,255,255,.94); color: var(--red); font-size: 12.5px; font-weight: 500; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.like img { width: 14px; height: 14px; }
.like.pop img { animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }

/* SSS (gruplu akordeon) */
.acc { background: var(--bg); border-radius: var(--r); overflow: hidden; }
.acc details { position: relative; }
.acc details + details::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; font-weight: 500; line-height: 1.4; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "›"; position: absolute; right: 18px; top: 50%; font-size: 20px; color: var(--gray); transform: translateY(-50%) rotate(90deg); transition: transform .25s var(--ease); }
.acc details[open] summary::after { transform: translateY(-50%) rotate(-90deg); }
.acc .acc-body { padding: 0 16px 14px; }

/* ---------- Formlar ---------- */
.form-group { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.field { position: relative; }
.form-group .field + .field::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; height: .5px; background: var(--line); }
.field > i { position: absolute; left: 16px; top: 15px; font-size: 19px; color: var(--gold-2); pointer-events: none; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-radius: 0; background: transparent; padding: 15px 16px 15px 48px; font-size: 16px; color: var(--text);
  outline: none; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gray) 50%), linear-gradient(135deg, var(--gray) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:disabled { color: var(--gray); }
.field:focus-within { background: var(--gold-soft); }
.alert { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.alert.success { background: rgba(79,138,59,.1); color: #3a6b2b; }
.alert.error { background: rgba(210,73,63,.09); color: #a8352c; }
.alert.info { background: var(--gold-soft); color: #6f5900; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; font-size: 15px; }
.switch { position: relative; flex: 0 0 51px; width: 51px; height: 31px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 31px; background: #E2E2DE; transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .3s var(--ease); }
.switch input:checked + i { background: var(--gold); }
.switch input:checked + i::after { transform: translateX(20px); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--gray-2); line-height: 1.45; margin: 4px 4px 16px; }
.check-row input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--gold); flex: 0 0 auto; }
.check-row a { color: var(--gold-2); text-decoration: underline; }

/* ---------- Giriş ---------- */
.auth { position: relative; min-height: 100vh; min-height: 100dvh; background: var(--ink); color: var(--white); display: flex; flex-direction: column; padding: calc(var(--safe-top) + 40px) 22px calc(var(--safe-bottom) + 18px); max-width: 520px; margin: 0 auto; overflow: hidden; }
.auth::before { content: ""; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 60px; background: var(--gold); opacity: .14; transform: rotate(18deg); }
.auth > * { position: relative; z-index: 1; }
.auth-logo { margin-bottom: 44px; }
.auth-logo img { width: 116px; }
.auth h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0 0 8px; color: var(--cream); }
.auth .lead { color: rgba(255,255,255,.65); margin: 0 0 26px; }
.auth .form-group { background: rgba(255,255,255,.07); box-shadow: none; }
.auth .form-group .field + .field::before { background: rgba(255,255,255,.1); }
.auth .field input { color: var(--white); }
.auth .field input::placeholder { color: rgba(255,255,255,.45); }
.auth .field > i { color: var(--gold); }
.auth .field:focus-within { background: rgba(255,255,255,.05); }
.auth .divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: rgba(255,255,255,.45); margin: 20px 0; }
.auth .divider::before, .auth .divider::after { content: ""; flex: 1; height: .5px; background: rgba(255,255,255,.15); }
.auth-foot { margin-top: auto; padding-top: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(255,255,255,.75); }
.auth-foot a { display: inline-flex; align-items: center; gap: 6px; }
.auth .alert.error { background: rgba(210,73,63,.2); color: #ffd3cf; }
.auth .alert.success { background: rgba(79,138,59,.25); color: #dcefd3; }
.auth .alert.info { background: rgba(221,177,0,.14); color: #fff0b3; }

/* ---------- Profil ---------- */
.profile-card { display: flex; align-items: center; gap: 14px; margin: 4px 16px 16px; padding: 16px; }
.avatar-box { position: relative; flex: 0 0 auto; }
.avatar-box label { display: block; width: 64px; height: 64px; border-radius: 50%; background: var(--cream) center/cover no-repeat; cursor: pointer; position: relative; }
.avatar-box label.no-photo::before { content: "\E834"; font-family: "fontello"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold-2); font-size: 22px; }
.avatar-box label::after { content: "+"; position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--white); font-size: 15px; line-height: 21px; text-align: center; box-shadow: 0 0 0 2px var(--white); }
.avatar-box input { display: none; }
.profile-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 21px; line-height: 1.15; }
.profile-name small { display: block; font-family: var(--font); font-size: 13px; color: var(--gray-2); margin-top: 3px; }
.segmented { display: flex; margin: 0 16px 16px; padding: 3px; border-radius: 12px; background: var(--fill); }
.segmented a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--gray-2); transition: background .2s; }
.segmented a.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px 16px; }
.stat { padding: 14px 16px; }
.stat small { display: block; font-size: 12.5px; color: var(--gray-2); }
.stat b { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 22px; line-height: 1.3; }
.stat.dark { background: var(--ink); color: var(--white); grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.stat.dark small { color: rgba(255,255,255,.65); }
.stat.dark b { color: var(--gold); font-size: 26px; }
.amount { font-weight: 500; white-space: nowrap; }
.amount.plus { color: var(--green); }

/* ---------- Randevu ---------- */
.docs { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 14px; scrollbar-width: none; }
.docs::-webkit-scrollbar { display: none; }
.doc-pick { flex: 0 0 auto; width: 76px; text-align: center; cursor: pointer; font-size: 12.5px; line-height: 1.25; color: var(--gray-2); }
.doc-pick input { display: none; }
.doc-pick .ph { display: block; width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px transparent; transition: box-shadow .2s; }
.doc-pick .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doc-pick:has(input:checked) { color: var(--text); font-weight: 500; }
.doc-pick:has(input:checked) .ph { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--gold); }
.days-card { margin: 0 16px 14px; padding: 6px; }
.days { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 52px; border: 0; background: transparent; border-radius: 12px; padding: 8px 0; text-align: center; cursor: pointer; color: var(--text); }
.day small { display: block; font-size: 11px; color: var(--gray); }
.day b { display: block; font-weight: 500; font-size: 18px; line-height: 1.3; }
.day.off { opacity: .3; pointer-events: none; }
.day.active { background: var(--ink); color: var(--white); }
.day.active small { color: var(--gold); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.slot { border: 0; border-radius: 12px; padding: 12px 0; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; box-shadow: var(--shadow); transition: transform .15s var(--ease); }
.slot:active { transform: scale(.96); }
.slot[disabled] { background: transparent; box-shadow: none; color: #C3C3C0; text-decoration: line-through; font-weight: 400; cursor: default; }
.slot.active { background: var(--gold); color: var(--white); }
.slots-empty { padding: 16px 4px; color: var(--gray); text-align: center; }
.skeleton { height: 46px; border-radius: 12px; background: linear-gradient(90deg, #e9e9e5 25%, #f4f4f1 50%, #e9e9e5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.success-mark { width: 74px; height: 74px; margin: 6px auto 16px; border-radius: 50%; background: rgba(79,138,59,.12); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 34px; animation: pop .5s var(--ease); }
.success-mark.pending { background: var(--gold-soft); color: var(--gold-2); }
.success-mark.cancelled { background: rgba(210,73,63,.1); color: var(--red); }

/* Bildirimler */
.notif { display: flex; gap: 12px; align-items: flex-start; }
.notif .n-body b { display: block; font-weight: 500; line-height: 1.35; }
.notif .n-body p { margin: 3px 0 0; color: var(--gray-2); line-height: 1.45; font-size: 14px; }
.notif .n-body small { display: block; margin-top: 4px; }
.notif.read b { font-weight: 400; color: var(--gray-2); }
.notif form button { border: 0; background: none; color: #C2C2C4; font-size: 18px; padding: 0; cursor: pointer; }

.empty { text-align: center; padding: 40px 30px; color: var(--gray-2); }
.empty i { display: flex; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; align-items: center; justify-content: center; font-size: 30px; background: var(--gold-soft); color: var(--gold-2); }

.map { height: 220px; border: 0; width: 100%; display: block; border-radius: var(--r); }
.block-img { margin: 0 0 16px; border-radius: var(--r); overflow: hidden; }
.block-img img { width: 100%; height: auto; display: block; }

/* Toast */
.toast { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); top: calc(var(--safe-top) + 60px); max-width: calc(100% - 32px); background: var(--dark-2); color: var(--white); padding: 11px 18px; border-radius: 22px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: opacity .3s, transform .3s var(--ease); }
.toast.hide { opacity: 0; transform: translate(-50%, -10px); pointer-events: none; }

.offline { position: fixed; z-index: 130; left: 0; right: 0; top: calc(var(--safe-top)); background: var(--red); color: var(--white); text-align: center; font-size: 12px; padding: 4px; display: none; }
body.is-offline .offline { display: block; }
.preview-bar { position: fixed; z-index: 200; left: 0; right: 0; top: 0; background: var(--gold); color: #191919; font-size: 12px; text-align: center; padding: 3px; }

/* Görününce beliren içerik */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}
.about-card summary .m-prose { font-weight: 400; color: var(--gray-2); margin-bottom: 6px; }

/* ---------- Diş şeması (FDI) ---------- */
/* Diş şeması (ga/dental-chart.svg): dokununca büyür, yana kaydırılır */
.tooth-chart { position: relative; user-select: none; -webkit-user-select: none; margin: 0 -6px; }
.tc-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 10px; cursor: zoom-in; }
.tc-scroll::-webkit-scrollbar { display: none; }
.tc-scroll svg { display: block; width: 100%; height: auto; transition: width .45s var(--ease); }
.tooth-chart.zoomed .tc-scroll { cursor: zoom-out; }
.tooth-chart.zoomed .tc-scroll svg { width: 260%; }
.tc-tooth { fill: var(--tooth); transition: fill .3s; }
.tc-tooth.on { fill: var(--gold-2); }
.tc-detail { fill: var(--tooth-detail); }
.tc-bars { fill: var(--gold); opacity: .55; }
.tc-hl { fill: var(--gold-soft); stroke: rgba(221,177,0,.35); stroke-width: 3; }
.tc-zoom { position: absolute; right: 8px; bottom: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.15); font-size: 16px; line-height: 1; cursor: pointer; }
.tc-teeth { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tc-teeth span { padding: 3px 9px; border-radius: 8px; background: var(--gold-soft); color: var(--gold-2); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--gray-2); }
.chips-row i { color: var(--gold-2); margin-right: 3px; }

/* Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 51px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tl-date { flex: 0 0 44px; text-align: right; font-weight: 500; font-size: 13px; line-height: 1.2; padding-top: 1px; }
.timeline .tl-date small { display: block; font-weight: 400; font-size: 11px; color: var(--gray); }
.timeline .tl-body { position: relative; flex: 1; padding-left: 16px; }
.timeline .tl-body::before { content: ""; position: absolute; left: -2px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--surface); }
.timeline .tl-body b { display: block; font-weight: 500; line-height: 1.35; }
.timeline .tl-body small { display: block; font-size: 12px; color: var(--gray); margin-top: 1px; }
.timeline .tl-body p { margin: 6px 0 0; font-size: 13.5px; color: var(--gray-2); line-height: 1.5; }

/* Filmler */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 14px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips a { flex: 0 0 auto; padding: 7px 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 500; color: var(--gray-2); }
.filter-chips a.active { background: var(--ink); color: var(--white); }
.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.file-tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: var(--r-sm); overflow: hidden; background: #1d1d1f; cursor: zoom-in; box-shadow: var(--shadow); text-align: left; }
.file-tile img { width: 100%; height: 100%; object-fit: cover; }
.file-tile .ft-label { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: 11px; font-weight: 500; color: var(--white); background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-tile.doc { background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.file-tile.doc i { font-size: 26px; color: var(--gold-2); }
.file-tile.doc b { font-weight: 500; font-size: 14px; line-height: 1.3; }
.file-tile.doc .ft-label { position: static; background: none; color: var(--gray); padding: 0; margin-top: auto; }

/* Görüntüleyici */
.viewer { position: fixed; z-index: 150; inset: 0; background: #000; display: flex; flex-direction: column; animation: fadein .2s; }
.viewer[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.viewer-top { display: flex; align-items: center; gap: 8px; padding: calc(var(--safe-top) + 6px) 6px 6px; color: var(--white); z-index: 2; }
.viewer-top .m-icon-btn { color: var(--white); }
.viewer-title { flex: 1; min-width: 0; text-align: center; line-height: 1.25; }
.viewer-title b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title small { font-size: 12px; color: rgba(255,255,255,.6); }
.viewer-stage { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; }
.viewer-stage img { max-width: 100%; max-height: 100%; transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; }
.viewer-notes { margin: 0; padding: 12px 18px calc(var(--safe-bottom) + 14px); color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.5; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.4)); }


/* ==========================================================================
   v4 – Hasta bakımı, fırçalama modu, GSAP uyumu
   ========================================================================== */
.has-gsap .rv, .has-gsap .tap { transition: none; }
.has-gsap .tap:active { transform: none; opacity: 1; }
.sec-title { margin: 6px 20px 10px; }
.seg-count { margin-left: 4px; padding: 1px 7px; }
.segmented a { white-space: nowrap; }
.ico.gold-soft { background: var(--gold-soft); color: var(--gold-2); }

/* Giriş ekranı kapat / geri */
.auth-close-form { position: absolute !important; top: calc(var(--safe-top) + 10px); right: 12px; z-index: 3 !important; margin: 0; }
.auth-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
a.auth-close.back { position: absolute; top: calc(var(--safe-top) + 10px); left: 12px; z-index: 3; font-size: 22px; }
.auth-close:active { background: rgba(255,255,255,.22); }

/* Bugün kartları (ana sayfa) */
.today-cards { display: grid; gap: 10px; margin: 0 16px 14px; }
.today-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.today-card .grow { flex: 1; min-width: 0; }
.today-card b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-card .m-eyebrow { display: block; margin-bottom: 1px; }
.mini-stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

/* İlaçlar */
.med-card + .med-card { margin-top: 12px; }
.med-head { display: flex; align-items: center; gap: 12px; }
.med-head .grow { flex: 1; min-width: 0; }
.med-head b { display: block; font-weight: 600; font-size: 16px; }
.med-head form { margin: 0; }
.bell-toggle { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fill); color: var(--gray); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bell-toggle.on { background: var(--gold); color: var(--white); }
.dose-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.dose { padding: 6px 12px; border-radius: 10px; background: var(--bg); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.dose.past { color: var(--gray); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.dose.next { background: var(--ink); color: var(--white); }
.med-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--gray-2); margin-bottom: 6px; }
.bar { height: 5px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }

/* Bakım rehberi */
.care-summary { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-soft); box-shadow: none; }
.care-summary i { font-size: 20px; color: var(--gold-2); }
.care-summary p { margin: 0; font-size: 15px; }
.care-steps li.done .tl-body::before { background: var(--green); }
.care-steps li.next .tl-body::before { background: var(--surface); box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px var(--surface); }
.care-steps li.today .tl-body::before { box-shadow: 0 0 0 4px rgba(221,177,0,.25); }
.care-steps li.next .tl-body b { color: var(--gray-2); }
.care-steps .tl-date { flex-basis: 60px; }
.care-steps li::before { left: 67px; }
.care-steps .badge { margin-left: 6px; vertical-align: 1px; }
.care-body h3 { font-size: 16px; margin: 14px 0 6px; }
.care-body h3:first-child { margin-top: 0; }

/* Memnuniyet anketi */
.feedback-form textarea { width: 100%; min-height: 96px; border: 0; border-radius: 12px; background: var(--bg); padding: 12px 14px; margin: 6px 0 14px; resize: vertical; }
.stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; border: 0; margin: 10px 0 0; padding: 0; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 44px; line-height: 1; color: var(--star-off); cursor: pointer; transition: color .15s; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.star-label { text-align: center; font-weight: 600; color: var(--gold-2); min-height: 24px; margin: 6px 0 4px; }
.feedback-done { text-align: center; }
.stars-static { font-size: 34px; color: var(--gold); letter-spacing: 3px; margin-bottom: 10px; }
.stars-static span { color: var(--star-off); }
.feedback-done .btn { margin-top: 6px; }

/* Fırçalama kartı */
.timer { display: flex; align-items: center; gap: 10px; margin: 0 16px 22px; padding: 12px 12px 12px 14px; border-radius: var(--r); background: var(--gold); color: var(--white); box-shadow: 0 10px 26px -10px rgba(221,177,0,.65); transition: background .4s; }
.timer-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; border: 0; padding: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.timer .ring { position: relative; flex: 0 0 60px; width: 60px; height: 60px; }
.timer .ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.timer .ring circle { fill: none; stroke-width: 5; }
.timer .ring .bg { stroke: rgba(255,255,255,.3); }
.timer .ring .fg { stroke: var(--white); stroke-linecap: round; }
.timer .ring > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.timer .t-info { flex: 1; min-width: 0; }
.timer .t-info b { display: block; font-weight: 600; font-size: 16px; }
.timer .t-info small { display: block; font-size: 12.5px; opacity: .92; min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-dots { display: flex; gap: 4px; margin-top: 5px; }
.week-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); }
.week-dots i.half { background: linear-gradient(90deg, #fff 50%, rgba(255,255,255,.35) 50%); }
.week-dots i.full { background: #fff; }
.play-btn { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--white); color: var(--gold-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,.25); }
.play-btn svg, .ctl.main svg { width: 24px; height: 24px; fill: currentColor; }
.play-btn .i-pause, .ctl.main .i-pause, [data-brush-play].playing .i-play { display: none; }
[data-brush-play].playing .i-pause { display: block; }
.play-btn .i-play { margin-left: 3px; }
.play-btn.playing .i-play { margin: 0; }
.timer.running .play-btn { animation: pulse 1.6s ease-in-out infinite; }
.timer.done { background: var(--green); box-shadow: 0 10px 26px -10px rgba(79,138,59,.6); }
.timer.done .play-btn { color: var(--green); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }

/* Tam ekran fırçalama modu */
.brush { position: fixed; inset: 0; z-index: 120; overflow-y: auto; background: radial-gradient(120% 70% at 50% 0%, #4d4d50 0%, var(--dark-2) 60%); color: var(--white); padding: calc(var(--safe-top) + 6px) 0 calc(var(--safe-bottom) + 24px); max-width: 520px; margin: 0 auto; overscroll-behavior: contain; }
.brush[hidden] { display: none; }
.brush-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; height: var(--header-h); }
.brush-top b { font-weight: 600; font-size: 16px; }
.brush .m-icon-btn { color: var(--white); }
.brush .sound svg { width: 22px; height: 22px; fill: currentColor; }
.brush .sound .i-off, .brush .sound.off .i-on { display: none; }
.brush .sound.off .i-off { display: block; }
.brush-stage { text-align: center; padding: 10px 0 0; }
.big-ring { position: relative; width: min(72vw, 270px); aspect-ratio: 1; margin: 0 auto; }
.big-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.big-ring circle { fill: none; stroke-width: 12; }
.big-ring .bg { stroke: rgba(255,255,255,.1); }
.big-ring .fg { stroke: var(--gold); stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(221,177,0,.45)); }
.big-ring .tick { stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-linecap: round; }
.brush.done .big-ring .fg { stroke: #7DBE5F; filter: drop-shadow(0 0 12px rgba(125,190,95,.5)); }
.big-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.big-time { font-family: var(--font-display); font-weight: 300; font-size: clamp(46px, 15vw, 60px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mouth { width: 50%; height: auto; margin-bottom: 6px; }
.mouth .q { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.25); stroke-width: 1; transition: fill .3s; }
.mouth .q.past { fill: rgba(125,190,95,.55); }
.mouth .q.on { fill: var(--gold); stroke: #fff; }
.brush-hint { min-height: 26px; margin: 18px 24px 0; font-size: 18px; font-weight: 600; color: var(--cream); }
.brush-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 20px 28px 10px; }
.ctl { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--white); cursor: pointer; }
.ctl svg { width: 26px; height: 26px; }
.ctl small { font-size: 11.5px; opacity: .7; }
.ctl.main { width: 82px; height: 82px; border-radius: 50%; background: var(--gold); color: var(--dark-2); justify-content: center; box-shadow: 0 12px 30px -8px rgba(221,177,0,.6); }
.ctl.main svg { width: 34px; height: 34px; }
.ctl.main .i-play { margin-left: 4px; }
.ctl.main.playing .i-play { margin: 0; }
.ctl.streak b { font-size: 26px; font-weight: 600; line-height: 1; color: var(--gold); }
.brush-week { margin: 18px 16px 0; padding: 16px; border-radius: var(--r); background: rgba(255,255,255,.06); }
.bw-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.7); }
.bw-head b { color: var(--white); font-size: 14px; font-weight: 600; }
.bw-head .dot { margin: 0 3px 0 8px; }
.bw-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.bw-day { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0; border-radius: 12px; }
.bw-day.today { background: rgba(255,255,255,.08); }
.bw-day small { font-size: 11px; opacity: .7; }
.brush .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.brush .dot.m.on, .bw-head .dot.m { background: var(--gold); }
.brush .dot.e.on, .bw-head .dot.e { background: #8FB8E8; }
.brush-tip { display: flex; gap: 8px; margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.7); }
.brush-tip i { color: var(--gold); }
.spark { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 2px; pointer-events: none; }
body.brush-open .m-tabbar, body.brush-open .m-header { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .timer.running .play-btn { animation: none; } }

/* Görünüm seçici (menü) */
.theme-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 12px 10px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.ts-label { font-weight: 500; font-size: 14px; }
.ts-options { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--fill); }
.ts-options button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--gray-2); cursor: pointer; }
.ts-options button svg { width: 15px; height: 15px; fill: currentColor; }
.ts-options button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ts-options button[aria-checked="true"] svg { color: var(--gold); }

/* Girişsiz kullanıcı: kilitli önizleme */
.locked-preview { opacity: .55; filter: grayscale(.4) blur(.6px); pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.ghost-line { display: block; height: 10px; border-radius: 6px; background: var(--fill); margin: 4px 0; }
.ghost-line.sm { height: 8px; opacity: .7; }
.locked-card { position: relative; margin: -70px 16px 22px; text-align: center; padding: 24px 20px 20px; }
.locked-card .lock { display: inline-flex; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 18px; align-items: center; justify-content: center; font-size: 26px; background: var(--gold-soft); color: var(--gold-2); }
.locked-card .m-h2 { margin-bottom: 6px; }
.locked-card .m-muted { margin: 0 0 16px; font-size: 14.5px; }

/* Koyu modda küçük düzeltmeler */
:root[data-theme="dark"] .like { background: rgba(28,28,30,.9); color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .like { background: rgba(28,28,30,.9); color: var(--text); } }

/* Sosyal medya: modern kartlar */
.social-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.social-cards.one { grid-template-columns: 1fr; }
.sc { position: relative; display: flex; align-items: center; gap: 9px; padding: 12px 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; color: var(--text); }
.sc::before { content: ""; position: absolute; z-index: -1; right: -30px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; background: var(--sc-grad); opacity: .14; filter: blur(6px); }
.sc-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--sc-grad); box-shadow: 0 6px 14px -6px var(--sc-shadow); }
.sc-ico svg { width: 20px; height: 20px; fill: currentColor; }
.sc-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sc-text b { font-weight: 600; font-size: 14.5px; }
.sc-text small { font-size: 11.5px; letter-spacing: -.01em; color: var(--gray-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.sc-go { position: absolute; top: 6px; right: 9px; font-size: 13px; color: var(--gray); }
.s-instagram { --sc-grad: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); --sc-shadow: rgba(214,36,159,.6); }
.s-facebook { --sc-grad: linear-gradient(160deg, #3b8bff, #1260d6); --sc-shadow: rgba(24,119,242,.6); }
.s-tiktok { --sc-grad: linear-gradient(135deg, #25F4EE -20%, #111 45%, #111 60%, #FE2C55 130%); --sc-shadow: rgba(0,0,0,.5); }
.s-youtube { --sc-grad: linear-gradient(160deg, #ff4b4b, #d60000); --sc-shadow: rgba(255,0,0,.5); }
.s-x { --sc-grad: linear-gradient(160deg, #333, #000); --sc-shadow: rgba(0,0,0,.5); }
.s-linkedin { --sc-grad: linear-gradient(160deg, #2a85e4, #0A66C2); --sc-shadow: rgba(10,102,194,.55); }
.social-ico { color: #fff; background: var(--sc-grad); }
.social-ico svg { width: 19px; height: 19px; fill: currentColor; }

/* Video & görsel galerisi */
.m-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-gallery > :first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.block-intro { margin: 0 0 12px; font-size: 14.5px; }
.m-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-videos .ga-media { aspect-ratio: 16 / 9; }
.m-videos .ga-media:first-child { grid-column: 1 / -1; }
.room-card { position: relative; overflow: hidden; }
.room-card + .room-card { margin-top: 14px; }
.room-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.room-photos::-webkit-scrollbar { display: none; }
.room-photos .ga-media { flex: 0 0 100%; aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; scroll-snap-align: start; }
.room-photos .ga-media figcaption { display: none; }
.room-count { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 9px; border-radius: 20px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.room-body { padding: 14px 18px 16px; }
.room-body h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.room-body .m-prose { font-size: 14.5px; }
.room-tags { margin-top: 10px; }
.ga-media { position: relative; display: block; margin: 0; border: 0; padding: 0; width: 100%; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--cream); color: #fff; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.ga-media img { width: 100%; height: 100%; object-fit: cover; }
.ga-media.no-img { background: var(--ink); display: flex; align-items: center; justify-content: center; }
.ga-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12.5px; font-weight: 500; line-height: 1.3; background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,0)); }
.ga-media .play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 50%; background: rgba(221,177,0,.95); box-shadow: 0 6px 18px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.ga-media .play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.ga-media .ext { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); color: #454547; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.media-sheet { position: fixed; inset: 0; z-index: 140; background: rgba(8,8,10,.94); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--safe-top) + 56px) 0 calc(var(--safe-bottom) + 24px); }
.media-sheet .ms-close { position: absolute; top: calc(var(--safe-top) + 8px); right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 17px; cursor: pointer; }
.media-sheet img, .media-sheet video { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.media-sheet iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.media-sheet p { color: rgba(255,255,255,.85); text-align: center; margin: 12px 20px 0; font-size: 14px; }
.room-tags span { padding: 4px 10px; border-radius: 20px; background: var(--gold-soft); color: var(--gold-2); font-weight: 500; }
.ig-card { display: block; overflow: hidden; }
.ig-card img { display: block; width: 100%; height: auto; object-fit: cover; }
.ig-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14.5px; line-height: 1.35; }
.ig-foot small { display: block; color: var(--gray-2); font-size: 12.5px; }

/* Ödemeler: çok para birimli bakiye */
.balance-card { padding: 18px 18px 16px; background: var(--ink); color: #fff; }
.balance-card > small { display: block; font-size: 13px; opacity: .7; }
.balance-card > b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.02em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.fx-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-row span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-row em { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--dark); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.bal-meta { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 10px; font-size: 12.5px; opacity: .85; }
.bal-meta b { display: block; font-size: 15px; font-weight: 600; opacity: 1; margin-top: 2px; }
.balance-card .bar { background: rgba(255,255,255,.14); }
.fx-note { margin: 10px 4px 0; font-size: 12px; color: var(--gray-2); line-height: 1.45; }
.fx-line { color: var(--gold-2) !important; }

/* ==========================================================================
   Masaüstü hasta paneli (body.desk): üst menü + yan menü + geniş içerik
   ========================================================================== */
body.m.desk { background: var(--bg); }
.desk .m-header, .desk .m-tabbar, .desk .m-menu, .desk .m-menu-backdrop, .desk [data-install] { display: none !important; }
.d-top { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.d-top-in { max-width: 1680px; margin: 0 auto; height: 72px; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.d-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; flex: 0 0 auto; }
.d-logo img { height: 30px; }
.d-nav { display: flex; gap: 22px; min-width: 0; white-space: nowrap; }
.d-nav a { font-size: 15px; color: var(--gray-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.d-nav a:hover { color: var(--text); border-bottom-color: var(--gold); }
.d-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 0 0 auto; white-space: nowrap; }
.d-actions .btn.inline { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.d-actions .btn i { margin-right: 6px; }
.d-icon { position: relative; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; background: var(--fill); }
.d-icon .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.d-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 22px; background: var(--fill); font-weight: 500; font-size: 14px; }
.d-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink) center/cover no-repeat; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex: 0 0 auto; }
.d-avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.d-actions .lang-switch a { padding: 5px 9px; }

.desk .m-shell { max-width: 1680px; min-height: calc(100vh - 72px); padding: 32px 28px 60px; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 36px; align-items: start; background: transparent; overflow: visible; }
.desk .m-shell.has-cta, .desk .m-shell.no-tabbar { padding-bottom: 60px; }
.desk main#content { min-width: 0; max-width: none; }
.d-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 14px; }
.d-side-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.d-side-card b { display: block; font-weight: 600; }
.d-side-card small { display: block; font-size: 12.5px; color: var(--gray-2); line-height: 1.4; }
.d-side-card .btn { width: 100%; }
.d-side-nav { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.d-side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; color: var(--gray-2); transition: background .15s, color .15s; }
.d-side-nav a i { font-size: 20px; color: var(--gray); width: 22px; text-align: center; }
.d-side-nav a:hover { background: var(--fill); color: var(--text); }
.d-side-nav a.active { background: var(--ink); color: #fff; }
.d-side-nav a.active i { color: var(--gold); }
.d-side-nav em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.d-logout { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 0; border-radius: var(--r); background: transparent; color: var(--red); font-size: 14.5px; cursor: pointer; }
.d-logout:hover { background: rgba(210,73,63,.08); }
.d-side .social-cards { grid-template-columns: 1fr; margin: 0; }

/* İçerik: kenar boşlukları ve geniş ekran düzenleri */
.desk .section, .desk .large-title, .desk .segmented, .desk .stats, .desk .sec-title, .desk .today-cards { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.desk .large-title { padding-top: 0; }
.desk .large-title h1 { font-size: 40px; }
.desk .m-h3[style*="margin-left"] { margin-left: 0 !important; }
.desk .segmented { max-width: none; }
.desk .stats { grid-template-columns: repeat(3, 1fr); }
.desk .stats .stat.dark { grid-column: auto; }
.desk .file-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.desk .m-gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* Geniş ekranda kartlar yan yana: tedavi listesi, ilaçlar, bakım, randevular */
.desk .section:has(> a.card.card-pad) { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.desk .section:has(> a.card.card-pad) > .card + .card { margin-top: 0; }
.desk .section:has(> .med-card) { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important; }
.desk .group.m-list { columns: 1; }
.desk .balance-card { display: grid; grid-template-columns: auto 1fr; column-gap: 32px; align-items: center; }
.desk .balance-card > small, .desk .balance-card > b { grid-column: 1; }
.desk .balance-card .fx-row { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
.desk .balance-card .bal-meta, .desk .balance-card .bar { grid-column: 1 / -1; }
.desk .med-card + .med-card { margin-top: 0; }
.desk .section:has(> .med-card) { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.desk .m-cta { position: static; padding: 0; margin-top: 8px; background: none; max-width: 420px; }
.desk .balance-card { max-width: none; }
.desk .toast { top: 90px; }
.desk .empty { padding-top: 60px; }
.desk .locked-card { max-width: 520px; margin-left: 0; }
.desk .locked-preview { max-width: none; }
.desk .tooth-chart { max-width: 1100px; }
.desk .tc-scroll { cursor: default; }
.desk .viewer, .desk .media-sheet { max-width: none; }

/* Girişsiz ekranlar (giriş, şifre) masaüstünde ortada kart */
body.m.desk:has(.auth) { background: radial-gradient(120% 120% at 80% 0%, #5a5a5d 0%, #2f2f31 70%); }
.desk .auth { min-height: auto; max-width: 460px; margin: 7vh auto; border-radius: 28px; padding: 44px 40px 32px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.desk .auth-close-form, .desk a.auth-close.back { top: 18px; }

@media (max-width: 1280px) {
  .d-nav { gap: 16px; }
  .d-nav a { font-size: 14px; }
}
@media (max-width: 1180px) {
  .d-nav { display: none; }
}
@media (max-width: 600px) {
  .d-logo span, .d-user span:last-child, .d-actions .lang-switch { display: none; }
  .d-top-in { padding: 0 16px; gap: 12px; }
}
@media (max-width: 860px) {
  .desk .m-shell { grid-template-columns: 1fr; padding: 20px 18px 50px; gap: 18px; }
  .d-side { position: static; }
  .d-side-nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .d-side-nav a { white-space: nowrap; }
  .d-side .social-cards, .d-side .d-side-card { display: none; }
  .desk .file-grid { grid-template-columns: repeat(3, 1fr); }
  .desk .section:has(> .med-card) { grid-template-columns: 1fr; }
}
.paid-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 10px; font-size: 12.5px; opacity: .85; }
.paid-by span { padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.12); font-weight: 600; font-variant-numeric: tabular-nums; }
.cur-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-2); font-size: 11px; font-weight: 600; vertical-align: 2px; }
.desk.page-payments .profile-card { display: none; }
.desk .profile-card { margin-left: 0; margin-right: 0; }

/* Detaylı hesap özeti ve döküm */
.ledger-table-wrap { padding: 6px 4px 10px; overflow-x: auto; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ledger-table th, .ledger-table td { padding: 9px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ledger-table thead th { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--gray-2); }
.ledger-table tbody th { text-align: left; font-weight: 500; color: var(--gray-2); white-space: normal; }
.ledger-table .col-acc { font-weight: 700; color: var(--text); }
.ledger-table thead .col-acc { color: var(--text); }
.ledger-table tr.minus td { color: var(--green); }
.ledger-table tr.strong th, .ledger-table tr.strong td { font-weight: 600; color: var(--text); }
.ledger-table tr.total th, .ledger-table tr.total td { border-bottom: 0; font-weight: 700; font-size: 15px; color: var(--text); }
.paid-by-line { margin: 8px 10px 0; font-size: 12.5px; color: var(--gray-2); }
.paid-by-line b { margin-left: 8px; color: var(--text); font-weight: 600; }
.statement { display: flex; flex-direction: column; gap: 8px; }
.st-row { background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.st-row summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.st-row summary::-webkit-details-marker { display: none; }
.st-main { flex: 1; min-width: 0; }
.st-main b { display: block; font-weight: 600; font-size: 14.5px; }
.st-main small { display: block; font-size: 12px; color: var(--gray-2); margin-top: 2px; }
.st-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-amt small { display: block; font-weight: 400; font-size: 11.5px; color: var(--gray); margin-top: 2px; }
.st-amt.payment { color: var(--green); }
.st-amt.discount { color: var(--gold-2); }
.st-detail { padding: 0 14px 12px 60px; }
.st-fx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-fx span { padding: 7px 9px; border-radius: 10px; background: var(--fill); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-fx span.col-acc { font-weight: 700; }
.st-fx small { display: block; font-size: 10.5px; font-weight: 500; color: var(--gray-2); }
.st-detail p { margin: 8px 0 0; font-size: 12px; color: var(--gray-2); }
.st-row[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.desk .ledger-table { font-size: 14.5px; }
.desk .statement .st-detail { padding-left: 60px; }
@media (max-width: 380px) { .st-detail { padding-left: 14px; } }

/* Masaüstü: tüm içerik aynı sol kenar ve aynı üst hizada (kayma olmasın) */
.desk main#content > :first-child, .desk main#content > .toast + * { margin-top: 0; }
.desk .m-pad { padding-left: 0; padding-right: 0; }
.desk .profile-card { margin: 0 0 16px; }
.desk .form-group, .desk .m-pad .form-group { margin-left: 0; margin-right: 0; }
.desk .m-h3, .desk .m-pad .m-h3, .desk .sec-title { margin-left: 0 !important; margin-right: 0; padding-left: 0; }
.desk .m-pad > .m-h3:first-child { margin-top: 6px; }
.desk .group, .desk .card, .desk .segmented { margin-left: 0; margin-right: 0; }
.desk .d-side-card { min-height: 84px; }
.desk .profile-card { min-height: 84px; }

/* Dar ekranda özet tablo: satır başlığı üstte, üç para birimi yan yana (yatay kaydırma yok) */
@media (max-width: 600px) {
  .ledger-table-wrap { overflow: visible; padding: 4px 0 10px; }
  .ledger-table, .ledger-table tbody { display: block; }
  .ledger-table thead { display: none; }
  .ledger-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .ledger-table tr:last-child { border-bottom: 0; }
  .ledger-table tbody th { grid-column: 1 / -1; padding: 0 0 2px; border: 0; font-size: 12.5px; }
  .ledger-table td { padding: 6px 8px; border: 0; border-radius: 10px !important; text-align: left; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  .ledger-table td::before { content: attr(data-cur); display: block; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--gray-2); }
  .ledger-table tr.total td { font-size: 14px; }
}

/* Kliniğimiz şeridi (başlıksız, kaydırmalı) */
.clinic-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.clinic-strip::-webkit-scrollbar { display: none; }
.clinic-tile { position: relative; flex: 0 0 82%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--cream); scroll-snap-align: start; box-shadow: var(--shadow); cursor: pointer; }
.clinic-tile img { width: 100%; height: 100%; object-fit: cover; }
.clinic-tile .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; background: rgba(221,177,0,.95); box-shadow: 0 8px 22px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.clinic-tile .play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.desk .clinic-tile { flex-basis: 40%; }
.sheet .clinic-strip { margin: 0 -20px; padding: 2px 20px 6px; scroll-padding: 0 20px; }
