@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   Healthperia — International Healthcare Library
   Premium dark-blue corporate design
   ============================================================ */

:root {
  --navy-950: #050b1a;
  --navy-900: #0a1530;
  --navy-850: #0c1937;
  --navy-800: #0e1d44;
  --navy-700: #142a5e;
  --navy-600: #1c3a7a;
  --accent: #4ea8ff;
  --accent-soft: #7dc1ff;
  --accent-glow: rgba(78, 168, 255, 0.45);
  --brand-red: #ff1e1e;
  --hero-gray: #e3e6ee; /* subtle, premium light gray for the hero title */
  --white: #ffffff;
  --text: #eef3ff;
  --text-muted: #aebbd6;
  --text-dim: #7d8bab;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.06);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 22px 60px rgba(0, 0, 0, 0.5);
  --max-w: 1240px;
  --font-sans:
    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    'Helvetica Neue', sans-serif;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  margin: 0;
  padding: 0;
  border: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* yatay taşmayı keser ama scroll-container oluşturmaz → sticky çalışır */
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul {
  list-style: none;
}
button {
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   HEADER — transparent, NOT sticky (lives inside hero, scrolls away)
   ============================================================ */
.site-header {
  position: absolute;
  top: -20px; /* header sits at the very top edge */
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0;
  background: transparent;
  pointer-events: none; /* allow video below to receive, but children re-enable */
}
.site-header > * {
  pointer-events: auto;
}

.header-inner {
  width: 100%;
  max-width: none; /* full width on every resolution → logo/nav stay edge-anchored */
  margin: 0;
  padding: 0 44px 0 28px; /* fixed edge padding: identical logo position on 4K / 2K / HD */
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  margin-right: auto; /* pin to far left, push nav rightward */
}
.logo {
  height: 260px; /* ~2.5× the previous size */
  width: auto;
  margin: -70px -12px -70px -12px; /* absorb PNG whitespace; keep header height sane */
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.55));
  transition: transform 0.25s ease;
  /* hit area = the logo-link box only (~visible logo), NOT the tall transparent
     PNG bleed — fixes clicking "around" the logo triggering navigation */
  pointer-events: none;
}
.logo-link:hover .logo {
  transform: scale(1.02);
}

.main-nav {
  display: block;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* nav links — premium white with smooth white underline (open from center) */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--white);
  border-radius: 8px;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: calc(100% - 24px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  border-radius: 2px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 14px rgba(78, 168, 255, 0.55);
}
.nav-link:hover {
  color: var(--white);
  transform: translateY(-2px);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}
.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* My Account — blue CTA pill with glow */
.nav-cta {
  margin-left: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ea8ff 0%, #2f86e6 100%);
  color: var(--white) !important;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(47, 134, 230, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease;
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(78, 168, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* signed-in state: person glyph + user name, clamped so any length stays contained */
.nav-cta.is-authed {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 13px;
  max-width: 230px;
}
.nav-cta.is-authed .nav-cta-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
}
.nav-cta.is-authed .nav-cta-ic svg {
  width: 14px;
  height: 14px;
}
.nav-cta.is-authed .nav-cta-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

/* ============================================================
   LANGUAGE SWITCHER (at far right)
   ============================================================ */
/* Dil değişiminde metin takası ANINDA olur (sayfa kararmaz, gecikme YOK); sadece değişen
   metne minik bir fade-in → harfler "pat" diye değil yumuşacık yerine oturur. */
@keyframes hpI18nIn {
  from {
    opacity: 0.72;
  }
  to {
    opacity: 1;
  }
}
.i18n-in {
  animation: hpI18nIn 0.19s ease-out;
}

.lang-switch {
  position: relative;
  margin-left: 6px; /* small premium gap after the nav */
  flex-shrink: 0;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}
.lang-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(255, 255, 255, 0.18);
}
.lang-name {
  font-size: 12.5px;
  line-height: 1;
}
.lang-caret {
  width: 10px;
  height: 10px;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease;
}
.lang-switch.open .lang-caret {
  transform: rotate(180deg);
}

/* ---- circular CSS flags (cross-platform safe) ---- */
.flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background-color: #999;
}
/* UK — proper Union Jack via inline SVG */
.flag-en {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><clipPath id='t'><path d='M30,15 h30 v15 z v-15 h-30 z h-30 v-15 z v15 h30 z'/></clipPath><path d='M0,0 v30 h60 v-30 z' fill='%23012169'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23ffffff' stroke-width='6'/><path d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/><path d='M30,0 v30 M0,15 h60' stroke='%23ffffff' stroke-width='10'/><path d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/></svg>")
    center / cover no-repeat;
}
/* Turkey — KARE viewBox (dairede kırpılmaz) + ortalanmış hilal, hilale dönük simetrik yıldız */
.flag-tr {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect width='24' height='24' fill='%23E30A17'/><circle cx='10.2' cy='12' r='5.4' fill='%23ffffff'/><circle cx='12' cy='12' r='4.4' fill='%23E30A17'/><polygon points='16.3,8.7 17.07,10.94 19.44,10.98 17.55,12.4 18.24,14.67 16.3,13.31 14.36,14.67 15.05,12.4 13.16,10.98 15.53,10.94' fill='%23ffffff'/></svg>")
    center / cover no-repeat;
}
/* Germany — horizontal black/red/yellow */
.flag-de {
  background: linear-gradient(180deg, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}
/* Russia — white/blue/red */
.flag-ru {
  background: linear-gradient(180deg, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}
/* China — solid red with yellow star */
.flag-zh {
  background: #de2910;
}
.flag-zh::after {
  content: '★';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  color: #ffde00;
  font-size: 11px;
  line-height: 1;
}
/* India — saffron/white/green */
.flag-hi {
  background: linear-gradient(180deg, #ff9933 0 33.33%, #fff 33.33% 66.66%, #138808 66.66% 100%);
}
/* Korea — white with red/blue dot */
.flag-ko {
  background: #fff;
}
.flag-ko::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c60c30 0 50%, #003478 50% 100%);
}
/* Spain — red/yellow/red horizontal */
.flag-es {
  background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}
/* France — vertical blue/white/red */
.flag-fr {
  background: linear-gradient(90deg, #002654 0 33.33%, #fff 33.33% 66.66%, #ed2939 66.66% 100%);
}
/* Saudi Arabia — green */
.flag-ar {
  background: #006c35;
}
/* Italy — green/white/red vertical */
.flag-it {
  background: linear-gradient(90deg, #008c45 0 33.33%, #fff 33.33% 66.66%, #cd212a 66.66% 100%);
}
/* Japan — white with red circle */
.flag-ja {
  background: #fff;
}
.flag-ja::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bc002d;
}
/* Portugal — green/red vertical */
.flag-pt {
  background: linear-gradient(90deg, #006600 0 40%, #ff0000 40% 100%);
}
.flag-pt::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 0 1px #fff inset;
}
/* Netherlands — red/white/blue horizontal */
.flag-nl {
  background: linear-gradient(180deg, #ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66% 100%);
}
/* Poland — white/red horizontal */
.flag-pl {
  background: linear-gradient(180deg, #fff 0 50%, #dc143c 50% 100%);
}
/* Ukraine — blue/yellow horizontal */
.flag-uk {
  background: linear-gradient(180deg, #0057b7 0 50%, #ffdd00 50% 100%);
}
/* Romania — blue/yellow/red vertical */
.flag-ro {
  background: linear-gradient(90deg, #002b7f 0 33.33%, #fcd116 33.33% 66.66%, #ce1126 66.66% 100%);
}
/* Bulgaria — white/green/red horizontal */
.flag-bg {
  background: linear-gradient(180deg, #fff 0 33.33%, #00966e 33.33% 66.66%, #d62612 66.66% 100%);
}
/* Azerbaijan — blue/red/green horizontal */
.flag-az {
  background: linear-gradient(180deg, #0092bc 0 33.33%, #e4002b 33.33% 66.66%, #00af66 66.66% 100%);
}
/* Iran (Persian) — green/white/red horizontal */
.flag-fa {
  background: linear-gradient(180deg, #239f40 0 33.33%, #fff 33.33% 66.66%, #da0000 66.66% 100%);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  max-height: 400px;
  overflow-y: auto;
  padding: 7px;
  background:
    linear-gradient(180deg, rgba(14, 29, 68, 0.55), rgba(8, 15, 35, 0.2)), rgba(8, 14, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  box-shadow:
    0 30px 64px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(78, 168, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  list-style: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 120;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lang-menu li + li {
  margin-top: 2px;
}
.lang-menu li:hover {
  background: rgba(78, 168, 255, 0.12);
  color: var(--white);
  transform: translateX(3px);
}
.lang-menu li.selected {
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.28), rgba(78, 168, 255, 0.06));
  color: var(--white);
  font-weight: 600;
}
/* seçili dile sağda accent onay işareti */
.lang-menu li.selected::after {
  content: '';
  margin-left: auto;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ea8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>")
    center / contain no-repeat;
}
/* dropdown bayrakları — kompakt + premium halka */
.lang-menu .flag {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.lang-menu li.selected::after {
  width: 15px;
  height: 15px;
}

.lang-menu::-webkit-scrollbar {
  width: 6px;
}
.lang-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* fills the screen, grows if content needs more */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 170px 0 70px; /* clears the enlarged absolute-positioned header */
  /* dark navy gradient — the ONLY fallback shown before the video is ready */
  background:
    radial-gradient(1100px 700px at 30% 0%, var(--navy-700) 0%, transparent 60%),
    radial-gradient(900px 700px at 100% 100%, var(--navy-800) 0%, transparent 55%), var(--navy-950);
}

/* hide any leftover scroll indicator */
.hero-scroll {
  display: none !important;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  background: transparent; /* no fill — hero gradient shows through while hidden */
  opacity: 0; /* hidden until the video can actually play */
  transition: opacity 0.8s ease;
}
.hero-video.video-ready {
  opacity: 1; /* fade in once ready */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(28, 58, 122, 0.55), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(78, 168, 255, 0.2), transparent 55%),
    linear-gradient(
      180deg,
      rgba(5, 11, 26, 0.72) 0%,
      rgba(5, 11, 26, 0.62) 50%,
      rgba(5, 11, 26, 0.85) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  padding: 0 32px;
  text-align: center;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--hero-gray);
  -webkit-text-fill-color: var(--hero-gray);
  margin: 0 auto 28px;
  white-space: nowrap; /* single line on desktop */
  padding-bottom: 0.18em; /* prevent descenders (ş, ğ, ç) clipping */
  text-shadow:
    0 4px 22px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(227, 230, 238, 0.18);
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 56px;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: rgba(232, 238, 251, 0.82);
  line-height: 1.7;
}

/* ===== Index Cards — vertical premium image-style ===== */
.index-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* four cards, never wraps on desktop */
  gap: clamp(12px, 1.4vw, 24px);
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(8px, 1vw, 16px);
}

.index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  text-align: left;
  isolation: isolate;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}

.index-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.4),
    rgba(78, 168, 255, 0.45) 50%,
    rgba(78, 168, 255, 0) 80%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.index-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(78, 168, 255, 0.35),
    0 0 60px rgba(78, 168, 255, 0.35);
}
.index-card:hover::before {
  opacity: 1;
}

/* tall image / gradient area */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.card-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.index-card:hover .card-art {
  transform: scale(1.08);
}

.art-svg {
  width: 60%;
  height: auto;
  filter: drop-shadow(0 8px 26px rgba(78, 168, 255, 0.35));
  opacity: 0.95;
}

/* unique gradient backgrounds per card */
.art-clinic {
  background: radial-gradient(120% 80% at 50% 20%, #2b5fb0 0%, #122a5c 55%, #0a1530 100%);
}
.art-doctor {
  background: radial-gradient(120% 80% at 50% 20%, #3a86e6 0%, #163773 55%, #0a1530 100%);
}
.art-agency {
  background: radial-gradient(120% 80% at 50% 30%, #4ea8ff 0%, #1b3e87 55%, #0a1530 100%);
}
.art-hospital {
  background: radial-gradient(120% 80% at 50% 20%, #2f86e6 0%, #14306a 55%, #0a1530 100%);
}
.art-treatment {
  background: radial-gradient(120% 80% at 50% 25%, #5fb0e6 0%, #1b4a87 55%, #0a1530 100%);
}

/* subtle texture overlay on media */
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 26, 0) 50%, rgba(5, 11, 26, 0.55) 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.card-body {
  padding: clamp(12px, 1.1vw, 18px) clamp(12px, 1.1vw, 18px) clamp(14px, 1.2vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: clamp(0.92rem, 0.95vw, 1.05rem);
  font-weight: 600;
}
.card-desc {
  font-size: clamp(0.78rem, 0.82vw, 0.88rem);
  line-height: 1.45;
}

.card-eyebrow {
  display: none;
} /* numbering removed */

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Hero scroll cue ===== */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--white), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(78, 168, 255, 0.1);
  border: 1px solid rgba(78, 168, 255, 0.25);
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-eyebrow.light {
  color: var(--accent-soft);
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.section-lead.light {
  color: rgba(232, 238, 251, 0.85);
}

/* ============================================================
   WHY TRUST US
   ============================================================ */
.why-trust {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(800px 500px at 80% 0%, rgba(28, 58, 122, 0.35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(78, 168, 255, 0.1), transparent 60%),
    var(--navy-900);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* same lift/glow system as the homepage index cards */
.trust-card {
  position: relative;
  padding: 32px 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  isolation: isolate;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}
.trust-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.4),
    rgba(78, 168, 255, 0.45) 50%,
    rgba(78, 168, 255, 0) 80%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.trust-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(78, 168, 255, 0.35),
    0 0 60px rgba(78, 168, 255, 0.35);
}
.trust-card:hover::before {
  opacity: 1;
}

.trust-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.2), rgba(78, 168, 255, 0.05));
  border: 1px solid rgba(78, 168, 255, 0.25);
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.trust-icon svg {
  width: 26px;
  height: 26px;
}

.trust-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.trust-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   MOBILE APP
   ============================================================ */
.mobile-app {
  position: relative;
  padding: 70px 0; /* daha kompakt — boyut küçültüldü */
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(78, 168, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(28, 58, 122, 0.45), transparent 60%),
    var(--navy-950);
  overflow: hidden;
}

.mobile-app-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.app-text .section-eyebrow {
  margin-bottom: 16px;
}
.app-text .section-title {
  color: var(--white);
  margin-bottom: 16px;
}
.app-text .section-lead {
  max-width: 520px;
  margin-bottom: 36px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #000;
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 168, 255, 0.5);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(78, 168, 255, 0.3);
}
.store-badge svg {
  width: 26px;
  height: 26px;
}
.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.store-badge small {
  font-size: 10.5px;
  opacity: 0.8;
  letter-spacing: 0.5px;
}
.store-badge strong {
  font-size: 16px;
  font-weight: 600;
}

/* ===== Premium phone mockup ===== */
.app-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

.phone-mock {
  position: relative;
  width: 240px;
  height: 470px;
  background: linear-gradient(160deg, #1a2c5c 0%, #06112c 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(0, 0, 0, 0.4) inset,
    0 0 60px rgba(78, 168, 255, 0.3);
  z-index: 2;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #04091a;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  padding: 40px 20px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(78, 168, 255, 0.25), transparent 60%),
    linear-gradient(180deg, #0e1d44 0%, #050b1a 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}
.status-dots {
  display: inline-flex;
  gap: 3px;
}
.status-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.screen-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.18), rgba(78, 168, 255, 0.04));
  border: 1px solid rgba(78, 168, 255, 0.28);
  border-radius: 14px;
}
.screen-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(78, 168, 255, 0.45);
}
.screen-avatar svg {
  width: 22px;
  height: 22px;
}
.screen-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.screen-titles strong {
  font-size: 12px;
  color: #fff;
}
.screen-titles small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.screen-row {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
.screen-row.short {
  width: 60%;
}

.screen-cta {
  margin-top: 4px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(78, 168, 255, 0.4);
}

.screen-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.screen-grid div {
  height: 56px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 168, 255, 0.4), transparent 70%);
  filter: blur(50px);
  z-index: 1;
  animation: floatGlow 6s ease-in-out infinite;
}
@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
}

/* ---- floating health-themed glass accents around the phone ---- */
.med-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(78, 168, 255, 0.18);
  color: var(--white);
  animation: medFloat 6s ease-in-out infinite;
}
.med-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.32), rgba(78, 168, 255, 0.08));
  border: 1px solid rgba(78, 168, 255, 0.3);
  color: var(--accent-soft);
  flex-shrink: 0;
}
.med-float-icon svg {
  width: 19px;
  height: 19px;
}

.med-float-text {
  font-size: 11px;
  line-height: 1.15;
  color: var(--text-muted);
  white-space: nowrap;
}
.med-float-text strong {
  display: block;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.2px;
}

/* positions — four accents around the phone */
.med-float-a {
  top: 9%;
  left: -8%;
  animation-delay: 0s;
} /* Hızlı Erişim */
.med-float-b {
  bottom: 10%;
  right: -6%;
  animation-delay: -1.6s;
} /* Güvenli Giriş */
.med-float-c {
  top: 33%;
  right: -11%;
  animation-delay: -3.2s;
} /* Anında Bildirim */
.med-float-d {
  bottom: 30%;
  left: -10%;
  animation-delay: -4.6s;
} /* Kolay Randevu */

@keyframes medFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .med-float,
  .glow-orb {
    animation: none;
  }
}

/* ============================================================
   FOOTER (minimal · compact · ANASAYFA-style)
   ============================================================ */
/* sticky-bottom: kısa içerikli sayfalarda footer yukarı kaçmaz —
   her zaman en altta durur (yalnız footer'lı public sayfalar).
   help-body HARİÇ: o kendi tam-ekran layout'unu kullanır (height:100vh;
   overflow:hidden) — flex-column onu bozup footer'ı küreye bindiriyordu */
body:has(.site-footer):not(.help-body) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-footer {
  position: relative;
  z-index: 5; /* fixed sidebar'ı alttan örter */
  margin-top: auto; /* içerik kısa kalırsa footer'ı dibe iter */
  background: var(--navy-950);
  border-top: 1px solid var(--line);
  padding: 12px 0 12px; /* daha kompakt footer */
}

.footer-mini {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* same columns as the bottom row */
  align-items: center;
  gap: 18px;
  padding-bottom: 2px;
}

.foot-block {
  display: inline-flex;
  flex-direction: column; /* label on top, icon(s) underneath */
  align-items: center; /* heading centered over its icon(s) */
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  text-align: center;
}
/* place each block in its own column, centered — so they line up with
   the copyright / legal links directly beneath them */
.foot-block.question {
  grid-column: 1;
  justify-self: center;
  flex-direction: column-reverse; /* sağ blokla eşitle: yazı üstte, ikon altta (HTML sırası ikon-önce olsa da) */
}
.foot-block.follow {
  grid-column: 3;
  justify-self: center;
}
.foot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(78, 168, 255, 0.1);
  border: 1px solid rgba(78, 168, 255, 0.25);
  color: var(--accent-soft);
  flex-shrink: 0;
}
.foot-icon svg {
  width: 16px;
  height: 16px;
}
.foot-text {
  color: var(--white);
  font-weight: 500;
}

.foot-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.foot-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}
.foot-socials a svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}
.foot-socials a:hover {
  background: rgba(78, 168, 255, 0.15);
  border-color: rgba(78, 168, 255, 0.55);
  color: var(--white);
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(78, 168, 255, 0.25);
}
.foot-socials a:hover svg {
  transform: scale(1.04);
}

.foot-email {
  display: block;
  text-align: center;
  margin: 0 auto 6px;
  color: var(--accent-soft);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}
.foot-email:hover {
  color: var(--white);
}

.foot-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0 0 8px;
}

.footer-bottom-mini {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* equal columns, matches footer-top */
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom-mini .foot-copy {
  justify-self: center;
}
.footer-bottom-mini .foot-entity {
  justify-self: center;
  color: var(--text-muted);
}
.foot-legal {
  justify-self: center;
  display: inline-flex;
  gap: 16px;
  list-style: none;
}
.foot-legal a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.foot-legal a:hover {
  color: var(--white);
}

/* ---- legacy footer (used by inner index pages) ---- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-brand .footer-logo,
.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 18px;
}
.footer-tag {
  max-width: 320px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.footer-col ul li a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-col ul li a:hover {
  color: var(--white);
}
.footer-col ul li .muted {
  color: var(--text-dim);
}
.social-list {
  display: flex;
  gap: 10px;
}
.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--text);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    color 0.25s ease;
}
.social-list a:hover {
  background: rgba(78, 168, 255, 0.15);
  border-color: rgba(78, 168, 255, 0.55);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 14px;
}
.legal-list {
  display: flex;
  gap: 22px;
}
.legal-list a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.legal-list a:hover {
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Cards stay 5-up on every desktop/tablet width — scale proportionally instead of wrapping */
@media (max-width: 1100px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .index-cards {
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: center;
  }
  .foot-block.question,
  .foot-block.follow {
    grid-column: 1;
  }
  .footer-bottom-mini {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-mini .foot-copy,
  .footer-bottom-mini .foot-entity,
  .foot-legal {
    justify-self: center;
  }
}

/* Tablet: keep four cards, just tighter */
@media (max-width: 1024px) {
  .index-cards {
    gap: 12px;
    max-width: 820px;
  }
  .card-media {
    aspect-ratio: 3 / 4;
  }
}
/* Smaller tablet: 2 × 2 grid */
@media (max-width: 880px) {
  .index-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    gap: 16px;
  }
}

/* Mobile breakpoint — hamburger appears, cards stack 1-up */
@media (max-width: 720px) {
  .header-inner {
    padding: 0 18px 0 4px;
  }
  .logo {
    height: 150px;
    margin: -38px -8px;
  }
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    margin-top: 10px;
    background: rgba(5, 11, 26, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 14px;
    min-width: 240px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    display: none;
  }
  .main-nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link {
    padding: 10px 14px;
    border-radius: 10px;
  }
  .nav-link::after {
    left: 50%;
    width: calc(100% - 28px);
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }
  .nav-cta.is-authed {
    justify-content: center;
    max-width: none;
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
  }
  .nav-toggle {
    order: 3;
    margin-left: 10px;
  }

  .hero {
    padding: 150px 0 90px;
  }
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    white-space: normal;
  }
  .hero-subtitle {
    margin-bottom: 38px;
  }

  .index-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 360px;
    padding: 0;
  }
  .card-media {
    aspect-ratio: 16 / 10;
  }

  .why-trust,
  .mobile-app {
    padding: 80px 0;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .mobile-app-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .app-text .section-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .store-badges {
    justify-content: center;
  }
  .app-visual {
    min-height: 480px;
  }

  .phone-mock {
    width: 240px;
    height: 480px;
  }
  .glow-orb {
    width: 300px;
    height: 300px;
  }

  .med-float-a {
    top: 8%;
    left: 4%;
  }
  .med-float-b {
    bottom: 10%;
    right: 4%;
  }
  .med-float-c,
  .med-float-d {
    display: none;
  } /* sade tut: mobilde 2 öğe yeterli */

  .footer-top {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }
  .foot-block.question,
  .foot-block.follow {
    grid-column: 1;
    align-items: center;
    text-align: center;
  }
  .footer-bottom-mini {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  .footer-bottom-mini .foot-copy,
  .footer-bottom-mini .foot-entity,
  .foot-legal {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 120px;
    margin: -28px -6px;
  }
}

/* ============================================================
   INNER INDEX PAGES (clinic / doctor / agency / hospital)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 104px 0 84px;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(28, 58, 122, 0.55), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(78, 168, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(78, 168, 255, 0.05), transparent 40%),
    repeating-linear-gradient(180deg, transparent 0 38px, rgba(255, 255, 255, 0.03) 38px 39px);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.page-breadcrumb a {
  color: var(--accent-soft);
  transition: color 0.2s ease;
}
.page-breadcrumb a:hover {
  color: var(--white);
}
.page-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #fff 0%, #cfe2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* filter / search bar */
.filter-bar {
  position: relative;
  margin: 50px auto 0;
  max-width: 1100px;
  padding: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.filter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(5, 11, 26, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}
.filter-field:focus-within {
  border-color: rgba(78, 168, 255, 0.55);
  background: rgba(5, 11, 26, 0.75);
}
.filter-field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.filter-field input,
.filter-field select {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
}
.filter-field select option {
  background: var(--navy-900);
  color: var(--text);
}
.filter-field input::placeholder {
  color: var(--text-dim);
}

.filter-submit {
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, #4ea8ff 0%, #2f86e6 100%);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(47, 134, 230, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}
.filter-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(78, 168, 255, 0.55);
}

/* results grid */
.results-section {
  padding: 28px 0 72px;
  /* min-height kaldırıldı: footer artık sticky (body flex) — kısa/boş içerikte
     büyük boşluk oluşmasın, boş-durum arama barına yakın dursun */
  background:
    radial-gradient(700px 500px at 80% 100%, rgba(28, 58, 122, 0.25), transparent 60%),
    var(--navy-950);
}
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.results-head h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
}
.results-head .results-meta {
  font-size: 13px;
  color: var(--text-dim);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.result-card {
  position: relative; /* favori kalbinin (.result-fav, absolute) çapası — yoksa kalp .results-section'a kaçıyor */
  cursor: pointer; /* kart JS ile tıklanabilir → el imleci */
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}
.result-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 168, 255, 0.4);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(78, 168, 255, 0.25);
}

.result-media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(
      120% 80% at 50% 30%,
      rgba(78, 168, 255, 0.35),
      rgba(20, 42, 94, 0.3) 60%,
      rgba(5, 11, 26, 0.6) 100%
    ),
    linear-gradient(135deg, #142a5e, #050b1a);
  position: relative;
}
.result-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, transparent 50%, rgba(5, 11, 26, 0.6) 100%);
}

.result-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* kurumsal tutarlılık: TÜM indekslerde kartlar aynı yükseklikte olsun.
     Tedavi kartı (name+method+doctor+loc+fiyat) en uzun = referans; daha az
     satırlı hastane/klinik kartları bu yüksekliğe tamamlanır, foot alta pinlenir */
  min-height: 260px;
}
.result-badge {
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 4px 10px;
  border: 1px solid rgba(78, 168, 255, 0.3);
  border-radius: 999px;
  background: rgba(78, 168, 255, 0.1);
}
.result-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
.result-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.result-cta {
  margin-top: 8px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    gap 0.25s ease,
    color 0.2s ease;
}
.result-cta:hover {
  color: var(--white);
  gap: 10px;
}
.result-code {
  margin-top: 6px;
}
.result-code span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.1);
  border: 1px solid rgba(78, 168, 255, 0.22);
  border-radius: 6px;
  padding: 2px 8px;
}
.result-msg {
  margin-top: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  color: #fff;
  transition:
    transform 0.15s ease,
    gap 0.25s ease;
}
.result-msg:hover {
  color: #fff;
  transform: translateY(-1px);
}
.result-msg svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1100px) {
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .filter-submit {
    grid-column: span 2;
    padding: 14px;
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .filter-submit {
    grid-column: auto;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 130px 0 50px;
  }
}

/* ============================================================
   TREATMENT FINDER — cascading selector (country → … → method)
   ============================================================ */
.ti-finder {
  position: relative;
  z-index: 6;
  margin-top: -66px; /* barı TAMAMEN hero içine al (dış taşma yok) */
  padding: 0 0 30px;
  overflow: visible; /* never clip the open dropdowns */
}
.ti-finder-inner {
  overflow: visible;
}

/* diğer indekslerdeki (.dx-search) pill tasarımı — tek yuvarlak bar */
.ti-cascade {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent; /* mavi gradyan strok ::before ile */
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
/* ortada yoğun, kenarlarda soluk mavi ışıklı gradyan strok (dx-search ile ortak) */
.ti-cascade::before,
.dx-search::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    90deg,
    rgba(78, 168, 255, 0.15),
    rgba(78, 168, 255, 0.9) 50%,
    rgba(78, 168, 255, 0.15)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* equal, fixed-width boxes that all sit on one row (shrink together) */
.ti-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--line);
}
.ti-step:last-of-type {
  border-right: none;
}
.ti-step.is-open {
  z-index: 60;
}

.ti-step-trigger {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 18px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.ti-step.is-locked .ti-step-trigger {
  opacity: 0.4;
  cursor: not-allowed;
}

/* dx-pill görünümünde ikon + küçük etiket gizli */
.ti-step-ico,
.ti-step-label {
  display: none;
}

.ti-step-text {
  display: flex;
  min-width: 0;
  flex: 1;
}
.ti-step-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.ti-step.is-filled .ti-step-value {
  color: var(--white);
}

.ti-step-caret {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--text-dim);
  transition:
    transform 0.3s ease,
    color 0.2s ease;
}
.ti-step.is-open .ti-step-caret {
  transform: rotate(180deg);
  color: var(--accent-soft);
}

/* popover panel */
.ti-pop {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(400px, 90vw);
  z-index: 90;
  padding: 9px;
  background: linear-gradient(165deg, rgba(16, 30, 64, 0.98), rgba(8, 16, 38, 0.98));
  border: 1px solid rgba(125, 193, 255, 0.24);
  border-radius: 17px;
  box-shadow:
    0 32px 66px rgba(0, 0, 0, 0.66),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transform-origin: bottom;
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.24s;
}
.ti-step.is-open .ti-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* deeper (right-side) steps open their menu aligned to the right so the
   wider panel never spills past the bar's right edge */
.ti-step[data-step='treatment'] .ti-pop,
.ti-step[data-step='method'] .ti-pop {
  left: auto;
  right: 0;
}

.ti-pop-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  margin-bottom: 6px;
  background: rgba(5, 11, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ti-pop-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.ti-pop-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}
.ti-pop-search input::placeholder {
  color: var(--text-dim);
}

.ti-pop-list {
  list-style: none;
  margin: 0;
  padding: 3px;
  max-height: 380px;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.ti-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.ti-opt span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ti-opt:hover {
  background: rgba(78, 168, 255, 0.12);
  color: var(--white);
}
.ti-opt.is-selected {
  background: rgba(78, 168, 255, 0.16);
  color: var(--white);
}
.ti-opt-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.ti-opt.is-selected .ti-opt-check {
  opacity: 1;
  transform: scale(1);
}

/* soft, premium scrollbar inside the popover lists */
.ti-pop-list::-webkit-scrollbar {
  width: 8px;
}
.ti-pop-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
.ti-pop-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(78, 168, 255, 0.55), rgba(47, 134, 230, 0.4));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.ti-pop-list::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 168, 255, 0.8);
  background-clip: padding-box;
}
.ti-pop-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 168, 255, 0.55) transparent;
}

.ti-reset {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.08);
  border: 1px solid rgba(78, 168, 255, 0.28);
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}
.ti-reset:hover {
  background: rgba(78, 168, 255, 0.2);
  color: var(--white);
  border-color: rgba(78, 168, 255, 0.55);
}

/* search button (replaces reset) — primary action */
/* yuvarlak ikon-only arama butonu (dx-search-btn gibi) */
.ti-search {
  flex: 0 0 auto;
  align-self: center;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(78, 168, 255, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.ti-search svg {
  width: 16px;
  height: 16px;
}
.ti-search span {
  display: none;
}
.ti-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(78, 168, 255, 0.38);
}

/* dim + blur the result cards while a dropdown popover is open */
.ti-results {
  transition:
    filter 0.25s ease,
    opacity 0.25s ease;
}
.results-section.ti-dimmed .ti-results {
  filter: blur(4px);
  opacity: 0.4;
  pointer-events: none;
}

/* guided empty state */
.ti-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 24px;
  text-align: center;
}
.ti-empty-ico {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.1);
  border: 1px solid rgba(78, 168, 255, 0.22);
}
.ti-empty-ico svg {
  width: 28px;
  height: 28px;
}
.ti-empty p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 420px;
}

/* ---- new finder result cards — 4 per row ---- */
.ti-results {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* fill-mode 'backwards' → giriş animasyonu bitince transform'u KİLİTLEMEZ, böylece :hover translateY lift çalışır */
.ti-results .result-card {
  animation: tiCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes tiCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.result-media {
  aspect-ratio: 16 / 9;
} /* 1920×1080 oranı; kart küçülürken orantılı küçülür */
.result-unit {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 11, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* SABİT satır bantları — kart genişliği/ekran boyutu ne olursa olsun yazı konumu kaymaz */
.result-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.result-method {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--accent-soft);
  margin-top: -2px;
  height: 1.4em;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.result-doc,
.result-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.result-doc svg,
.result-loc svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.result-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.result-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(78, 168, 255, 0.12);
  border: 1px solid rgba(78, 168, 255, 0.3);
  white-space: nowrap;
}
/* gövde kartı doldurur → foot her kartta dipte sabit; CTA sağda */
.result-card .result-body {
  flex: 1 1 auto;
}
.result-card .result-foot {
  margin-top: auto;
}
.result-card .result-foot .result-cta {
  margin: 0 0 0 auto;
}

/* results header keeps just the count, aligned to the right */
.results-head--count {
  justify-content: flex-end;
}

@media (max-width: 1240px) {
  .ti-results {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 920px) {
  .ti-results {
    grid-template-columns: repeat(2, 1fr);
  }
  .ti-step {
    flex: 1 1 220px;
  }
}
@media (max-width: 560px) {
  .ti-finder {
    margin-top: -12px;
  }
  .ti-cascade {
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 22px;
  }
  .ti-step {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .ti-step:last-of-type {
    border-bottom: none;
  }
  .ti-search {
    flex: 1 1 100%;
    width: 100%;
    height: 46px;
    border-radius: 12px;
  }
  .ti-results {
    grid-template-columns: 1fr;
  }
  /* on a single column every menu opens left-aligned & full width */
  .ti-step .ti-pop {
    left: 0 !important;
    right: auto !important;
  }
}

/* ============================================================
   SCROLL REVEAL (Apple-style soft fade + lift)
   ============================================================ */
/* foreground reveal — applied to inner elements only, so section
   backgrounds stay perfectly static when scrolling */
.reveal-item {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition:
    opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal-item.delay-1 {
  transition-delay: 0.08s;
}
.reveal-item.delay-2 {
  transition-delay: 0.16s;
}
.reveal-item.delay-3 {
  transition-delay: 0.24s;
}
.reveal-item.delay-4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   CONTACT PANEL (opens via the support icon)
   ============================================================ */
.contact-panel {
  width: 100%;
  max-width: 560px;
  margin: 18px auto 0;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  text-align: left;
  animation: panelFade 0.35s ease both;
}
.contact-panel[hidden] {
  display: none;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-row span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-row input,
.contact-row textarea {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(5, 11, 26, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  resize: vertical;
}
.contact-row input:focus,
.contact-row textarea:focus {
  border-color: rgba(78, 168, 255, 0.5);
  background: rgba(5, 11, 26, 0.78);
}
.contact-submit {
  align-self: flex-end;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, #4ea8ff 0%, #2f86e6 100%);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(47, 134, 230, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}
.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(78, 168, 255, 0.55);
}

/* the support icon button — keeps the original look, just becomes clickable */
button.contact-icon {
  cursor: pointer;
  font: inherit;
  outline: 0;
}
button.contact-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(78, 168, 255, 0.35);
  border-color: rgba(78, 168, 255, 0.55);
  color: var(--white);
}
button.contact-icon[aria-expanded='true'] {
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.28), rgba(78, 168, 255, 0.08));
  color: var(--white);
}

/* ============================================================
   BACK-TO-TOP BUTTON (subtle, premium, bottom-left)
   ============================================================ */
.scroll-top {
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent-soft);
  background: rgba(10, 21, 48, 0.72);
  border: 1px solid rgba(78, 168, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0; /* hidden until scrolled down */
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top svg {
  width: 20px;
  height: 20px;
}
.scroll-top:hover {
  color: var(--white);
  background: rgba(78, 168, 255, 0.18);
  border-color: rgba(78, 168, 255, 0.6);
  transform: translateY(-3px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(78, 168, 255, 0.3);
}

@media (max-width: 600px) {
  .scroll-top {
    left: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
  .scroll-top svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .scroll-top.visible {
    transform: none;
  }
}

/* ============================================================
   ABOUT US PAGE (Hakkımızda — premium vertical flow)
   ============================================================ */
/* ---- About page-hero: tightened spacing (about only) ---- */
.about-page-hero {
  padding: 116px 0 22px;
}
.about-page-hero .page-breadcrumb {
  margin-bottom: 8px;
}
.about-page-hero .page-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0;
}

.about-page {
  position: relative;
  padding: 18px 0 70px;
  background:
    radial-gradient(900px 600px at 80% -5%, rgba(28, 58, 122, 0.3), transparent 60%),
    radial-gradient(700px 600px at 0% 40%, rgba(78, 168, 255, 0.06), transparent 55%),
    var(--navy-950);
  overflow: hidden;
}
/* faint particle field for depth */
.about-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(125, 193, 255, 0.045) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 85%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 85%);
  pointer-events: none;
}
/* soft, slowly drifting premium lights */
.about-page::after {
  content: '';
  position: absolute;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(440px 320px at 16% 20%, rgba(78, 168, 255, 0.1), transparent 70%),
    radial-gradient(520px 380px at 84% 68%, rgba(125, 193, 255, 0.07), transparent 72%);
  will-change: transform, opacity;
  animation: aboutAurora 30s ease-in-out infinite alternate;
}
@keyframes aboutAurora {
  0% {
    transform: translate3d(-2%, -1.5%, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(2.5%, 2%, 0) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate3d(-1%, 2.5%, 0) scale(1.03);
    opacity: 0.78;
  }
}

.about-stack {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.about-block {
  position: relative;
  padding: 30px 0;
  text-align: center;
}
.about-block h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.about-block h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 6px auto 0; /* line sits close to the heading */
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  box-shadow: 0 0 14px rgba(78, 168, 255, 0.45);
}
.about-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .about-page {
    padding-bottom: 50px;
  }
  .about-block {
    padding: 24px 0;
  }
  .about-page-hero {
    padding-top: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-page::after {
    animation: none;
  }
}

/* ============================================================
   ABOUT FINALE — two hands reaching toward the medical cross
   ============================================================ */
.about-finale {
  position: relative;
  height: clamp(300px, 40vw, 470px);
  overflow: hidden;
  background:
    radial-gradient(55% 80% at 50% 120%, rgba(28, 58, 122, 0.4), transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
/* dotted particle field, masked toward the centre */
.about-finale::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(125, 193, 255, 0.08) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(78% 100% at 50% 65%, #000 30%, transparent 82%);
  mask-image: radial-gradient(78% 100% at 50% 65%, #000 30%, transparent 82%);
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}
.about-finale.in::before {
  opacity: 1;
}

.finale-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.finale-glow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%) scale(0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 36, 59, 0.45), rgba(178, 36, 59, 0) 68%);
  filter: blur(10px);
  opacity: 0;
  transition:
    opacity 1.4s ease 0.5s,
    transform 1.6s ease 0.5s;
  pointer-events: none;
}
.about-finale.in .finale-glow {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: finaleGlow 4.5s ease-in-out 2.4s infinite;
}
@keyframes finaleGlow {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* soft, luxurious slide-in from the sides */
.finale-hand {
  opacity: 0;
  will-change: transform, opacity;
}
.finale-hand-left {
  transform: translateX(-120px);
  transition:
    transform 2s cubic-bezier(0.16, 0.82, 0.28, 1),
    opacity 1.5s ease;
}
.finale-hand-right {
  transform: translateX(120px);
  transition:
    transform 2s cubic-bezier(0.16, 0.82, 0.28, 1),
    opacity 1.5s ease;
}
.about-finale.in .finale-hand {
  opacity: 1;
  transform: translateX(0);
}

.finale-cross {
  opacity: 0;
  transform: scale(0.8);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 16px rgba(178, 36, 59, 0.55));
  transition:
    opacity 1s ease 1s,
    transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 1s;
}
.about-finale.in .finale-cross {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .about-finale::before,
  .finale-glow,
  .finale-hand,
  .finale-cross {
    transition: none;
    animation: none;
  }
  .finale-hand {
    opacity: 1;
    transform: none;
  }
  .finale-cross {
    opacity: 1;
    transform: none;
  }
  .finale-glow {
    opacity: 0.8;
    transform: translateX(-50%) scale(1);
  }
  .about-finale::before {
    opacity: 1;
  }
}

/* ============================================================
   HELP CENTER PAGE (Yardım Merkezi)
   ============================================================ */
/* lock the help page to the viewport — only the content pane scrolls */
body.help-body {
  overflow: hidden;
  height: 100vh;
}

.help-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(1000px 700px at 70% -10%, rgba(28, 58, 122, 0.4), transparent 60%),
    radial-gradient(800px 700px at 0% 60%, rgba(78, 168, 255, 0.06), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

/* --- background: faint world + drifting stars --- */
.hc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.7s ease;
}
.help-page.has-selection .hc-bg {
  opacity: 0.4;
} /* world dims on selection */
.help-page.has-selection .hc-globe {
  filter: blur(3px);
} /* soft blur on selection */

.hc-globe {
  position: absolute;
  top: calc(50% + 55px); /* centered within the right content area (below header) */
  left: calc(50% + 175px); /* centered in the right content region */
  width: min(72vw, 760px);
  height: auto;
  transform: translate(-50%, -50%);
  color: var(--accent-soft);
  opacity: 0.13;
  transition: filter 0.6s ease;
  animation: hcGlobeSpin 90s linear infinite;
}
@keyframes hcGlobeSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hc-stars {
  position: absolute;
  inset: 0;
}
.hc-star {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 222, 255, 0.85);
  box-shadow: 0 0 6px rgba(125, 193, 255, 0.7);
  opacity: 0;
  animation-name: hcStar;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes hcStar {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  25% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.25;
    transform: translate3d(14px, -10px, 0);
  }
  75% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate3d(28px, -20px, 0);
  }
}

/* --- layout: fixed full-height screen --- */
.hc-wrap {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  height: 100vh;
  max-width: none; /* full width — menu aligns with the logo */
  margin: 0;
  padding: 150px 44px 40px 40px; /* left padding lines the menu up with the logo */
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: stretch;
}

/* --- left menu --- */
.hc-left {
  align-self: start;
  min-height: 0;
  overflow-y: auto;
}
.hc-group-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 18px;
}
.hc-group-title::after {
  content: '';
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}
.hc-group-contact {
  margin-top: 46px;
}

.hc-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hc-menu-item {
  position: relative;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.22s ease,
    padding-left 0.22s ease;
}
.hc-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-soft);
  box-shadow: 0 0 10px rgba(78, 168, 255, 0.5);
  transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hc-menu-item:hover {
  color: var(--white);
  padding-left: 4px;
}
.hc-menu-item:hover::before {
  width: 26px;
}
.hc-menu-item.active {
  color: var(--white);
  padding-left: 16px;
}
.hc-menu-item.active::before {
  width: 10px;
}

/* --- right content: scrolls internally, scrollbar on the LEFT --- */
.hc-right {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex; /* lets the hint center vertically */
  flex-direction: column;
  direction: rtl; /* moves the scrollbar to the left side */
  border-left: 1px solid var(--line);
  padding-left: 40px;
  padding-right: 28px;
  padding-bottom: 30px;
}
.hc-right > * {
  direction: ltr;
} /* keep content left-to-right */
.hc-addr {
  color: var(--text);
}
/* slim premium scrollbar */
.hc-right::-webkit-scrollbar {
  width: 8px;
}
.hc-right::-webkit-scrollbar-track {
  background: transparent;
}
.hc-right::-webkit-scrollbar-thumb {
  background: rgba(78, 168, 255, 0.25);
  border-radius: 8px;
}
.hc-right::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 168, 255, 0.45);
}
.hc-right {
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 168, 255, 0.35) transparent;
}
.hc-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: auto 0; /* centers in the right pane → on the globe's centre */
  min-height: 0;
  text-align: center;
  color: var(--text-dim);
}
.hc-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(78, 168, 255, 0.25);
  background: rgba(78, 168, 255, 0.08);
  color: var(--accent-soft);
}
.hc-hint-icon svg {
  width: 24px;
  height: 24px;
}
.hc-hint p {
  font-size: 14px;
  max-width: 280px;
}

.hc-panel {
  display: none;
}
.hc-panel.active {
  display: block;
  animation: hcFade 0.45s ease both;
}
@keyframes hcFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hc-panel-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.hc-qa {
  margin-bottom: 26px;
}
.hc-qa h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.hc-qa p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hc-qa p:last-child {
  margin-bottom: 0;
}

/* contact panels */
.hc-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}
.hc-contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text);
}
.hc-contact-list a {
  color: var(--text);
  transition: color 0.2s ease;
}
.hc-contact-list a:hover {
  color: var(--accent-soft);
}
.hc-ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(78, 168, 255, 0.1);
  border: 1px solid rgba(78, 168, 255, 0.28);
  color: var(--accent-soft);
}
.hc-ci.wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25d366;
}
.hc-ci svg {
  width: 18px;
  height: 18px;
}

/* --- responsive: mobile falls back to normal page scrolling --- */
@media (max-width: 860px) {
  body.help-body {
    overflow: auto;
    height: auto;
  }
  .help-page {
    height: auto;
    overflow: visible;
  }
  .hc-wrap {
    height: auto;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 130px 22px 70px;
  }
  .hc-left {
    align-self: auto;
    overflow: visible;
  }
  .hc-group-contact {
    margin-top: 32px;
  }
  .hc-right {
    display: block;
    height: auto;
    overflow: visible;
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid var(--line);
    padding-top: 26px;
  }
  .hc-hint {
    margin: 0;
    min-height: 30vh;
    transform: none;
  }
  .hc-globe {
    left: 50%;
    top: 42%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-globe {
    animation: none;
  }
  .hc-star {
    animation: none;
    opacity: 0.5;
  }
}

/* ============================================================
   BLOG  (listing + article)
   ============================================================ */
.blog-hero {
  position: relative;
  padding: 120px 0 26px;
  text-align: center;
  background:
    radial-gradient(900px 500px at 30% 0%, rgba(28, 58, 122, 0.55), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(78, 168, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  border-bottom: 1px solid var(--line);
}
.blog-hero-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 8px;
  background: linear-gradient(180deg, #fff, #cfe2ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-hero-sub {
  max-width: 540px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 8px 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.blog-search:focus-within {
  border-color: rgba(78, 168, 255, 0.5);
  box-shadow: 0 0 22px rgba(78, 168, 255, 0.18);
}
.blog-search svg {
  width: 18px;
  height: 18px;
  color: var(--accent-soft);
  flex-shrink: 0;
}
.blog-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
}
.blog-search input::placeholder {
  color: var(--text-dim);
}
.blog-search button {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  box-shadow: 0 8px 20px rgba(47, 134, 230, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
}
.blog-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(78, 168, 255, 0.5);
}

.blog-section {
  padding: 56px 0;
  background: var(--navy-950);
}
.blog-section-alt {
  background:
    radial-gradient(700px 500px at 80% 0%, rgba(28, 58, 122, 0.25), transparent 60%),
    var(--navy-900);
  border-top: 1px solid var(--line);
}

.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.blog-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line-strong);
  isolation: isolate;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(78, 168, 255, 0.4);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(78, 168, 255, 0.25);
}

.blog-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(5, 11, 26, 0.55));
}
.blog-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--white);
  background: rgba(5, 11, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.cover-mark {
  display: none;
}
.cover-a {
  background: linear-gradient(135deg, #2b6cc9 0%, #14306a 60%, #0a1530 100%);
}
.cover-b {
  background: linear-gradient(135deg, #1fa6c4 0%, #1b4a87 60%, #0a1530 100%);
}
.cover-c {
  background: linear-gradient(135deg, #5a6cf0 0%, #243a8f 60%, #0a1530 100%);
}
.cover-d {
  background: linear-gradient(135deg, #36c5e6 0%, #1c5b8f 60%, #0a1530 100%);
}
.cover-e {
  background: linear-gradient(135deg, #7a6cf0 0%, #3a3f87 60%, #0a1530 100%);
}
.cover-f {
  background: linear-gradient(135deg, #3f7fd4 0%, #1b3e7a 60%, #0a1530 100%);
}
.cover-g {
  background: linear-gradient(135deg, #2fc6b4 0%, #1b5a7a 60%, #0a1530 100%);
}
.cover-h {
  background: linear-gradient(135deg, #2f6fe6 0%, #143a8f 60%, #0a1530 100%);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 22px;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.blog-meta .bm {
  display: none;
} /* view / like counts removed */
.blog-meta:not(:has(.blog-date)) {
  display: none;
} /* collapse meta rows that only held them */
.blog-meta svg {
  width: 15px;
  height: 15px;
}
.blog-date {
  margin-left: auto;
  color: var(--text-dim);
}
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}
.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.blog-readmore {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
}

.blog-card-lg .blog-cover {
  aspect-ratio: 16 / 8;
}
.blog-card-lg .blog-card-title {
  font-size: 1.4rem;
}
.blog-card-lg .blog-card-excerpt {
  font-size: 0.98rem;
}
.blog-card-lg .blog-card-body {
  padding: 22px 26px 26px;
  gap: 10px;
}

/* ---- article ---- */
.post {
  background: var(--navy-950);
}
.post-head {
  padding: 150px 0 80px;
  text-align: center;
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(28, 58, 122, 0.6), transparent 62%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-950) 100%);
  border-bottom: 1px solid var(--line);
}
.post-breadcrumb {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.post-breadcrumb a {
  color: var(--accent-soft);
}
.post-breadcrumb a:hover {
  color: var(--white);
}
.post-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto 22px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.post-stats {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: 14px;
}
.post-stats .ps {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post-stats svg {
  width: 18px;
  height: 18px;
}

.post-container {
  max-width: 1040px;
}
.post-gallery {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 16px;
  margin: -52px auto 44px;
  position: relative;
  z-index: 2;
}
.post-gallery > div {
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.post-gallery > div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 30% 15%, rgba(255, 255, 255, 0.12), transparent 55%);
}
.pg-main {
  aspect-ratio: 16 / 11;
  transition: opacity 0.25s ease;
}
.pg-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  box-shadow: none !important;
}
.pg-side .pg-thumb {
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    outline-color 0.25s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
/* hover → clearly pops forward so you know which image you're on */
.pg-side .pg-thumb:hover {
  z-index: 3;
  transform: translateY(-5px) scale(1.06);
  outline-color: rgba(78, 168, 255, 0.85);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(78, 168, 255, 0.45);
}
/* small "büyüt" cue on hover */
.pg-side .pg-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%, rgba(5, 11, 26, 0.45), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3M11 8v6M8 11h6'/></svg>")
      center / 30px no-repeat;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.pg-side .pg-thumb:hover::before {
  opacity: 1;
}
.pg-grad-1 {
  background: linear-gradient(135deg, #2b6cc9, #14306a 70%, #0a1530);
}
.pg-grad-2 {
  background: linear-gradient(135deg, #1fa6c4, #1b4a87 70%, #0a1530);
}
.pg-grad-3 {
  background: linear-gradient(135deg, #5a6cf0, #243a8f 70%, #0a1530);
}
.pg-grad-4 {
  background: linear-gradient(135deg, #36c5e6, #1c5b8f 70%, #0a1530);
}

.post-body {
  max-width: 820px;
  margin: 0 auto;
}
.post-lead {
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 22px;
  font-weight: 500;
}
.post-body > p {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.post-section {
  margin: 36px 0;
}
.post-section h2 {
  position: relative;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  padding-left: 16px;
  margin-bottom: 14px;
}
.post-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 12px rgba(78, 168, 255, 0.5);
}
.post-section p {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pa-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  box-shadow: 0 8px 20px rgba(47, 134, 230, 0.4);
}
.pa-meta {
  display: flex;
  flex-direction: column;
}
.pa-name {
  font-size: 0.95rem;
  color: var(--text);
}
.pa-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.post-related {
  padding: 60px 0 90px;
}
.post-related-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 26px;
  text-align: center;
}
.post-related-title::after {
  content: '';
  display: block;
  width: 54px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

@media (max-width: 860px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-grid-3 {
    grid-template-columns: 1fr;
  }
  .post-gallery {
    grid-template-columns: 1fr;
    margin-top: -32px;
  }
  .pg-side {
    grid-template-rows: none;
    grid-template-columns: repeat(3, 1fr);
  }
  .pg-main {
    aspect-ratio: 16 / 10;
  }
}

/* ============================================================
   ACCOUNT SYSTEM — auth, dashboards & admin
   (appended) Premium dark-blue, Montserrat, accent #4ea8ff
   ============================================================ */

/* ---------- shared buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ea8ff 0%, #2f86e6 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 28px rgba(47, 134, 230, 0.38);
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease,
    filter 0.25s ease;
}
.btn-primary svg {
  width: 18px;
  height: 18px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(78, 168, 255, 0.55);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary.sm {
  padding: 10px 16px;
  font-size: 13.5px;
}
.btn-primary.sm svg {
  width: 16px;
  height: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}
.btn-ghost.sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5b5b, #e02424);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(224, 36, 36, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease;
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(224, 36, 36, 0.5);
}
.btn-danger.sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-mini {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--text);
  transition: all 0.2s ease;
}
.btn-mini:hover {
  transform: translateY(-1px);
}
.btn-mini.ok {
  background: rgba(46, 204, 113, 0.16);
  border-color: rgba(46, 204, 113, 0.4);
  color: #7ef0b0;
}
.btn-mini.ok:hover {
  background: rgba(46, 204, 113, 0.28);
}
.btn-mini.no {
  background: rgba(255, 76, 76, 0.14);
  border-color: rgba(255, 76, 76, 0.4);
  color: #ff9b9b;
}
.btn-mini.no:hover {
  background: rgba(255, 76, 76, 0.26);
}
.btn-mini.warn {
  background: rgba(255, 179, 71, 0.14);
  border-color: rgba(255, 179, 71, 0.4);
  color: #ffce8a;
}

.link-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
  transition: color 0.2s ease;
}
.link-btn:hover {
  color: #fff;
}
.link-btn.danger {
  color: #ff9b9b;
}

/* ============================================================
   AUTH PAGES (login / register / forgot)
   ============================================================ */
.auth-body {
  background: var(--navy-950);
  min-height: 100vh;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.auth-shell-single {
  grid-template-columns: 1fr 1.1fr;
}

/* --- brand aside --- */
.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 48px 56px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(78, 168, 255, 0.22), transparent 55%),
    linear-gradient(160deg, #0a1530 0%, #0c1937 45%, #050b1a 100%);
  display: flex;
  flex-direction: column;
}
/* sol yarıda arka plan videosu — merkez, sayfa oranına göre ölçeklenir */
.aside-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
/* video-only aside: SADECE video oynar (orb/dots/hero/trust yok); logo üstte, GmbH altta */
.auth-aside--video {
  padding: 40px 44px;
  /* video aside'da mavi radyal vurguyu KIS (0.22→0.06) → videonun üstündeki mavi yoğunluğu azalır, daha net */
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(78, 168, 255, 0.06), transparent 55%),
    linear-gradient(160deg, #0a1530 0%, #0c1937 45%, #050b1a 100%);
}
.auth-aside--video .aside-video {
  opacity: 0.66;
} /* daha net/canlı; lacivert zemin üstünde ama üzerinde ağır mavi ton yok */
/* okunabilirlik için üst+alt hafif koyu gradyan (logo ve GmbH yazısı seçilsin) */
.auth-aside--video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 26, 0.55) 0%,
    rgba(5, 11, 26, 0.1) 26%,
    rgba(5, 11, 26, 0.12) 68%,
    rgba(5, 11, 26, 0.72) 100%
  );
}
.auth-aside--video .auth-aside-inner {
  justify-content: space-between;
}
/* alt: footer ünvanı (bold) */
.aside-entity {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.auth-aside-aurora {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 80%;
  background:
    radial-gradient(closest-side, rgba(78, 168, 255, 0.45), transparent 70%),
    radial-gradient(closest-side, rgba(125, 193, 255, 0.25), transparent 70%);
  background-position:
    20% 30%,
    80% 10%;
  background-repeat: no-repeat;
  background-size:
    60% 60%,
    50% 50%;
  filter: blur(20px);
  opacity: 0.7;
  animation: authAurora 14s ease-in-out infinite alternate;
}
@keyframes authAurora {
  0% {
    transform: translate3d(-4%, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(8%, 4%, 0) scale(1.12);
  }
}
.auth-aside-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent 75%);
  mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent 75%);
}
.auth-aside-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.auth-logo-link {
  display: inline-flex;
  align-items: center;
}
.auth-logo {
  height: 150px;
  width: auto;
  margin: -40px -16px -34px -16px;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.55));
}
.auth-aside-copy {
  margin-top: auto;
}
.auth-aside-title {
  font-size: 38px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.auth-aside-title span {
  color: var(--accent-soft);
}
.auth-aside-lead {
  margin-top: 16px;
  max-width: 430px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.auth-feature-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14.5px;
  color: var(--text);
}
.auth-feature-list strong {
  color: #fff;
  font-weight: 600;
}
.auth-feat-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.22), rgba(78, 168, 255, 0.06));
  border: 1px solid rgba(78, 168, 255, 0.3);
  color: var(--accent-soft);
}
.auth-feat-ico svg {
  width: 19px;
  height: 19px;
}
.auth-aside-trust {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-avatars {
  display: flex;
}
.auth-avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-left: -10px;
  border: 2px solid var(--navy-900);
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
}
.auth-avatars span:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #7dc1ff, #4ea8ff);
}
.auth-avatars span:nth-child(2) {
  background: linear-gradient(135deg, #5ad1b0, #2fae86);
}
.auth-avatars span:nth-child(3) {
  background: linear-gradient(135deg, #c08bff, #7d5af0);
}
.auth-aside-trust p {
  font-size: 13.5px;
  color: var(--text-muted);
}
.auth-aside-trust strong {
  color: #fff;
}

/* --- form panel --- */
.auth-main {
  display: flex;
  flex-direction: column;
  background: var(--navy-950);
}
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.auth-back svg {
  width: 18px;
  height: 18px;
}
.auth-back:hover {
  color: #fff;
}
.auth-lang .lang-trigger {
  color: var(--text);
}

.auth-card-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px 48px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
}
.auth-card-head {
  text-align: center;
  margin-bottom: 24px;
}
.auth-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.auth-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* segmented control */
.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 22px;
}
.seg-thumb {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.9), rgba(47, 134, 230, 0.9));
  box-shadow: 0 8px 20px rgba(47, 134, 230, 0.4);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}
.seg-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s ease;
}
.seg-btn svg {
  width: 18px;
  height: 18px;
}
.seg-btn.is-active {
  color: #fff;
}

/* alert */
.auth-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.auth-alert.is-error {
  background: rgba(255, 76, 76, 0.12);
  border-color: rgba(255, 76, 76, 0.35);
  color: #ffb3b3;
}
.auth-alert.is-success {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.35);
  color: #8af0b6;
}
.auth-alert.is-info {
  background: rgba(78, 168, 255, 0.12);
  border-color: rgba(78, 168, 255, 0.35);
  color: var(--accent-soft);
}

/* forms & fields */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 2px;
}
.field-label em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-dim);
}
.field-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 0 14px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.field-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 168, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}
.field-ico {
  flex: 0 0 auto;
  color: var(--text-dim);
  display: grid;
  place-items: center;
}
.field-ico svg {
  width: 18px;
  height: 18px;
}
.field-box:focus-within .field-ico {
  color: var(--accent-soft);
}
.field-box input,
.field-box textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  padding: 13px 0;
  resize: vertical;
}
.field-box textarea {
  padding: 13px 0;
  line-height: 1.6;
}
.field-box input::placeholder,
.field-box textarea::placeholder {
  color: var(--text-dim);
}
.field-box input:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}
/* premium dark select — applies to EVERY select inside a .field-box (listing form,
   admin facility mgmt, facility editor, auth register…). Custom caret via data-URI. */
.field-box select {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  padding: 13px 26px 13px 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%237d8bab' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px;
}
.field-box select option,
.field-box select optgroup {
  background: #0d1730;
  color: var(--text);
}
.field-box select:has(option[value='']:checked) {
  color: var(--text-dim);
}
.field-eye {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  background: no-repeat center/18px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8bab' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  transition: opacity 0.2s ease;
}
.field-eye.is-on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ea8ff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.9 17.9A10.4 10.4 0 0 1 12 19c-7 0-11-7-11-7a18 18 0 0 1 5.1-5.9M9.9 4.2A10.4 10.4 0 0 1 12 4c7 0 11 7 11 7a18 18 0 0 1-2.2 3.2M1 1l22 22M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.doctor-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doctor-note {
  display: flex;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(78, 168, 255, 0.08);
  border: 1px solid rgba(78, 168, 255, 0.22);
  border-radius: 11px;
  padding: 11px 13px;
}
.doctor-note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--accent-soft);
  margin-top: 1px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check-box {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  display: inline-grid;
  place-items: center;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}
.check input:checked + .check-box {
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  border-color: transparent;
}
.check input:checked + .check-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.check input:focus-visible + .check-box {
  box-shadow: 0 0 0 3px rgba(78, 168, 255, 0.3);
}
.check-terms {
  align-items: flex-start;
}
.check-terms .check-box {
  margin-top: 1px;
}
.auth-link {
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 13.5px;
  transition: color 0.2s ease;
  background: none;
}
.auth-link:hover {
  color: #fff;
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}
.auth-divider {
  position: relative;
  text-align: center;
  margin: 22px 0;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  position: relative;
  background: var(--navy-950);
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.social-btn svg {
  width: 18px;
  height: 18px;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-demo {
  margin-top: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.auth-demo summary {
  cursor: pointer;
  padding: 9px 0;
  font-size: 12.5px;
  color: var(--text-dim);
  font-weight: 600;
  list-style: none;
}
.auth-demo summary::-webkit-details-marker {
  display: none;
}
.auth-demo summary::before {
  content: '\25B8  ';
}
.auth-demo[open] summary::before {
  content: '\25BE  ';
}
.auth-demo ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 12px;
}
.demo-fill {
  width: 100%;
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.demo-fill b {
  color: var(--accent-soft);
}
.demo-fill:hover {
  background: rgba(78, 168, 255, 0.12);
  color: #fff;
}

/* ---------- reset / forgot specifics ---------- */
.reset-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}
.reset-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.reset-steps li span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  transition: all 0.25s ease;
}
.reset-steps li.is-active {
  color: #fff;
}
.reset-steps li.is-active span {
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  border-color: transparent;
}
.reset-steps li.is-done span {
  background: rgba(46, 204, 113, 0.2);
  border-color: rgba(46, 204, 113, 0.5);
  color: #8af0b6;
}
.reset-steps li::after {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}
.reset-steps li:last-child::after {
  display: none;
}
.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.otp input {
  aspect-ratio: 1/1;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.otp input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 168, 255, 0.15);
}
.reset-resend {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.pw-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: -4px;
}
.pw-meter span {
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
  transition: background 0.25s ease;
}
.pw-meter[data-score='1'] span:nth-child(-n + 1) {
  background: #ff5b5b;
}
.pw-meter[data-score='2'] span:nth-child(-n + 2) {
  background: #ffb347;
}
.pw-meter[data-score='3'] span:nth-child(-n + 3) {
  background: #4ea8ff;
}
.pw-meter[data-score='4'] span {
  background: #2ecc71;
}
.reset-done {
  text-align: center;
  padding: 10px 0;
}
.reset-done-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #6ff0a8;
}
.reset-done-ico svg {
  width: 30px;
  height: 30px;
}
.reset-done .auth-submit {
  max-width: 230px;
  margin: 22px auto 0;
}

/* ============================================================
   APP SHELL (dashboards & admin)
   ============================================================ */
.app-body {
  height: 100vh;
  overflow: hidden;
  background: var(--navy-950);
}
.app-shell {
  display: grid;
  grid-template-columns: 266px 1fr;
  height: 100vh;
}

/* --- sidebar --- */
.app-sidebar {
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border-right: 1px solid var(--line);
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}
.sidebar-logo img {
  height: 92px;
  width: auto;
  margin: -30px -10px -32px -8px;
}
.sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.sidebar-close svg {
  width: 18px;
  height: 18px;
}
.admin-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 6px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.12);
  border: 1px solid rgba(78, 168, 255, 0.3);
  padding: 3px 9px;
  border-radius: 6px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 168, 255, 0.45) transparent;
  overscroll-behavior: contain;
}
.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(78, 168, 255, 0.4);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 168, 255, 0.7);
  background-clip: padding-box;
}
.sidebar-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 7px 12px 4px;
}
.sidebar-group--toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  margin: 2px 0 0;
  transition:
    color 0.18s ease,
    background 0.18s ease;
  outline: none;
}
.sidebar-group--toggle:hover {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
}
.sidebar-group--toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(78, 168, 255, 0.4);
}
.sg-chev {
  display: inline-flex;
  align-items: center;
  opacity: 0.55;
  transition:
    transform 0.25s ease,
    opacity 0.18s ease;
}
.sg-chev svg {
  width: 12px;
  height: 12px;
}
.sidebar-group--toggle:hover .sg-chev {
  opacity: 0.9;
}
.sidebar-group.is-collapsed .sg-chev {
  transform: rotate(-90deg);
}
.side-link.nav-collapsed {
  display: none !important;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 13px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.side-link svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.side-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.side-link.is-active {
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.18), rgba(78, 168, 255, 0.05));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}
.side-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.side-badge.alt {
  background: linear-gradient(135deg, #ff7b7b, #e84545);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #ff9b9b;
  background: rgba(255, 76, 76, 0.07);
  border: 1px solid rgba(255, 76, 76, 0.18);
  transition: background 0.2s ease;
}
.sidebar-logout svg {
  width: 18px;
  height: 18px;
}
.sidebar-logout:hover {
  background: rgba(255, 76, 76, 0.16);
}
.app-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 35;
}

/* --- main column --- */
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
}
.app-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 21, 48, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  flex: 0 0 auto;
}
.topbar-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.topbar-burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.topbar-title {
  margin-right: auto;
  min-width: 0;
}
.topbar-title h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.topbar-title p {
  font-size: 12.5px;
  color: var(--text-dim);
}
.topbar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(340px, 34vw);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.topbar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 168, 255, 0.13);
}
.topbar-search svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  flex: 0 0 auto;
}
.topbar-search input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 0;
}
.topbar-search input::placeholder {
  color: var(--text-dim);
}
.topbar-search.inline {
  margin-left: 0;
  width: min(300px, 100%);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.icon-btn .dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5b5b;
  border: 2px solid var(--navy-900);
}

/* avatar + user menu */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  text-transform: uppercase;
  flex: 0 0 auto;
}
.avatar.admin {
  background: linear-gradient(135deg, #c08bff, #7d5af0);
}
.avatar.xl {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  font-size: 24px;
}
/* real profile photo → round, fills the avatar box */
.avatar.has-photo {
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.avatar-edit {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
}
.avatar-upload {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 2px solid #0d1730;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.avatar-upload:hover {
  transform: scale(1.08);
}
.avatar-upload svg {
  width: 15px;
  height: 15px;
}
.avatar-edit.uploading .avatar-upload {
  opacity: 0.5;
  pointer-events: none;
}
.user-menu {
  position: relative;
}
.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 5px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.user-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}
.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.user-meta strong {
  font-size: 13.5px;
  font-weight: 600;
}
.user-meta small {
  font-size: 11.5px;
  color: var(--text-dim);
}
.user-caret {
  width: 12px;
  height: 12px;
  color: var(--text-dim);
  transition: transform 0.25s ease;
}
.user-menu.open .user-caret {
  transform: rotate(180deg);
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 50;
}
.user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.user-dropdown button {
  color: #ff9b9b;
}
.user-dropdown hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 5px 4px;
}

/* --- content --- */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  min-height: 0;
}
.panel {
  display: none;
  animation: panelIn 0.35s ease;
}
.panel.is-active {
  display: block;
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* welcome banner */
.welcome-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(78, 168, 255, 0.3), transparent 60%),
    linear-gradient(135deg, var(--navy-700), var(--navy-850));
  border: 1px solid var(--line-strong);
}
.welcome-banner.doctor {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(46, 204, 113, 0.22), transparent 60%),
    linear-gradient(135deg, #0e2c44, var(--navy-850));
}
.welcome-banner.admin {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(157, 124, 255, 0.28), transparent 60%),
    linear-gradient(135deg, #1a1f4a, var(--navy-850));
}
.welcome-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
}
.welcome-banner h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 6px 0 8px;
}
.welcome-text p {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 560px;
  line-height: 1.6;
}
.welcome-cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.welcome-art {
  flex: 0 0 auto;
  opacity: 0.9;
}
.welcome-art svg {
  width: 120px;
  height: 120px;
}

/* stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--line);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.stat-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.stat-ico svg {
  width: 24px;
  height: 24px;
  color: #fff;
}
.stat-ico.c1 {
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
}
.stat-ico.c2 {
  background: linear-gradient(135deg, #5ad1b0, #2fae86);
}
.stat-ico.c3 {
  background: linear-gradient(135deg, #ffb347, #f08a24);
}
.stat-ico.c4 {
  background: linear-gradient(135deg, #c08bff, #7d5af0);
}
.stat-meta {
  display: flex;
  flex-direction: column;
}
.stat-meta strong {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.stat-meta span {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* facility overview extras */
.fac-status-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 2px;
}
.fac-status-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.fac-status-ico svg {
  width: 26px;
  height: 26px;
  color: #fff;
}
.fac-status-hero.is-live .fac-status-ico {
  background: linear-gradient(135deg, #5ad1b0, #2fae86);
  box-shadow: 0 8px 22px rgba(47, 174, 134, 0.3);
}
.fac-status-hero.is-pending .fac-status-ico {
  background: linear-gradient(135deg, #ffb347, #f08a24);
  box-shadow: 0 8px 22px rgba(240, 138, 36, 0.28);
}
.fac-status-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.fac-status-txt strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.fac-status-txt span {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.fac-status-hero .btn-ghost {
  flex: 0 0 auto;
}
.fac-empty-cta {
  margin-top: 14px;
}

/* doctor "Kurumlarım" — partner facility picker */
.pf-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pf-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.pf-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 168, 255, 0.13);
}
.pf-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  flex: 0 0 auto;
}
.pf-search input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 0;
}
.pf-search input::placeholder {
  color: var(--text-dim);
}
.pf-chips {
  display: flex;
  gap: 8px;
}
.pf-chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
}
.pf-chip:hover {
  color: var(--text);
  border-color: rgba(78, 168, 255, 0.4);
}
.pf-chip.is-active {
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 134, 230, 0.3);
}
.pf-count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--accent-soft);
  font-weight: 600;
  white-space: nowrap;
}
.pf-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pf-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.pf-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #4ea8ff, #2f86e6);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pf-card:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 168, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(78, 168, 255, 0.15);
}
.pf-card.is-partner {
  border-color: rgba(78, 168, 255, 0.5);
  background: linear-gradient(90deg, rgba(78, 168, 255, 0.07), rgba(255, 255, 255, 0.02) 55%);
}
.pf-card.is-partner::before {
  opacity: 1;
}
.pf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.pf-logo {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.18), rgba(47, 134, 230, 0.08));
  border: 1px solid var(--line);
}
.pf-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-logo svg {
  width: 23px;
  height: 23px;
  color: var(--accent-soft);
}
.pf-meta {
  min-width: 0;
  flex: 1;
}
.pf-meta strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-meta span {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-kind {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(78, 168, 255, 0.12);
  color: var(--accent-soft);
  border: 1px solid rgba(78, 168, 255, 0.25);
}
.pf-toggle {
  flex: 0 0 auto;
  min-width: 158px;
  padding: 10px 24px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.pf-toggle:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(78, 168, 255, 0.12);
}
.pf-card.is-partner .pf-toggle {
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 134, 230, 0.3);
}
.pf-saved {
  font-size: 12px;
  color: #5ad1b0;
  font-weight: 600;
}
.pf-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.pf-group b {
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(78, 168, 255, 0.15);
  border: 1px solid rgba(78, 168, 255, 0.3);
  color: var(--accent-soft);
}
.pf-group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(78, 168, 255, 0.28), transparent);
}
.dl-nofac {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  font-size: 13px;
  color: var(--text-dim);
}
.dl-nofac .btn-ghost {
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .pf-card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }
  .pf-head {
    flex: 1 1 100%;
  }
  .pf-kind {
    order: 2;
  }
  .pf-toggle {
    order: 3;
    flex: 1;
    min-width: 0;
  }
  .pf-count {
    margin-left: 0;
    width: 100%;
  }
}

/* cards */
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-head h3 {
  font-size: 16.5px;
  font-weight: 600;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.grid-2 .card {
  margin-bottom: 0;
}

/* appointment / message lists */
.appt-list {
  display: flex;
  flex-direction: column;
}
.appt-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}
.appt-list li:last-child {
  border-bottom: 0;
}
.appt-list.big li {
  padding: 15px 4px;
  flex-wrap: wrap;
}
.appt-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  flex: 0 0 auto;
  text-transform: uppercase;
}
.appt-avatar.lg {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 18px;
}
.appt-avatar.sm {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 11px;
}
.appt-avatar.admin {
  background: linear-gradient(135deg, #c08bff, #7d5af0);
}
.appt-time {
  flex: 0 0 auto;
  width: 52px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-soft);
}
.appt-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.appt-info strong {
  font-size: 14.5px;
  font-weight: 600;
}
.appt-info span {
  font-size: 12.5px;
  color: var(--text-muted);
}
.appt-when {
  display: flex;
  flex-direction: column;
  text-align: right;
  flex: 0 0 auto;
}
.appt-when strong {
  font-size: 13.5px;
}
.appt-when span {
  font-size: 12px;
  color: var(--text-dim);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-blue {
  background: rgba(78, 168, 255, 0.16);
  color: var(--accent-soft);
}
.badge-green {
  background: rgba(46, 204, 113, 0.16);
  color: #7ef0b0;
}
.badge-amber {
  background: rgba(255, 179, 71, 0.16);
  color: #ffce8a;
}
.badge-red {
  background: rgba(255, 76, 76, 0.16);
  color: #ff9b9b;
}

.tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.tip-list li:last-child {
  border-bottom: 0;
}
.tip-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  box-shadow: 0 0 10px var(--accent-glow);
}

.msg-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 6px;
  border-radius: 12px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.msg-list li:hover {
  background: rgba(255, 255, 255, 0.04);
}
.msg-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.msg-info strong {
  font-size: 14px;
  font-weight: 600;
}
.msg-info span {
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-list time {
  font-size: 12px;
  color: var(--text-dim);
  flex: 0 0 auto;
}
.msg-list li.unread {
  background: rgba(78, 168, 255, 0.06);
}
.msg-list li.unread strong::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 7px;
  vertical-align: middle;
}

/* records / doctor cards */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.rec-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
  cursor: pointer;
}
.rec-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.rec-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(78, 168, 255, 0.14);
  color: var(--accent-soft);
}
.rec-ico svg {
  width: 21px;
  height: 21px;
}
.rec-card strong {
  font-size: 14px;
  font-weight: 600;
}
.rec-card span {
  font-size: 12px;
  color: var(--text-dim);
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 24px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.doc-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.doc-card strong {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}
.doc-card > span:not(.appt-avatar) {
  font-size: 13px;
  color: var(--text-muted);
}
.doc-rate {
  font-size: 12.5px;
  color: #ffce8a;
  margin-bottom: 6px;
}

/* tabs line + filter chips */
.tabs-line {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  width: -moz-fit-content;
  width: fit-content;
}
.tabs-line button {
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.tabs-line button.is-active {
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.9), rgba(47, 134, 230, 0.9));
  color: #fff;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chips button {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  transition: all 0.2s ease;
}
.filter-chips button:hover {
  color: #fff;
}
.filter-chips button.is-active {
  background: rgba(78, 168, 255, 0.16);
  border-color: rgba(78, 168, 255, 0.4);
  color: var(--accent-soft);
}

/* requests */
.req-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
}
.req-list li:last-child {
  border-bottom: 0;
}
.req-list li.resolved {
  opacity: 0.6;
}
.req-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

/* data tables */
.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-strong);
}
.data-table td {
  padding: 13px 14px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background 0.2s ease;
}
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.cell-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.row-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

/* bars chart */
.bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  height: 150px;
  padding: 10px 4px 0;
}
.bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  height: 100%;
  justify-content: flex-end;
}
.bar span {
  width: 100%;
  max-width: 34px;
  border-radius: 8px 8px 4px 4px;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent-soft), rgba(47, 134, 230, 0.4));
  box-shadow: 0 6px 16px rgba(47, 134, 230, 0.25);
  animation: barRise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@keyframes barRise {
  from {
    height: 0;
    opacity: 0.3;
  }
}
.bar small {
  font-size: 11px;
  color: var(--text-dim);
}
.muted-line {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}
.muted-line.sm {
  font-size: 12px;
  margin: 0;
}
.up {
  color: #7ef0b0;
  font-weight: 600;
}

/* calendar */
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-dow {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  padding-bottom: 4px;
}
.cal-day {
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}
.cal-day:hover {
  border-color: var(--line-strong);
}
.cal-day.muted {
  color: var(--text-dim);
  opacity: 0.5;
}
.cal-day.has::after {
  content: '';
  position: absolute;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-day.today {
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(47, 134, 230, 0.4);
}

/* toggle list / switch */
.toggle-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}
.toggle-list li:last-child {
  border-bottom: 0;
}
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-strong);
  transition: background 0.25s ease;
}
.switch span::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.switch input:checked + span {
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  border-color: transparent;
}
.switch input:checked + span::before {
  transform: translateX(20px);
}

/* profile + forms */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.profile-hero h3 {
  font-size: 20px;
  font-weight: 700;
}
.profile-hero p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 3px 0 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .field.span-2,
.form-grid .form-actions.span-2 {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.save-ok {
  font-size: 13px;
  font-weight: 600;
  color: #7ef0b0;
}
.save-err {
  font-size: 13px;
  font-weight: 600;
  color: #ff9b9b;
}

/* empty + danger */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 42px 20px;
  text-align: center;
  color: var(--text-dim);
}
.empty-state svg {
  width: 46px;
  height: 46px;
  color: rgba(46, 204, 113, 0.6);
}
.empty-state.sm {
  padding: 24px;
}
.empty-state p {
  font-size: 14px;
}
.danger-card {
  border-color: rgba(255, 76, 76, 0.2);
}

/* ============================================================
   RESPONSIVE — account system
   ============================================================ */
@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  .auth-shell,
  .auth-shell-single {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    display: none;
  }
  .auth-card-wrap {
    padding: 10px 22px 40px;
  }
  .auth-topbar {
    padding: 20px 22px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  body.sidebar-open .app-sidebar {
    transform: translateX(0);
    box-shadow: 30px 0 60px rgba(0, 0, 0, 0.5);
  }
  body.sidebar-open .app-overlay {
    display: block;
  }
  .sidebar-close {
    display: grid;
    place-items: center;
  }
  .topbar-burger {
    display: flex;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .app-content {
    padding: 18px 16px;
  }
  .app-topbar {
    padding: 13px 16px;
    gap: 12px;
  }
  .topbar-search {
    display: none;
  }
  .topbar-title h1 {
    font-size: 17px;
  }
  .stat-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 15px;
    gap: 12px;
  }
  .stat-ico {
    width: 44px;
    height: 44px;
  }
  .stat-meta strong {
    font-size: 22px;
  }
  .welcome-banner {
    padding: 24px 22px;
  }
  .welcome-art {
    display: none;
  }
  .welcome-banner h2 {
    font-size: 22px;
  }
  .user-meta {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .auth-social {
    grid-template-columns: 1fr;
  }
  .auth-title {
    font-size: 23px;
  }
  .otp {
    gap: 7px;
  }
  .otp input {
    font-size: 18px;
    border-radius: 10px;
  }
  .appt-when {
    display: none;
  }
}

/* [hidden] must always win over flex/grid display rules */
[hidden] {
  display: none !important;
}

/* overflow safety: prevent flex children from forcing horizontal scroll */
.app-content {
  overflow-x: hidden;
}
.stat-card,
.stat-meta,
.welcome-text,
.appt-info,
.msg-info,
.doc-card {
  min-width: 0;
}
.stat-meta span {
  overflow-wrap: anywhere;
}

/* topbar must sit above .app-content so the user dropdown isn't covered
   (backdrop-filter on the topbar creates a stacking context; without an
   explicit z-index the later .app-content paints over it) */
.app-topbar {
  position: relative;
  z-index: 20;
}

/* sidebar logo — enlarged to better fill the panel (PNG is 2000x2000 with
   transparent padding, so negative margins crop the surrounding whitespace) */
.sidebar-logo img {
  height: 162px;
  margin: -40px -14px -42px -12px;
}

/* keep the square logo's aspect ratio (override the global img max-width clamp) */
.sidebar-logo {
  display: inline-flex;
}
.sidebar-logo img {
  width: auto;
  max-width: none;
  height: 162px;
  margin: -40px -12px -42px -12px;
}

/* ============================================================
   AUTH BRAND ASIDE — premium revamp (v2)
   layered aurora orbs · orbit rings · dotted texture ·
   glass appointment preview card · animated accents
   ============================================================ */
.auth-aside {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 44px 50px;
  background: linear-gradient(165deg, #0a1733 0%, #0b1a3c 42%, #060d20 100%);
  display: flex;
  flex-direction: column;
}

/* --- decorative background layers --- */
.aside-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aside-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
}
.aside-bg .orb-1 {
  width: 520px;
  height: 520px;
  left: -170px;
  top: -130px;
  background: radial-gradient(circle at 35% 35%, rgba(78, 168, 255, 0.85), transparent 70%);
  opacity: 0.6;
  animation: asideOrb1 19s ease-in-out infinite alternate;
}
.aside-bg .orb-2 {
  width: 430px;
  height: 430px;
  right: -130px;
  top: 90px;
  background: radial-gradient(circle at 50% 50%, rgba(141, 103, 255, 0.7), transparent 70%);
  opacity: 0.5;
  animation: asideOrb2 23s ease-in-out infinite alternate;
}
.aside-bg .orb-3 {
  width: 480px;
  height: 480px;
  left: 40px;
  bottom: -200px;
  background: radial-gradient(circle at 50% 50%, rgba(47, 174, 134, 0.6), transparent 70%);
  opacity: 0.45;
  animation: asideOrb3 21s ease-in-out infinite alternate;
}
@keyframes asideOrb1 {
  to {
    transform: translate(70px, 46px) scale(1.12);
  }
}
@keyframes asideOrb2 {
  to {
    transform: translate(-56px, 64px) scale(1.16);
  }
}
@keyframes asideOrb3 {
  to {
    transform: translate(46px, -54px) scale(1.1);
  }
}

.aside-bg .aside-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1.1px, transparent 1.3px);
  background-size: 26px 26px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(120% 95% at 28% 22%, #000 28%, transparent 74%);
  mask-image: radial-gradient(120% 95% at 28% 22%, #000 28%, transparent 74%);
}

.aside-bg .aside-rings {
  position: absolute;
  top: 6%;
  right: -14%;
  width: 560px;
  height: 560px;
  opacity: 0.55;
  animation: asideSpin 64s linear infinite;
}
.aside-bg .aside-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(125, 193, 255, 0.16);
  border-radius: 50%;
}
.aside-bg .aside-rings i:nth-child(2) {
  inset: 70px;
  border-color: rgba(125, 193, 255, 0.12);
}
.aside-bg .aside-rings i:nth-child(3) {
  inset: 150px;
  border-color: rgba(125, 193, 255, 0.09);
}
.aside-bg .aside-rings i:nth-child(1)::after,
.aside-bg .aside-rings i:nth-child(3)::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 16px 2px var(--accent);
}
.aside-bg .aside-rings i:nth-child(3)::after {
  top: auto;
  bottom: -5px;
  background: #9d7cff;
  box-shadow: 0 0 16px 2px rgba(141, 103, 255, 0.8);
}
@keyframes asideSpin {
  to {
    transform: rotate(360deg);
  }
}

/* soft top sheen + bottom vignette */
.auth-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(100% 55% at 50% -8%, rgba(78, 168, 255, 0.16), transparent 62%),
    linear-gradient(180deg, transparent 58%, rgba(3, 7, 18, 0.55));
}

.auth-aside-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- hero block (vertically centred, fills the empty space) --- */
.aside-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.aside-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #dbe9ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ee0a8;
  box-shadow: 0 0 0 0 rgba(78, 224, 168, 0.55);
  animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 224, 168, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(78, 224, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 224, 168, 0);
  }
}

.auth-aside-title {
  font-size: 40px;
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: -0.9px;
  color: #fff;
}
.auth-aside-title span {
  background: linear-gradient(100deg, #7dc1ff 0%, #4ea8ff 55%, #9d7cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.auth-aside-lead {
  max-width: 440px;
  margin-top: 0;
  color: #aebbd6;
  font-size: 15px;
  line-height: 1.7;
}

/* --- floating glass appointment card --- */
.aside-card {
  position: relative;
  align-self: flex-start;
  width: min(340px, 100%);
  margin: 6px 0 2px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: asideFloat 6.5s ease-in-out infinite;
}
@keyframes asideFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}
.aside-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ac-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
}
.ac-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ac-meta strong {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}
.ac-meta small {
  font-size: 12px;
  color: #aebbd6;
}
.ac-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(78, 224, 168, 0.18);
  border: 1px solid rgba(78, 224, 168, 0.45);
  color: #7ef0b0;
}
.ac-check svg {
  width: 15px;
  height: 15px;
}
.ac-row {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}
.ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cfe0ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ac-chip svg {
  width: 14px;
  height: 14px;
}
.ac-chip.green {
  color: #8af0b6;
  background: rgba(46, 204, 113, 0.13);
  border-color: rgba(46, 204, 113, 0.32);
}
.aside-card-badge {
  position: absolute;
  top: -15px;
  right: -12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #1a1402;
  background: linear-gradient(135deg, #ffe08a, #ffc24d);
  box-shadow: 0 12px 26px rgba(255, 194, 77, 0.4);
  animation: asideFloat 6.5s ease-in-out infinite 0.5s;
}

/* --- feature list (refined) --- */
.auth-feature-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #dce6f7;
}
.auth-feature-list strong {
  color: #fff;
  font-weight: 600;
}
.auth-feat-ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.24), rgba(78, 168, 255, 0.05));
  border: 1px solid rgba(78, 168, 255, 0.32);
  color: var(--accent-soft);
}
.auth-feat-ico svg {
  width: 18px;
  height: 18px;
}

/* --- trust row (with stars) --- */
.auth-aside-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.auth-aside-trust p {
  font-size: 13px;
  color: #aebbd6;
  line-height: 1.45;
}
.auth-aside-trust strong {
  color: #fff;
}
.aside-stars {
  color: #ffc24d;
  font-size: 13px;
  letter-spacing: 1px;
}
.auth-avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-left: -10px;
  border: 2px solid #0a1530;
}
.auth-avatars span:first-child {
  margin-left: 0;
}

/* keep the logo balanced at the top */
.auth-logo {
  height: 138px;
  margin: -36px -14px -32px -14px;
}

/* shorter screens: tighten so nothing clips */
@media (max-height: 760px) {
  .aside-hero {
    gap: 15px;
    padding: 8px 0;
  }
  .auth-aside-title {
    font-size: 34px;
  }
  .aside-card {
    display: none;
  }
}

/* fit the richer aside within ~800px viewports without scroll */
.auth-aside {
  padding-top: 38px;
  padding-bottom: 38px;
}
.aside-hero {
  gap: 16px;
  padding: 10px 0;
}
.auth-feature-list {
  gap: 11px;
}

/* auth-aside logo — enlarged & nudged up to suit the layout (square 2000x2000
   PNG; negative margins crop the transparent padding, keep aspect ratio) */
.auth-logo {
  height: 176px;
  width: auto;
  max-width: none;
  margin: -50px -16px -30px -16px;
}

/* ============================================================
   ADMIN LOGIN MODE — founders' entrance (purple identity)
   ============================================================ */
.admin-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.admin-entry svg {
  width: 15px;
  height: 15px;
}
.admin-entry strong {
  font-weight: 700;
  color: var(--text-muted);
}
.admin-entry:hover {
  color: #cbb3ff;
  background: rgba(157, 124, 255, 0.08);
  border-color: rgba(157, 124, 255, 0.22);
}
.admin-entry:hover strong {
  color: #cbb3ff;
}

.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 14px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  background: rgba(157, 124, 255, 0.1);
  border: 1px solid rgba(157, 124, 255, 0.25);
  transition: background 0.2s ease;
}
.admin-back svg {
  width: 15px;
  height: 15px;
}
.admin-back:hover {
  background: rgba(157, 124, 255, 0.2);
  color: #fff;
}

.admin-shield {
  width: 58px;
  height: 58px;
  margin: 2px auto 16px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #b18cff, #7d5af0);
  box-shadow: 0 16px 34px rgba(125, 90, 240, 0.45);
  animation: shieldIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.admin-shield svg {
  width: 28px;
  height: 28px;
  color: #fff;
}
@keyframes shieldIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.85);
  }
}

/* recolour the card accents to the admin (purple) identity */
.auth-card.is-admin .btn-primary {
  background: linear-gradient(135deg, #a87bff, #7d5af0);
  box-shadow: 0 12px 28px rgba(125, 90, 240, 0.42);
}
.auth-card.is-admin .btn-primary:hover {
  box-shadow: 0 18px 40px rgba(157, 124, 255, 0.58);
}
.auth-card.is-admin .field-box:focus-within {
  border-color: #9d7cff;
  box-shadow: 0 0 0 4px rgba(157, 124, 255, 0.16);
}
.auth-card.is-admin .field-box:focus-within .field-ico {
  color: #cbb3ff;
}
.auth-card.is-admin .auth-link {
  color: #cbb3ff;
}
.auth-card.is-admin .check input:checked + .check-box {
  background: linear-gradient(135deg, #a87bff, #7d5af0);
}

/* nudge the sidebar logo up a touch (balanced bottom margin keeps nav in place) */
.sidebar-logo img {
  margin: -52px -12px -30px -12px;
}

/* raise the sidebar logo so its artwork lines up with the topbar heading
   (PNG art occupies the middle ~42-60% band; lots of transparent padding,
   so a larger negative top margin lifts it without clipping; bottom margin
   compensates to keep the nav position fixed) */
.sidebar-logo img {
  margin: -70px -12px -12px -12px;
}

/* ===== Index cards: centered text + FIXED size across languages =====
   Card height stays constant; main.js shrinks the text to fit when a
   translation is longer (e.g. 3 lines in German vs 2 in Turkish). */
.card-body {
  padding: 14px clamp(10px, 1vw, 16px) 16px;
  height: 116px;
  overflow: hidden;
  gap: 6px;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.card-title {
  text-align: center;
  width: 100%;
}
.card-desc {
  text-align: center;
  width: 100%;
  max-width: 94%;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   PANEL CHAT (patient ↔ doctor messaging)
   ============================================================ */
.hp-chat {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

/* ===== WhatsApp iki-panel (tam sayfa mesajlar): SOL liste + SAĞ sohbet ===== */
.hp-chat.hp-chat-2pane {
  flex-direction: row;
  height: calc(100vh - 190px);
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-900);
}
.hp-chat-list {
  flex: 0 0 340px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(5, 11, 26, 0.35);
}
.hp-chat-conv {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.hp-chat-2pane .chat-stream {
  max-height: none;
} /* tam yüksekliği doldur (440px sınırı kalksın) */
.hp-chat-2pane .chat-head {
  border-radius: 0;
}
.hp-chat-2pane .chat-back {
  display: none;
} /* masaüstünde liste hep görünür → geri butonu gerekmez */
/* sağ bölme boş-durum (WhatsApp tarzı) */
.chat-conv-empty {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--text-dim);
  padding: 40px 24px;
}
.chat-conv-empty svg {
  width: 68px;
  height: 68px;
  color: var(--accent);
  opacity: 0.5;
}
.chat-conv-empty p {
  font-size: 14px;
  max-width: 240px;
}
.chat-thread.is-active {
  background: rgba(78, 168, 255, 0.12);
}
/* mesajlar paneli: kart çerçevesini/başlığını kaldır → iki-panel tam genişlik/yükseklik, tek çerçeve */
.panel[data-panel='messages'] > .card {
  padding: 0;
  background: transparent;
  border: none;
  margin-bottom: 0;
}
.panel[data-panel='messages'] > .card > .card-head {
  display: none;
}
/* mobil: tek panel — liste; sohbet açılınca sağ bölme tam ekran + geri butonu */
@media (max-width: 760px) {
  .hp-chat.hp-chat-2pane {
    height: calc(100vh - 150px);
  }
  .hp-chat-list {
    flex-basis: 100%;
    max-width: 100%;
    border-right: none;
  }
  .hp-chat-conv {
    display: none;
  }
  .hp-chat-2pane.is-conv-open .hp-chat-list {
    display: none;
  }
  .hp-chat-2pane.is-conv-open .hp-chat-conv {
    display: flex;
  }
  .hp-chat-2pane .chat-back {
    display: inline-flex;
  }
}

/* ===== PREMIUM sohbet (iki-panel): derinlik, gradyan, cam, accent glow ===== */
.hp-chat.hp-chat-2pane {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(78, 168, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #0c1836, #0a1330);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
/* SOL liste — kart-benzeri satırlar, avatar halkaları, premium aktif durum */
.hp-chat-2pane .hp-chat-list {
  padding: 0;
  background: linear-gradient(180deg, rgba(9, 18, 42, 0.55), rgba(6, 12, 28, 0.55));
}
.hp-chat-2pane .chat-threads {
  padding: 8px;
}
/* liste başlığı — sticky premium */
.hp-chat-list-head {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 64px; /* sağ sohbet başlığıyla AYNI yükseklik → alt çizgiler hizalı */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 19, 44, 0.98), rgba(10, 19, 44, 0.86));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hp-chat-list-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.15);
  border: 1px solid rgba(78, 168, 255, 0.28);
  border-radius: 999px;
  padding: 1px 8px;
}
.hp-chat-2pane .chat-thread {
  border-bottom: none;
  margin-bottom: 3px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.hp-chat-2pane .chat-thread:hover {
  background: rgba(78, 168, 255, 0.09);
  border-color: rgba(78, 168, 255, 0.14);
}
.hp-chat-2pane .chat-thread.is-active {
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.22), rgba(78, 168, 255, 0.05));
  border-color: rgba(78, 168, 255, 0.38);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.hp-chat-2pane .chat-thread .hp-avatar {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.06);
}
.hp-chat-2pane .chat-thread.is-active .hp-avatar {
  box-shadow:
    0 0 0 2px rgba(78, 168, 255, 0.55),
    0 4px 14px rgba(78, 168, 255, 0.3);
}
.hp-chat-2pane .chat-unread {
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(78, 168, 255, 0.5);
}
/* SAĞ sohbet — dokulu derinlik zemini */
.hp-chat-2pane .hp-chat-conv {
  padding: 0 14px;
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(78, 168, 255, 0.06), transparent 70%),
    radial-gradient(closest-side at 12% 88%, rgba(78, 168, 255, 0.05), transparent),
    linear-gradient(180deg, #0b1630, #091228);
}
.hp-chat-2pane .chat-head {
  height: 64px; /* sol liste başlığıyla AYNI yükseklik → alt çizgiler hizalı */
  box-sizing: border-box;
  flex: 0 0 auto;
  padding: 0 6px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.hp-chat-2pane .chat-head .hp-avatar {
  box-shadow:
    0 0 0 2px rgba(78, 168, 255, 0.35),
    0 3px 10px rgba(0, 0, 0, 0.4);
}
.hp-chat-2pane .chat-stream {
  padding: 16px 6px 10px;
  gap: 10px;
}
/* baloncuklar — premium (cam theirs + gradyan+glow mine) */
.hp-chat-2pane .chat-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.hp-chat-2pane .chat-bubble.theirs {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 6px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hp-chat-2pane .chat-bubble.mine {
  background: linear-gradient(135deg, #5cb0ff 0%, #3b8ef0 55%, #2f7fe0 100%);
  border-bottom-right-radius: 6px;
  box-shadow:
    0 6px 18px rgba(47, 134, 230, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.hp-chat-2pane .chat-bubble > time {
  font-size: 10px;
  opacity: 0.6;
}
/* gün ayracı — cam pill */
.hp-chat-2pane .chat-daysep span {
  background: rgba(10, 20, 45, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  padding: 4px 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
/* giriş çubuğu — premium alan + gradyan gönder butonu (glow) */
.hp-chat-2pane .chat-input {
  padding: 12px 6px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hp-chat-2pane .chat-input .chat-text {
  background: rgba(5, 11, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}
.hp-chat-2pane .chat-input .chat-text:focus {
  border-color: rgba(78, 168, 255, 0.5);
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(78, 168, 255, 0.12);
}
.hp-chat-2pane .chat-input button[type='submit'] {
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  box-shadow: 0 4px 14px rgba(78, 168, 255, 0.45);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.hp-chat-2pane .chat-input button[type='submit']:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 20px rgba(78, 168, 255, 0.6);
}

.chat-loading,
.chat-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-dim);
}
.chat-empty.sm {
  padding: 24px;
}

/* round avatars (real photo + initials fallback) */
.hp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.hp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-threads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.chat-thread {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.18s ease;
}
.chat-thread:hover {
  background: rgba(78, 168, 255, 0.08);
}
.chat-thread.is-unread {
  background: rgba(78, 168, 255, 0.06);
}
.chat-thread.is-unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.chat-thread-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-thread-meta strong {
  color: var(--white);
  font-size: 14px;
}
.chat-thread.is-unread .chat-thread-meta strong {
  font-weight: 800;
}
.chat-thread-last {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-thread.is-unread .chat-thread-last {
  color: var(--text);
}
.chat-thread-tag {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.14);
  border-radius: 5px;
  padding: 1px 5px;
  margin-right: 2px;
}
.chat-thread-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}
.chat-thread-side time {
  color: var(--text-dim);
  font-size: 11px;
  white-space: nowrap;
}
.chat-thread-flags {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-mute-ic {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}
.chat-unread {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.chat-thread-menu {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--text-dim);
  opacity: 0;
  transition:
    opacity 0.15s,
    background 0.15s;
  cursor: pointer;
}
.chat-thread:hover .chat-thread-menu {
  opacity: 1;
}
.chat-thread-menu:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.chat-thread-menu svg {
  width: 16px;
  height: 16px;
}

/* floating popovers (mute/delete, react, attach, emoji insert) */
.chat-pop {
  position: absolute;
  z-index: 40;
  background: #0d1730;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
}
.chat-pop button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
}
.chat-pop button:hover {
  background: rgba(78, 168, 255, 0.12);
  color: #fff;
}
.chat-pop button.danger {
  color: #ff8a8a;
}
.chat-pop button.danger:hover {
  background: rgba(255, 90, 90, 0.14);
}
.chat-pop svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.chat-thread-pop {
  top: 44px;
  right: 8px;
}
.chat-head-pop {
  top: 48px;
  right: 4px;
}

.chat-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.chat-head-name {
  flex: 1;
  min-width: 0;
}
.chat-head-name strong {
  color: var(--white);
  font-size: 15px;
}
.chat-head-menu {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-dim);
  cursor: pointer;
}
.chat-head-menu:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.chat-head-menu svg {
  width: 18px;
  height: 18px;
}
.chat-head-report {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-dim);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.chat-head-report:hover {
  background: rgba(255, 90, 95, 0.14);
  color: #ff5a5f;
}
.chat-head-report svg {
  width: 19px;
  height: 19px;
}
/* ===== Çeviri butonu + etiket + toast ===== */
.chat-head-translate {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-dim);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.chat-head-translate svg {
  width: 20px;
  height: 20px;
}
.chat-head-translate:hover {
  background: rgba(78, 168, 255, 0.14);
  color: var(--accent-soft, #4ea8ff);
}
.chat-head-translate.is-on {
  color: #fff;
  background: linear-gradient(135deg, #4ea8ff, #2f7fe0);
  box-shadow: 0 4px 16px rgba(78, 168, 255, 0.45);
}
.chat-head-translate.is-loading {
  pointer-events: none;
}
.chat-head-translate.is-loading svg {
  animation: chatTransSpin 1s linear infinite;
  opacity: 0.7;
}
@keyframes chatTransSpin {
  to {
    transform: rotate(360deg);
  }
}
.chat-trans-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 6px 2px 4px;
  border: none;
  background: none;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity 0.15s ease,
    color 0.15s ease;
}
.chat-trans-tag:hover {
  opacity: 1;
  color: var(--accent-soft, #4ea8ff);
}
.chat-trans-tag svg {
  width: 12px;
  height: 12px;
}
.chat-bubble.mine .chat-trans-tag {
  color: rgba(255, 255, 255, 0.78);
}
.chat-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: rgba(20, 26, 46, 0.97);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 11px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  z-index: 99999;
  animation: chatToastIn 0.2s ease;
}
.chat-toast.out {
  opacity: 0;
  transition: opacity 0.5s ease;
}
@keyframes chatToastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.chat-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.1);
  border: 1px solid rgba(78, 168, 255, 0.2);
  cursor: pointer;
}
.chat-back svg {
  width: 18px;
  height: 18px;
}
.chat-back:hover {
  background: rgba(78, 168, 255, 0.2);
  color: #fff;
}

/* listing context banner (top of conversation) */
.chat-listing-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 4px 10px;
  border-radius: 12px;
  background: rgba(78, 168, 255, 0.1);
  border: 1px solid rgba(78, 168, 255, 0.25);
}
.chat-listing-banner .cl-ic {
  font-size: 18px;
}
.chat-listing-banner strong {
  display: block;
  color: var(--white);
  font-size: 13px;
}
.chat-listing-banner small {
  color: var(--accent-soft);
  font-size: 11.5px;
}

.chat-stream {
  flex: 1;
  min-height: 240px;
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 4px 8px;
  scroll-behavior: smooth;
}
.chat-daysep {
  align-self: center;
  margin: 6px 0;
}
.chat-daysep span {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
}
.chat-uploading {
  align-self: center;
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 0;
}

.chat-bubble {
  position: relative;
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
}
.chat-bubble p {
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}
.chat-bubble > time {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.6;
}
.chat-bubble.theirs {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.mine > time {
  color: #fff;
}

/* attachments */
.chat-att-photo {
  display: block;
  margin: -2px 0 4px;
  border-radius: 10px;
  overflow: hidden;
  max-width: 220px;
}
.chat-att-photo img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}
.chat-att-doc {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  margin: -2px 0 2px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
}
.chat-bubble.theirs .chat-att-doc {
  background: rgba(255, 255, 255, 0.06);
}
.chat-att-doc svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.chat-att-doc span {
  font-size: 13px;
  word-break: break-all;
}

/* reactions */
.chat-reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.chat-react {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 2px 7px;
}
.chat-bubble.theirs .chat-react {
  background: rgba(255, 255, 255, 0.07);
}
.chat-react.is-mine {
  border-color: rgba(78, 168, 255, 0.7);
}
.chat-react i {
  font-style: normal;
  font-size: 10px;
  opacity: 0.8;
}
.chat-react-btn {
  position: absolute;
  top: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d1730;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.chat-bubble.mine .chat-react-btn {
  left: -12px;
}
.chat-bubble.theirs .chat-react-btn {
  right: -12px;
}
.chat-bubble:hover .chat-react-btn {
  opacity: 1;
}
.chat-react-pop {
  flex-direction: row;
  gap: 2px;
  min-width: 0;
  top: -46px;
}
.chat-bubble.mine .chat-react-pop {
  left: 0;
}
.chat-bubble.theirs .chat-react-pop {
  right: 0;
}
.chat-react-pop button {
  width: 36px;
  padding: 6px;
  font-size: 18px;
  justify-content: center;
}
.chat-react-pop button.on {
  background: rgba(78, 168, 255, 0.2);
}

/* compose listing banner */
.chat-compose-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  margin: 0 4px 6px;
  border-radius: 10px;
  background: rgba(78, 168, 255, 0.12);
  border: 1px solid rgba(78, 168, 255, 0.3);
}
.chat-compose-banner span {
  font-size: 12px;
  color: var(--accent-soft);
}
.ccb-x {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.chat-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.chat-input .chat-text {
  flex: 1;
  padding: 11px 14px;
  background: rgba(5, 11, 26, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.chat-input .chat-text:focus {
  border-color: rgba(78, 168, 255, 0.55);
}
.chat-attach-btn,
.chat-emoji-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  transition:
    background 0.15s,
    color 0.15s;
}
.chat-attach-btn:hover,
.chat-emoji-btn:hover {
  background: rgba(78, 168, 255, 0.14);
  color: #fff;
}
.chat-attach-btn svg {
  width: 20px;
  height: 20px;
}
.chat-input button[type='submit'] {
  flex: 0 0 auto;
  width: 44px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.chat-input button[type='submit']:hover {
  transform: translateY(-1px);
}
.chat-input button[type='submit'] svg {
  width: 18px;
  height: 18px;
}
.chat-attach-pop {
  bottom: 54px;
  left: 0;
}
.chat-emoji-pop {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 230px;
  max-width: 250px;
  bottom: 54px;
  right: 44px;
}
.chat-emoji-pop button {
  width: 36px;
  justify-content: center;
  font-size: 18px;
  padding: 5px;
}

/* report modal */
.chat-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 8, 20, 0.66);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.chat-report-modal {
  width: 100%;
  max-width: 400px;
  background: #0d1730;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.chat-report-modal h4 {
  color: var(--white);
  font-size: 17px;
  margin: 0 0 4px;
}
.chat-report-modal > p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 14px;
}
.chat-report-modal label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin: 10px 0 5px;
}
.chat-report-modal select,
.chat-report-modal textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(5, 11, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
  resize: vertical;
}
.chat-report-modal select:focus,
.chat-report-modal textarea:focus {
  border-color: rgba(78, 168, 255, 0.55);
}
.cr-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.cr-actions button {
  padding: 9px 18px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cr-cancel,
.cr-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}
.cr-submit {
  background: linear-gradient(135deg, #ff6b6b, #e74c4c);
  border: none;
  color: #fff;
}

/* ============================================================
   ANNOUNCEMENTS (read-only broadcasts) + BLOG IMAGE + SUPPORT
   ============================================================ */
.hp-ann-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-ann {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(78, 168, 255, 0.07);
  border: 1px solid rgba(78, 168, 255, 0.18);
}
.hp-ann-ico {
  font-size: 18px;
  line-height: 1.4;
  flex: 0 0 auto;
}
.hp-ann-body {
  flex: 1;
  min-width: 0;
}
.hp-ann-body strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  margin-bottom: 2px;
}
.hp-ann-body p {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.hp-ann-body time {
  display: block;
  color: var(--text-dim);
  font-size: 11.5px;
  margin-top: 5px;
}
.hp-ann .btn-mini {
  flex: 0 0 auto;
  align-self: center;
}
.hp-ann-card[hidden] {
  display: none;
}

/* blog cover editor (admin) + rendered covers */
.blog-img-edit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-img-preview {
  width: 120px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}
.blog-img-preview[hidden] {
  display: none;
}
.blog-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-img-btn {
  cursor: pointer;
}
.blog-cover.has-img {
  background-size: cover;
  background-position: center;
}
.post-cover-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 0 22px;
  display: block;
}

/* doctor finder cards inside the patient panel */
.doc-card .doc-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   TREATMENT DETAIL PAGE (td-*)
   ============================================================ */
.td-main {
  padding: 110px 0 60px;
  min-height: 60vh;
}
.td-crumb {
  margin-bottom: 18px;
}
.td-loading,
.td-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-dim);
}
.td-empty .btn-ghost {
  margin-top: 14px;
}

.td-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.1), rgba(78, 168, 255, 0.03));
  border: 1px solid rgba(78, 168, 255, 0.22);
  margin-bottom: 22px;
}
.td-sum-thumb {
  width: 200px;
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(5, 11, 26, 0.4);
  border: 1px solid var(--line);
}
.td-sum-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.td-sum-thumb.is-ph svg {
  width: 54px;
  height: 54px;
  color: var(--accent-soft);
  opacity: 0.7;
}
.td-sum-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.td-headline {
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}
/* çerçevesiz çipler — kurumsal mavi ışıklı eğik ayraç ile bölünür */
/* tek satır + TÜM GENİŞLİĞE YAYIL (soldaki boşluğu kullan) — çipler büyük */
/* ayraçlar ayrı .td-sep eleman → space-between EŞİT boşluk verince her ÇİP (=beyaz değer)
   kendi iki ayracının tam ortasında kalır. Etiketler doğal (sola) — ortalanmaz. */
.td-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  gap: 2px;
  min-width: 0;
}
.td-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 2px;
  background: none;
  border: none;
  flex: 0 0 auto;
  min-width: 0;
}
.td-sep {
  flex: 0 0 auto;
  align-self: center;
  width: 2px;
  height: 40px;
  border-radius: 2px;
  transform: rotate(20deg);
  background: linear-gradient(
    180deg,
    rgba(78, 168, 255, 0),
    rgba(78, 168, 255, 0.85) 45%,
    rgba(78, 168, 255, 0)
  );
  box-shadow: 0 0 9px rgba(78, 168, 255, 0.6);
}
.td-chip b {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-soft);
  white-space: nowrap;
}
.td-chip i {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
/* dar container'da tek satıra sığmaz → taşma/kısalma yerine sola yaslı sar */
@media (max-width: 1240px) {
  .td-chips {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 4px;
  }
}
/* dar ekran: özet dikey yığılır, foto tam genişlik, çipler sola yaslı sarar */
@media (max-width: 680px) {
  .td-summary {
    flex-direction: column;
    align-items: stretch;
  }
  .td-sum-thumb {
    width: 100%;
  }
  .td-sum-main {
    align-items: flex-start;
    text-align: left;
  }
  .td-headline {
    text-align: left;
  }
  .td-chips {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
/* actions BELOW the summary card, aligned right */
.td-actbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: -6px 0 24px;
}
.td-actbar .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
}
.td-actbar .btn-primary svg {
  width: 18px;
  height: 18px;
}
/* ---- birleşik aksiyon butonları (tüm detay sayfaları) ---- */
/* ikincil "glass" buton: Paylaş / Favorilere Ekle */
.td-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease;
}
.td-act svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.td-act:hover {
  background: rgba(78, 168, 255, 0.1);
  border-color: rgba(78, 168, 255, 0.45);
  color: #fff;
  transform: translateY(-1px);
}
/* favori: kalp hover/aktifte kırmızı dolar (td-fav ve dd-fav ortak) */
.td-fav:hover,
.dd-fav:hover {
  color: #ff5a5f;
  border-color: rgba(255, 90, 95, 0.45);
  background: rgba(255, 90, 95, 0.1);
}
.td-fav:hover svg,
.dd-fav:hover svg {
  stroke: #ff5a5f;
}
.td-fav.is-on,
.dd-fav.is-on {
  color: #ff5a5f;
  border-color: rgba(255, 90, 95, 0.45);
  background: rgba(255, 90, 95, 0.1);
}
.td-fav.is-on svg,
.dd-fav.is-on svg {
  fill: #ff5a5f;
  stroke: #ff5a5f;
}

/* accordion — each section carries its own text + photo column */
.td-acc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.td-acc {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.td-acc.is-open {
  border-color: rgba(78, 168, 255, 0.3);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}
.td-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.td-acc-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.24), rgba(78, 168, 255, 0.07));
  border: 1px solid rgba(78, 168, 255, 0.25);
  color: var(--accent-soft);
}
.td-acc-ic svg {
  width: 19px;
  height: 19px;
}
.td-acc-title {
  flex: 1;
}
.td-acc-head:hover .td-acc-title {
  color: var(--accent-soft);
}
.td-acc-caret {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent-soft);
}
.td-acc.is-open .td-acc-caret {
  transform: rotate(180deg);
}
/* yumuşak akordeon: grid-rows 0fr↔1fr içeriğin GERÇEK yüksekliğine animasyon yapar
   (max-height:6000px'in yarattığı sert "snap" gitti) */
.td-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.td-acc.is-open .td-acc-body {
  grid-template-rows: 1fr;
}
.td-acc-body > .td-sec {
  overflow: hidden;
  min-height: 0;
  padding: 0 20px;
  opacity: 0.001;
  transition:
    opacity 0.45s ease,
    padding 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.td-acc.is-open .td-acc-body > .td-sec {
  opacity: 1;
  padding: 4px 20px 22px 20px;
}
@media (max-width: 600px) {
  .td-acc.is-open .td-acc-body > .td-sec {
    padding: 4px 18px 20px;
  }
}

.td-sec.has-photos {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) {
  .td-sec.has-photos {
    grid-template-columns: 1fr;
  }
}
.td-sec-photos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.td-ph {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  background: none;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.td-ph img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
}
.td-ph:hover {
  transform: scale(1.02);
  border-color: rgba(78, 168, 255, 0.55);
}
.td-sec-photos.is-ph {
  gap: 8px;
}
.td-ph-tile {
  width: 100%;
  height: 92px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.09), rgba(78, 168, 255, 0.02));
  border: 1px dashed rgba(78, 168, 255, 0.25);
}
.td-ph-tile svg {
  width: 28px;
  height: 28px;
  color: var(--accent-soft);
  opacity: 0.5;
}
.td-sec-photos.is-ph small {
  color: var(--text-dim);
  font-size: 11px;
  text-align: center;
  margin-top: 2px;
}
@media (max-width: 760px) {
  .td-sec-photos {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .td-ph,
  .td-ph-tile {
    width: 180px;
    flex: 0 0 auto;
  }
}

.td-rich h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 4px;
}
.td-rich h4:first-child {
  margin-top: 0;
}
.td-rich p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 10px;
}
.td-rich p:last-child {
  margin-bottom: 0;
}

/* Doktor Bilgisi = Tedavi Süreci düzeni: metin solda, belirgin çerçevesiz foto sağda */
.td-docgrid {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 24px;
  align-items: center;
}
.td-docgrid-text {
  min-width: 0;
}
.td-doc-meta {
  margin-bottom: 12px;
}
.td-doc-meta strong {
  display: block;
  color: var(--white);
  font-size: 17px;
}
.td-doc-spec {
  color: var(--accent-soft);
  font-size: 13px;
}
.td-doc-photo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.td-doc-photo img {
  height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}
@media (max-width: 760px) {
  .td-docgrid {
    grid-template-columns: 1fr;
  }
  .td-doc-photo {
    justify-content: flex-start;
  }
  .td-doc-photo img {
    height: 150px;
  }
}
.hp-avatar.lg {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.td-place-name {
  display: block;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 6px;
}
.td-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}
.td-maps svg {
  width: 15px;
  height: 15px;
}
.td-maps:hover {
  color: #fff;
}

.td-price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}
.td-price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-radius: 11px;
  background: rgba(78, 168, 255, 0.06);
  border: 1px solid var(--line);
}
.td-price-row span {
  color: var(--text-muted);
  font-size: 13px;
}
.td-price-row b {
  color: var(--white);
  font-size: 14px;
}
.td-gallery.is-empty .td-gal-empty {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  padding: 24px 8px;
}
@media (max-width: 880px) {
  .td-gallery {
    position: static;
  }
  .td-gal-strip {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 4px;
  }
  .td-gal-item {
    width: 220px;
    flex: 0 0 auto;
  }
}

.td-lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(3, 8, 20, 0.82);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}
.td-lb-img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}
.td-lb-x {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.td-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.td-lb-nav.prev {
  left: 18px;
}
.td-lb-nav.next {
  right: 18px;
}
.td-lb-nav:hover,
.td-lb-x:hover {
  background: rgba(78, 168, 255, 0.3);
}
body.td-lb-open {
  overflow: hidden;
}
/* büyük görselin altında küçük, soluk diğer fotoğraflar */
.td-lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.td-lb-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 88vw;
}
.td-lb-thumb {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  cursor: pointer;
  opacity: 0.45;
  transition:
    opacity 0.2s,
    border-color 0.2s,
    transform 0.15s;
  background: none;
}
.td-lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.td-lb-thumb:hover {
  opacity: 0.8;
}
.td-lb-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-2px);
}
/* place-detail lightbox aynı thumbnail şeridi */
.pd-lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pd-lb-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 86vw;
}
.pd-lb-thumb {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  cursor: pointer;
  opacity: 0.45;
  transition:
    opacity 0.2s,
    border-color 0.2s,
    transform 0.15s;
  background: none;
}
.pd-lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-lb-thumb:hover {
  opacity: 0.8;
}
.pd-lb-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.td-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(3, 8, 20, 0.66);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.td-share-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #0d1730;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.td-share-modal h4 {
  color: var(--white);
  font-size: 17px;
  margin: 0 0 16px;
  text-align: center;
}
.td-share-x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.td-share-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.td-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s;
}
.td-share-btn svg {
  width: 26px;
  height: 26px;
}
.td-share-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}
.td-share-btn.wa {
  color: #25d366;
}
.td-share-btn.fb {
  color: #1877f2;
}
.td-share-btn.x {
  color: #fff;
}
.td-share-btn.tg {
  color: #29a9eb;
}
.td-share-btn.ig {
  color: #e1306c;
}
.td-share-copy {
  display: flex;
  gap: 8px;
}
.td-share-copy input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(5, 11, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 12px;
}
@media (max-width: 460px) {
  .td-share-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* favorite heart on finder result cards */
.result-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 11, 26, 0.55);
  border: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.result-fav svg {
  width: 17px;
  height: 17px;
}
.result-fav:hover {
  background: rgba(255, 107, 138, 0.2);
}
.result-fav.is-on {
  color: #ff6b8a;
  border-color: rgba(255, 107, 138, 0.6);
}
.result-fav.is-on svg {
  fill: #ff6b8a;
  stroke: #ff6b8a;
}

/* favorites list (patient panel) */
.fav-group {
  margin-bottom: 22px;
}
.fav-group h4 {
  color: var(--white);
  font-size: 14px;
  margin: 0 0 10px;
}
.fav-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.fav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.fav-card-body {
  flex: 1;
  min-width: 0;
}
.fav-card-body strong {
  display: block;
  color: var(--white);
  font-size: 14px;
}
.fav-card-body span {
  color: var(--text-muted);
  font-size: 12px;
}
.fav-card .fav-open {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}
.fav-rm {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.25);
  color: #ff8a8a;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

/* doctor listing editor — photo grid */
.dl-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}
.dl-photo {
  position: relative;
  width: 96px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.dl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dl-photo-x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.dl-addphoto {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.dl-secblock {
  margin-bottom: 14px;
}
.dl-secblock-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.dl-secblock-head span {
  color: var(--text-dim);
  font-weight: 400;
}
.dl-addtile {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  border: 1px dashed rgba(78, 168, 255, 0.4);
  background: rgba(78, 168, 255, 0.06);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
  flex: 0 0 auto;
}
.dl-addtile:hover {
  background: rgba(78, 168, 255, 0.12);
}

/* ============================================================
   DOCTOR INDEX (dx-*) + DOCTOR PROFILE (dd-*)
   ============================================================ */
/* mavi strok yalnızca ana hatta (tedavi barındaki his); iç alanlarda çerçeve yok */
/* geniş kapsayıcı — bar treatment-index gibi ~1200px olabilsin (page-hero-inner 820 sınırından çıktı) */
.dx-finder {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}
.dx-search {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1200px;
  margin: 20px auto 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.dx-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  position: relative;
}
.dx-field:last-of-type {
  border-right: none;
}
.dx-field input {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 11px 20px;
  outline: none;
}
.dx-field input::placeholder {
  color: var(--text-dim);
  font-weight: 700;
}
/* cascade dropdowns inside the bar */
.dx-drop {
  padding: 0;
}
.dx-drop-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  padding: 11px 20px;
  cursor: pointer;
}
/* kaskad kilit: önceki kriter seçilmeden bu adım pasif (tedavi indeksi mantığı) */
.dx-drop.is-locked .dx-drop-trigger {
  opacity: 0.4;
  cursor: not-allowed;
}
/* boş/ipucu durumu grid'in tüm genişliğine yayılıp ortalansın (büyüteç muhabbeti) */
.dx-grid .ti-empty,
.dx-grid .td-empty {
  grid-column: 1 / -1;
}
.dx-drop-val {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
} /* bold + uzun değer tek satır (sarmaz) */
.dx-drop-val[data-ph] {
  color: var(--text-dim);
}
.dx-drop-caret {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.dx-drop.is-open .dx-drop-caret {
  transform: rotate(180deg);
}
.dx-drop-pop {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(340px, 90vw);
  background: #0d1730;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  padding: 6px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transform-origin: bottom;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.24s;
}
.dx-opt span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dx-drop.is-open .dx-drop-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* menü içi arama kutusu — seçenek satırlarıyla orantılı, kompakt */
.dx-drop-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  margin-bottom: 5px;
  background: rgba(5, 11, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.dx-drop-search svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.dx-drop-search input {
  flex: 1;
  min-width: 0;
  height: 20px;
  line-height: 20px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
}
.dx-drop-search input::placeholder {
  color: var(--text-dim);
}
.dx-drop-search input::-webkit-search-decoration,
.dx-drop-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.dx-drop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 168, 255, 0.55) transparent;
}
.dx-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}
.dx-opt:hover {
  background: rgba(78, 168, 255, 0.12);
  color: #fff;
}
.dx-opt.is-selected {
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.08);
}
.dx-opt-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.dx-opt.is-selected .dx-opt-check {
  opacity: 1;
  transform: scale(1);
}
/* let the dropdown escape the hero (not clipped) + sit above results */
.dx-hero {
  overflow: visible;
  position: relative;
  z-index: 30;
  padding-bottom: 26px;
}
.dx-search {
  z-index: 31;
}
.dx-drop-pop {
  z-index: 90;
}
.results-section {
  position: relative;
  z-index: 1;
}
/* blur + dim results while a filter dropdown is open (like the finder) */
.dx-grid {
  transition: opacity 0.2s ease;
}
.results-section.ti-dimmed .dx-grid {
  opacity: 0.4;
  pointer-events: none;
}

/* doctor profile listing cards — uniform corporate layout */
.dd-listings-grid .result-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dd-listings-grid .result-media {
  aspect-ratio: 16/9;
}
.dd-listings-grid .result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dd-listings-grid .result-foot {
  margin-top: auto;
}
/* keep "Detayları İncele" pinned to the right on every card (wraps under the price on narrow cards) */
.dd-listings-grid .result-foot .result-cta {
  margin: 0 0 0 auto;
}
/* reserve consistent vertical bands so title/method/location/code/price line up across cards */
.dd-listings-grid .result-name {
  height: 2.6em;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dd-listings-grid .result-method {
  height: 2.8em;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dx-search-btn {
  flex: 0 0 auto;
  width: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ea8ff, #2f86e6);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 22px rgba(78, 168, 255, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.dx-search-btn svg {
  width: 18px;
  height: 18px;
}
.dx-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(78, 168, 255, 0.38);
}
@media (max-width: 760px) {
  .dx-search {
    flex-wrap: wrap;
    border-radius: 18px;
  }
  .dx-field {
    flex: 1 1 45%;
    border-right: none;
  }
  .dx-search-btn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
  }
}

/* 5 kart / sıra; satırlar eşit yükseklik (grid stretch + box flex:1) */
.dx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
  padding-top: 28px;
  align-items: stretch;
}
/* boş/ipucu durumu grid'in tüm genişliğine yayılıp sayfada ortalansın */
.dx-grid .td-empty {
  grid-column: 1 / -1;
  text-align: center;
}
.dx-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  height: 100%;
  transition: transform 0.35s ease;
}
.dx-card:hover {
  transform: translateY(-6px);
}
/* çerçevesiz/serbest cut-out görsel — kutu yok, kartın üstünde duruyor.
   yükseklik height:100% ile KESİN sınırlı (max-height:100% grid içinde çözülmeyip taşmaya yol açıyordu) */
/* foto KUTUNUN ARKASINDA kalır (z-index:1), kutu önde (z-index:2) ve opak zemin foto altını kapatır */
.dx-card-photo {
  width: 100%;
  height: 254px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -64px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.dx-card-photo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}
.dx-card-photo.is-ph {
  color: var(--accent-soft);
  font-size: 42px;
  font-weight: 800;
  align-items: center;
}
.dx-card-box {
  flex: 1;
  width: 100%;
  padding: 16px 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), #0c1733;
  border: 1px solid var(--line-strong);
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}
/* birleşik kart efekti — tedavi indeksi .result-card:hover ile aynı glow/kenar */
.dx-card:hover .dx-card-box {
  border-color: rgba(78, 168, 255, 0.4);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(78, 168, 255, 0.25);
}
.dx-card-box strong {
  display: block;
  color: var(--white);
  font-size: 15.5px;
  line-height: 1.25;
  min-height: 2.2em;
}
.dx-card-spec {
  display: block;
  color: var(--accent-soft);
  font-size: 13.5px;
  margin-top: 4px;
  min-height: 1.3em;
}
.dx-card-loc {
  display: block;
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 3px;
}
.dx-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.dx-card:hover .dx-card-arrow {
  color: var(--accent);
}
@media (max-width: 980px) {
  .dx-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 680px) {
  .dx-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .dx-grid {
    grid-template-columns: 1fr;
  }
}

.dd-main {
  padding: 110px 0 60px;
  min-height: 60vh;
}
.dd-code {
  text-align: center;
  color: var(--accent-soft);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 26px;
}
.dd-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: start;
}
@media (max-width: 600px) {
  .dd-layout {
    grid-template-columns: 1fr;
  }
}
.dd-sec {
  margin-bottom: 44px;
}
.dd-sec-head {
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 12px;
}
/* Hakkımızda sayfasındaki gibi: ince, glow'lu accent gradient çizgi */
.dd-sec-head::after {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  box-shadow: 0 0 14px rgba(78, 168, 255, 0.45);
}
.dd-rich p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 10px;
}
/* doktor profili — aktif çalıştığı kurumlar (Kurumlarım seçiminden otomatik) */
.dd-facs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dd-fac {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}
/* kurum adının soluna mavi nokta (Specialties bölümüyle aynı) */
.dd-fac::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.dd-fac strong {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
}
.dd-fac span {
  color: var(--text-dim);
  font-size: 12.5px;
}
.dd-fac a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.dd-fac a:hover {
  color: #fff;
}
.dd-fac a svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.dd-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dd-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
}
.dd-bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.dd-treat-cols .dd-bullets {
  columns: 3;
  column-gap: 26px;
}
@media (max-width: 700px) {
  .dd-treat-cols .dd-bullets {
    columns: 2;
  }
}

/* TAM sabit sidebar: scroll'da hiç hareket etmez (fixed); footer z-index ile alttan örter.
   right = container sağ kenarına hizala (merkezlenmiş container'a göre) */
/* kart sayfada kendi yerinde kalır; scroll'da kullanıcıyı TAKİP ETMEZ (ne sticky ne fixed) */
.dd-col-right {
  position: static;
}
.dd-id {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* çerçevesiz/serbest cut-out — arka plan/çerçeve yok, indeksle aynı dil */
.dd-photo {
  width: 240px;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}
.dd-photo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5));
}
.dd-photo.is-ph {
  color: var(--accent-soft);
  font-size: 56px;
  font-weight: 800;
  align-items: center;
}
.dd-name {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  margin: 16px 0 0;
}
.dd-loc {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
/* aksiyon barı — üstte İletişime Geç (tam genişlik), altta Paylaş + Favorilere Ekle (eşit) */
.dd-actbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}
/* favori SOLDA + paylaş SAĞDA; içeriğe göre büyür, sığmazsa (uzun çeviri) alt satıra sarar */
.dd-actrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dd-actbar .td-act {
  flex: 1 1 auto; /* içeriğe göre büyü — 0-basis + min-width:0 KALDIRILDI → kalp/metin kutudan taşmaz */
  white-space: nowrap;
  padding: 10px 16px;
}
.dd-actbar .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
}
.dd-actbar .btn-primary svg {
  width: 18px;
  height: 18px;
}
/* favori sayacı: etiketin yanında küçük inline pill */
.dd-favc {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  min-width: 16px;
  text-align: center;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.16);
  border-radius: 999px;
  padding: 0 6px;
}
.dd-fav.is-on .dd-favc {
  color: #ff5a5f;
  background: rgba(255, 90, 95, 0.16);
}
.dd-share.copied {
  color: #4caf7d;
}

.dd-listings {
  margin-top: 42px;
}
.dd-listings-head {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
}
/* liste kartları tam genişlik, treatment-index gibi 4/sıra */
.dd-listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1240px) {
  .dd-listings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 920px) {
  .dd-listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .dd-listings-grid {
    grid-template-columns: 1fr;
  }
}
.dd-lcard {
  text-decoration: none;
  cursor: pointer;
}

/* ============================================================
   PLACE DETAIL (hastane & klinik detay) — .pd-*
   ============================================================ */
.pd-code {
  text-align: center;
  color: var(--accent-soft);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 28px;
}
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: start;
}
@media (max-width: 600px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }
}
.pd-name {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
}
.pd-rich p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 12px;
}
.pd-sec {
  margin: 44px 0;
}
.pd-sec-head {
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 12px;
}
.pd-sec-head::after {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  box-shadow: 0 0 14px rgba(78, 168, 255, 0.45);
}
.pd-loc-line {
  color: var(--text);
  font-size: 14px;
  margin: 0 0 4px;
}
.pd-maps {
  color: var(--accent-soft);
  font-size: 13px;
  word-break: break-all;
}
.pd-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pd-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 2;
}
.pd-bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pd-cols .pd-bullets {
  columns: 4;
  column-gap: 24px;
}
@media (max-width: 980px) {
  .pd-cols .pd-bullets {
    columns: 3;
  }
}
@media (max-width: 640px) {
  .pd-cols .pd-bullets {
    columns: 2;
  }
}
/* Kapasitemiz / Hizmetlerimiz / Standartlarımız — 3 eşit premium kart (düzenli görünüm) */
.pd-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  align-items: stretch;
}
@media (max-width: 760px) {
  .pd-trio {
    grid-template-columns: 1fr;
  }
}
.pd-mini {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 8px;
}
.pd-mini .pd-sec-head {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}
.pd-mini .pd-sec-head::after {
  width: 42px;
  margin-top: 10px;
}
.pd-mini .pd-bullets li {
  font-size: 13.5px;
}
.pd-cap {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pd-cap li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.pd-cap li span {
  color: var(--text-muted);
}
.pd-cap li b {
  color: var(--white);
  font-weight: 700;
}

/* sağ sütun */
.pd-col-right {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pd-logo {
  background: #fff;
  border-radius: 18px;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 18px;
}
.pd-logo img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
}
.pd-logo.is-ph {
  color: #1c2c54;
  flex-direction: column;
  gap: 8px;
}
.pd-logo.is-ph svg {
  width: 46px;
  height: 46px;
  opacity: 0.8;
}
.pd-logo.is-ph span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-photo {
  border: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
/* 1 büyük ana foto + altında 3 küçük */
.pd-photo-main {
  aspect-ratio: 16/9;
}
.pd-gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pd-photo-sm {
  aspect-ratio: 4/3;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.pd-photo-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 11, 26, 0.58);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: inherit;
}
.pd-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.pd-photo.is-ph {
  cursor: default;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  border: 1px dashed var(--line-strong);
}
.pd-photo.is-ph:hover {
  transform: none;
  box-shadow: none;
}
.pd-stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding-top: 6px;
}
.pd-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.pd-stat svg {
  width: 22px;
  height: 22px;
}
.pd-stat:hover {
  color: #fff;
}
.pd-stat i {
  font-style: normal;
}

/* lightbox */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-lb-img {
  max-width: 86vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.pd-lb-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}
.pd-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
}
.pd-lb-nav.prev {
  left: 24px;
}
.pd-lb-nav.next {
  right: 24px;
}
.pd-lb-nav:hover {
  background: rgba(78, 168, 255, 0.25);
}

/* ===== medical records (patient) ===== */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rec-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.rec-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rec-card-body strong {
  color: var(--white);
  font-size: 14px;
}
.rec-card-body span {
  color: var(--text-muted);
  font-size: 12.5px;
}
.rec-card-body em {
  color: var(--text-dim);
  font-size: 12.5px;
  font-style: normal;
}
.rec-open {
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.rec-open:hover {
  color: #fff;
}
.rec-rm {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 90, 95, 0.12);
  border: 1px solid rgba(255, 90, 95, 0.3);
  color: #ff8a8f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.rec-rm:hover {
  background: rgba(255, 90, 95, 0.22);
  color: #fff;
}
.ti-empty.sm {
  padding: 22px 0;
}

/* ===== İstek & Şikayet (support tickets) — premium ===== */
.tk-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(78, 168, 255, 0.1), rgba(78, 168, 255, 0.02));
  border: 1px solid rgba(78, 168, 255, 0.18);
}
.tk-lead-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep, #2f7fc0));
  color: #fff;
  box-shadow: 0 8px 20px rgba(78, 168, 255, 0.35);
}
.tk-lead-ico svg {
  width: 20px;
  height: 20px;
}
.tk-lead p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.tk-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tk-field {
  display: block;
}
.tk-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.tk-opt {
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 4px;
}
.tk-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  min-height: 50px;
  border-radius: 13px;
  background: rgba(6, 12, 28, 0.55);
  border: 1px solid var(--line-strong);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.tk-box:focus-within {
  border-color: var(--accent);
  background: rgba(6, 12, 28, 0.75);
  box-shadow: 0 0 0 3px rgba(78, 168, 255, 0.14);
}
.tk-box > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.tk-box input,
.tk-box textarea {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.tk-box textarea {
  resize: vertical;
  padding: 14px 0;
  line-height: 1.55;
}
.tk-box-area {
  align-items: flex-start;
  padding: 0 15px;
}
.tk-box input::placeholder,
.tk-box textarea::placeholder {
  color: var(--text-dim);
}

.tk-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}
.tk-tile {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 13px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.tk-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tk-tile-x {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  background: rgba(8, 14, 30, 0.82);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.tk-tile-x:hover {
  background: rgba(255, 90, 95, 0.9);
}
.tk-tile.tk-add {
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent-soft);
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}
.tk-tile.tk-add svg {
  width: 24px;
  height: 24px;
}
.tk-tile.tk-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(78, 168, 255, 0.06);
}

.tk-form-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 4px;
}
.tk-send {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
  justify-content: center;
}
.tk-send svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.tk-send:hover svg {
  transform: translateX(3px) translateY(-1px);
}
.tk-send.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.tk-history-wrap {
  margin-top: 34px;
}
.tk-hist-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.tk-h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.tk-hist-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.tk-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tk-item {
  position: relative;
  padding: 16px 18px 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.tk-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.tk-item.is-reviewing::before {
  background: linear-gradient(180deg, #ffcf6b, #f0a92e);
}
.tk-item.is-resolved::before {
  background: linear-gradient(180deg, #52e0a0, #2fb877);
}
.tk-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.tk-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.tk-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tk-chip {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.12);
  border: 1px solid rgba(78, 168, 255, 0.25);
  padding: 2px 10px;
  border-radius: 999px;
}
.tk-item-date {
  font-size: 12px;
  color: var(--text-dim);
}
.tk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.tk-pill svg {
  width: 13px;
  height: 13px;
}
.tk-pill.is-wait {
  color: #ffcf6b;
  background: rgba(240, 169, 46, 0.14);
  border: 1px solid rgba(240, 169, 46, 0.3);
}
.tk-pill.is-ok {
  color: #52e0a0;
  background: rgba(47, 184, 119, 0.14);
  border: 1px solid rgba(47, 184, 119, 0.32);
}
.tk-item-desc {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}
.tk-item-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tk-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  display: block;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.tk-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tk-item-thumb:hover {
  border-color: var(--accent);
  transform: scale(1.04);
}
.tk-item-reply {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(47, 184, 119, 0.08);
  border: 1px solid rgba(47, 184, 119, 0.22);
}
.tk-reply-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #52e0a0;
  margin-bottom: 4px;
}
.tk-item-reply p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  text-align: center;
}
.tk-empty-ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.08);
  border: 1px solid rgba(78, 168, 255, 0.18);
}
.tk-empty-ico svg {
  width: 26px;
  height: 26px;
}
.tk-empty p {
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 0;
}

.tk-adm-desc {
  max-width: 320px;
}
.tk-adm-note {
  margin-top: 6px;
  color: var(--accent-soft);
}
.tk-adm-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tk-adm-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  display: block;
}
.tk-adm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tk-adm-thumb:hover {
  border-color: var(--accent);
}
.tk-adm-table td .tk-pill {
  vertical-align: middle;
}

/* premium aksiyon butonları (admin: Çözüldü / Yeniden Aç) */
.tk-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.tk-act svg {
  width: 14px;
  height: 14px;
}
.tk-act:hover {
  transform: translateY(-1px);
}
.tk-act.ok {
  color: #52e0a0;
  background: rgba(47, 184, 119, 0.12);
  border-color: rgba(47, 184, 119, 0.3);
}
.tk-act.ok:hover {
  background: rgba(47, 184, 119, 0.2);
}
.tk-act.warn {
  color: #ffcf6b;
  background: rgba(240, 169, 46, 0.12);
  border-color: rgba(240, 169, 46, 0.3);
}
.tk-act.warn:hover {
  background: rgba(240, 169, 46, 0.2);
}
.tk-act.reply {
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.12);
  border-color: rgba(78, 168, 255, 0.3);
}
.tk-act.reply:hover {
  background: rgba(78, 168, 255, 0.2);
}

/* premium yanıt modalı (native prompt yerine) */
.tk-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
}
.tk-modal {
  width: min(94vw, 440px);
  border-radius: 20px;
  padding: 28px 26px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(18, 32, 66, 0.96), rgba(9, 18, 40, 0.98));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: tkModalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
/* NOT: giriş animasyonu YALNIZ transform anime eder (opacity değil) → hidden sekmede
   animasyon duraklasa bile modal her zaman görünür kalır (opacity:1 taban). */
@keyframes tkModalPop {
  from {
    transform: translateY(16px) scale(0.97);
  }
  to {
    transform: none;
  }
}
.tk-modal-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep, #2f7fc0));
  box-shadow: 0 12px 28px rgba(78, 168, 255, 0.4);
}
.tk-modal-ico svg {
  width: 26px;
  height: 26px;
}
.tk-modal h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.tk-modal-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.tk-modal-sub b {
  color: var(--accent-soft);
  font-weight: 700;
}
.tk-modal-label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tk-modal-label em {
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 4px;
}
.tk-modal-note {
  width: 100%;
  background: rgba(6, 12, 28, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.tk-modal-note:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 168, 255, 0.14);
}
.tk-modal-note::placeholder {
  color: var(--text-dim);
}
.tk-modal-acts {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.tk-modal-acts .tk-modal-ok {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tk-modal-acts .tk-modal-ok svg {
  width: 16px;
  height: 16px;
}
.tk-pill.is-draft {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
}

/* ===== Bloglarım (my-blog) ===== */
.mb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mb-lead {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 220px;
}
.mb-top .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.mb-top .btn-primary svg {
  width: 16px;
  height: 16px;
}
.mb-editor {
  margin-bottom: 22px;
}
.mb-editor-card {
  background: rgba(255, 255, 255, 0.02);
}
.mb-cover {
  position: relative;
  width: 100%;
  min-height: 92px;
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  transition: border-color 0.25s ease;
}
.mb-cover:hover {
  border-color: var(--accent);
}
.mb-cover.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.mb-cover img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.mb-cover-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--accent-soft);
  font-size: 12.5px;
  font-weight: 600;
  padding: 20px;
}
.mb-cover-add svg {
  width: 26px;
  height: 26px;
}
.mb-cover-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: rgba(8, 14, 30, 0.82);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.mb-cover-x:hover {
  background: rgba(255, 90, 95, 0.9);
}
.mb-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: rgba(78, 168, 255, 0.06);
  border: 1px solid rgba(78, 168, 255, 0.16);
  border-radius: 11px;
  padding: 10px 13px;
  margin: 0;
}
.mb-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.mb-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mb-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.mb-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.mb-thumb {
  width: 82px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.mb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mb-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--text-dim);
}
.mb-thumb-empty svg {
  width: 24px;
  height: 24px;
}
.mb-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mb-item-body strong {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mb-item-meta {
  font-size: 12px;
  color: var(--text-dim);
}
.mb-item-status {
  flex: 0 0 auto;
}
.mb-item-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.mb-del {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 90, 95, 0.1);
  border: 1px solid rgba(255, 90, 95, 0.28);
  color: #ff8a8f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.mb-del:hover {
  background: rgba(255, 90, 95, 0.22);
  color: #fff;
}
@media (max-width: 640px) {
  .mb-item {
    flex-wrap: wrap;
  }
  .mb-item-body {
    flex-basis: 60%;
  }
}

/* ===== İndeksim (my-index) ===== */
.idx-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.idx-hero-info h3 {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}
.idx-name-hint {
  color: var(--text-dim);
  font-size: 12.5px;
  margin-top: 3px;
}
.idx-hero .avatar.xl.is-loading {
  opacity: 0.5;
}
.idx-lead {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: rgba(78, 168, 255, 0.06);
  border: 1px solid rgba(78, 168, 255, 0.16);
  border-radius: 11px;
  padding: 10px 13px;
  margin-bottom: 20px;
}
.idx-lead svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.idx-derived {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.idx-derived svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.idx-derived span {
  flex: 1;
  min-width: 160px;
}
.idx-derived .btn-ghost {
  flex: 0 0 auto;
}
.idx-profile-hint {
  font-size: 12.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  margin: 0;
}
.idx-preview {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.idx-preview svg {
  width: 16px;
  height: 16px;
}

/* ===== Üyelik Planları + Ödemeler (membership) ===== */
.mem-lead {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: rgba(78, 168, 255, 0.06);
  border: 1px solid rgba(78, 168, 255, 0.16);
  border-radius: 11px;
  padding: 10px 13px;
  margin-bottom: 16px;
}
.mem-lead svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.mem-usage {
  margin-bottom: 18px;
}
.mem-usage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.1);
  border: 1px solid rgba(78, 168, 255, 0.25);
  padding: 5px 13px;
  border-radius: 999px;
}
.mem-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .mem-plans {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .mem-plans {
    grid-template-columns: 1fr;
  }
}
.mem-plan {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.mem-plan:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.mem-plan.is-current {
  border-color: rgba(47, 184, 119, 0.5);
  box-shadow: 0 0 0 1px rgba(47, 184, 119, 0.3);
}
.mem-plan-head {
  position: relative;
  padding: 20px 18px;
  color: #fff;
  overflow: hidden;
}
.mem-plan-head .mem-gem {
  position: absolute;
  right: 10px;
  top: 12px;
  width: 42px;
  height: 42px;
  opacity: 0.5;
}
.mem-plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mem-plan-price {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
  line-height: 1;
}
.mem-plan-price span {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
}
.tier-basic .mem-plan-head {
  background: linear-gradient(135deg, #3a4a6a, #212f45);
}
.tier-advanced .mem-plan-head {
  background: linear-gradient(135deg, #f5a623, #d9691a);
}
.tier-pro .mem-plan-head {
  background: linear-gradient(135deg, #a24bd6, #d6317f);
}
.tier-expert .mem-plan-head {
  background: linear-gradient(135deg, #4ea8ff, #2f6fc0);
}
.mem-feats {
  list-style: none;
  padding: 18px;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mem-feats li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
}
.mem-feats li svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.mem-feats li.on {
  color: var(--text);
}
.mem-feats li.on svg {
  color: #52e0a0;
}
.mem-feats li.off {
  color: var(--text-dim);
}
.mem-feats li.off span {
  text-decoration: line-through;
}
.mem-feats li.off svg {
  color: var(--text-dim);
}
.mem-btn {
  margin: 0 18px 18px;
  height: 42px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
}
.mem-btn.sel {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep, #2f7fc0));
  color: #fff;
  transition: transform 0.15s ease;
}
.mem-btn.sel:hover {
  transform: translateY(-2px);
}
.mem-btn.cur {
  background: rgba(47, 184, 119, 0.16);
  color: #52e0a0;
  border: 1px solid rgba(47, 184, 119, 0.4);
  cursor: default;
}
/* payments */
.mem-pay-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .mem-pay-grid {
    grid-template-columns: 1fr;
  }
}
.mem-pay-plan {
  border-radius: 16px;
  padding: 20px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mem-pay-plan .mem-gem {
  position: absolute;
  right: 10px;
  top: 12px;
  width: 38px;
  height: 38px;
  opacity: 0.45;
}
.mem-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.mem-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-muted);
}
.mem-sum-row b {
  color: var(--white);
}
.mem-sum-row .dim {
  color: var(--text-dim);
  font-size: 12px;
}
.mem-sum-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 4px;
}
.mem-sum-total span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.mem-sum-total strong {
  color: var(--accent-soft);
  font-size: 22px;
  font-weight: 800;
}
.mem-card-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.mem-card-form h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.mem-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mem-kvkk {
  margin: 12px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.mem-card-acts {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}
.mem-demo-note {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 12px;
  line-height: 1.4;
}
.mem-block {
  margin-top: 28px;
}
.mem-h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.mem-empty {
  padding: 22px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.mem-card-row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.mem-card-row-item.is-default {
  border-color: rgba(78, 168, 255, 0.4);
}
.mem-card-brand {
  font-weight: 700;
  color: var(--white);
  font-size: 13px;
  min-width: 78px;
}
.mem-card-num {
  font-family: ui-monospace, monospace;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.mem-card-holder {
  flex: 1;
  min-width: 100px;
  color: var(--text-muted);
  font-size: 13px;
}
.mem-card-exp {
  color: var(--text-dim);
  font-size: 12.5px;
}
.mem-card-def,
.mem-card-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.mem-card-def {
  color: #ffcf6b;
}
.mem-card-del {
  color: #ff8a8f;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.mem-card-del:hover {
  background: rgba(255, 90, 95, 0.15);
  color: #fff;
}
.mem-inv-pre {
  background: rgba(6, 12, 28, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: pre-wrap;
  margin: 14px 0;
  max-height: 300px;
  overflow: auto;
  font-family: ui-monospace, monospace;
}

/* legal pages note + content tweaks */
.legal-note {
  font-size: 12.5px;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.08);
  border: 1px solid rgba(78, 168, 255, 0.22);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 720px;
  margin: 0 auto;
}
.about-page .about-block h2 {
  font-size: 17px;
}
.about-page .about-block p a {
  color: var(--accent-soft);
}

/* ===== admin facilities ===== */
.fac-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fac-tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.fac-tab.is-active {
  background: rgba(78, 168, 255, 0.16);
  color: #fff;
  border-color: rgba(78, 168, 255, 0.4);
}
.btn-ghost.xs {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 9px;
}
.fac-up {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}
.fac-logo,
.fac-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
  min-height: 4px;
}
.fac-thumb {
  position: relative;
  width: 72px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.fac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fac-rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(5, 11, 26, 0.7);
  border: none;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

/* ===== auth: provider (SHS) sub-choice chips ===== */
.provider-chips {
  display: flex;
  gap: 8px;
  margin: -6px 0 16px;
}
.prov-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.prov-chip svg {
  width: 17px;
  height: 17px;
}
.prov-chip:hover {
  color: #fff;
  border-color: rgba(78, 168, 255, 0.35);
}
.prov-chip.is-active {
  background: rgba(78, 168, 255, 0.16);
  border-color: rgba(78, 168, 255, 0.5);
  color: #fff;
  box-shadow: 0 0 16px rgba(78, 168, 255, 0.18);
}
@media (max-width: 420px) {
  .prov-chip span {
    display: none;
  }
  .prov-chip {
    padding: 10px;
  }
}

/* ===== admin: report conversation modal ===== */
.report-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rcm-box {
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #0d1730;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.rcm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
}
.rcm-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.rcm-close:hover {
  color: #fff;
}
.rcm-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rcm-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 80%;
}
.rcm-msg.left {
  align-self: flex-start;
  align-items: flex-start;
}
.rcm-msg.right {
  align-self: flex-end;
  align-items: flex-end;
}
.rcm-who {
  font-size: 11px;
  color: var(--text-dim);
  padding: 0 4px;
}
.rcm-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.rcm-msg.right .rcm-bubble {
  background: rgba(78, 168, 255, 0.16);
  border-color: rgba(78, 168, 255, 0.3);
  color: #fff;
}
.rcm-att {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent-soft);
}
.rcm-msg time {
  font-size: 10.5px;
  color: var(--text-dim);
  padding: 0 4px;
}

/* ============================================================
   Kurucu (owner) paneli — sistem sayımları + admin yönetimi
   ============================================================ */
.stat-grid--mini {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.stat-grid--mini:empty {
  display: none;
}
.stat-card.mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}
.stat-card.mini strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.stat-card.mini span {
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .stat-grid--mini {
    grid-template-columns: repeat(2, 1fr);
  }
}
.perm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin-top: 8px;
}
.perm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}
.perm-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
@media (max-width: 620px) {
  .perm-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   KYC / Doğrulama (kyc.js paneli + admin belge modalı)
   ============================================================ */
.kyc-lead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(78, 168, 255, 0.1), rgba(78, 168, 255, 0.02));
  border: 1px solid rgba(78, 168, 255, 0.18);
}
.kyc-lead-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep, #2f7fc0));
  color: #fff;
  box-shadow: 0 8px 20px rgba(78, 168, 255, 0.35);
}
.kyc-lead-ico svg {
  width: 22px;
  height: 22px;
}
.kyc-lead p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.kyc-lead-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(78, 168, 255, 0.12);
  border: 1px solid rgba(78, 168, 255, 0.25);
  padding: 3px 12px;
  border-radius: 999px;
}
.kyc-review {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(240, 169, 46, 0.14), rgba(240, 169, 46, 0.03));
  border: 1px solid rgba(240, 169, 46, 0.35);
}
.kyc-review-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffcf6b, #f0a92e);
  color: #3a2600;
}
.kyc-review-ico svg {
  width: 20px;
  height: 20px;
}
.kyc-review strong {
  display: block;
  font-size: 14.5px;
  color: #ffd98a;
  margin-bottom: 3px;
}
.kyc-review span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.kyc-docs-note {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: -4px 0 16px;
}
.kyc-docs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kyc-doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.kyc-doc.is-set {
  border-color: rgba(82, 224, 160, 0.4);
  background: linear-gradient(120deg, rgba(82, 224, 160, 0.07), rgba(255, 255, 255, 0.02));
}
.kyc-doc.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.kyc-doc-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.kyc-doc.is-set .kyc-doc-ico {
  background: linear-gradient(135deg, #52e0a0, #2fb877);
  border-color: transparent;
  color: #06231a;
}
.kyc-doc-ico svg {
  width: 20px;
  height: 20px;
}
.kyc-doc-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kyc-doc-body strong {
  font-size: 14px;
  color: var(--text);
}
.kyc-doc-state {
  font-size: 12px;
  color: var(--text-dim);
}
.kyc-doc.is-set .kyc-doc-state {
  color: #52e0a0;
}
.kyc-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.kyc-up {
  cursor: pointer;
}

/* admin belge modalı */
.kyc-adm-ov {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 12, 24, 0.66);
  backdrop-filter: blur(4px);
  opacity: 1;
  animation: kycAdmIn 0.18s ease;
}
@keyframes kycAdmIn {
  from {
    transform: translateY(8px);
  }
  to {
    transform: none;
  }
}
.kyc-adm-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 18px;
  padding: 26px 26px 24px;
  background: var(--panel, #0d1730);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.kyc-adm-modal h3 {
  margin: 0 0 18px;
  font-size: 18px;
}
.kyc-adm-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.kyc-adm-x:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.kyc-adm-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kyc-adm-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}
.kyc-adm-row:last-child {
  border-bottom: 0;
}
.kyc-adm-row span {
  color: var(--text-muted);
  font-size: 13px;
}
.kyc-adm-row strong {
  color: var(--text);
  font-size: 13.5px;
  text-align: right;
  word-break: break-word;
}
.kyc-adm-h4 {
  margin: 20px 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
}
.kyc-adm-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.kyc-adm-docs .btn-ghost svg {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}

/* ============================================================
   Hekim Kadromuz (hastane/klinik detay alt bölümü)
   ============================================================ */
.pd-staff {
  margin-top: 42px;
}
.pd-staff-head {
  margin-bottom: 20px;
}

/* ============================================================
   Panel içi bildirimler — zil rozeti + açılır liste + toast
   ============================================================ */
.topbar-actions {
  position: relative;
}
.hp-notif-btn {
  position: relative;
}
.hp-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7b7b, #e84545);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(232, 69, 69, 0.5);
  border: 2px solid var(--navy-950, #0a1020);
}
.hp-notif-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 200;
  width: min(360px, 86vw);
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.98), rgba(13, 23, 48, 0.98));
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: hpNotifIn 0.16s ease;
}
@keyframes hpNotifIn {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: none;
  }
}
.hp-notif-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.hp-notif-head strong {
  color: var(--white);
}
.hp-notif-list {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 168, 255, 0.45) transparent;
}
.hp-notif-list::-webkit-scrollbar {
  width: 8px;
}
.hp-notif-list::-webkit-scrollbar-thumb {
  background: rgba(78, 168, 255, 0.4);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.hp-notif-item {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.hp-notif-item:last-child {
  border-bottom: 0;
}
.hp-notif-item.is-unread {
  background: linear-gradient(90deg, rgba(78, 168, 255, 0.1), transparent);
}
.hp-notif-ico {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep, #2f7fc0));
  color: #fff;
  box-shadow: 0 6px 16px rgba(78, 168, 255, 0.3);
}
.hp-notif-ico svg {
  width: 19px;
  height: 19px;
}
.hp-notif-body {
  min-width: 0;
}
.hp-notif-body p {
  margin: 0 0 3px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.hp-notif-body strong {
  color: var(--white);
}
.hp-notif-body time {
  font-size: 11.5px;
  color: var(--text-dim);
}
.hp-notif-empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.hp-toast-host {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.hp-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(360px, 90vw);
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24, 38, 66, 0.98), rgba(14, 24, 48, 0.98));
  border: 1px solid rgba(78, 168, 255, 0.35);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(78, 168, 255, 0.15);
  transform: translateX(120%);
  opacity: 1;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hp-toast.is-in {
  transform: translateX(0);
}
.hp-toast-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep, #2f7fc0));
  color: #fff;
  box-shadow: 0 8px 20px rgba(78, 168, 255, 0.4);
}
.hp-toast-ico svg {
  width: 20px;
  height: 20px;
}
.hp-toast-body {
  min-width: 0;
  flex: 1 1 auto;
}
.hp-toast-body strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 3px;
}
.hp-toast-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}
.hp-toast-x {
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.hp-toast-x:hover {
  color: var(--white);
}
[dir='rtl'] .hp-toast-host {
  right: auto;
  left: 20px;
}
[dir='rtl'] .hp-toast {
  transform: translateX(-120%);
}
[dir='rtl'] .hp-toast.is-in {
  transform: translateX(0);
}
[dir='rtl'] .hp-notif-pop {
  left: auto;
  right: 0;
}

/* ============================================================
   KYC belge lightbox (sayfa-içi görüntüleme)
   ============================================================ */
.kyc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(6, 12, 24, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 1;
}
.kyc-lb-stage {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
}
.kyc-lb-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}
.kyc-lb-frame {
  width: 90vw;
  height: 86vh;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.kyc-lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.15));
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.kyc-lb-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ============================================================
   Admin — Değişiklik Geçmişi (onaysız self-edit denetim kaydı)
   ============================================================ */
.chlog-note {
  margin: -6px 0 14px;
}
.chlog-email {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}
.chlog-field {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.1);
  border: 1px solid rgba(78, 168, 255, 0.22);
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.chlog-change {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chlog-old {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.045);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12.5px;
}
.chlog-new {
  color: var(--accent-soft);
  font-weight: 600;
  background: rgba(78, 168, 255, 0.12);
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12.5px;
}
.chlog-arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--accent);
}
.chlog-when {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
/* premium + sık (dense) tablo — dikeyde ortala (Kim/Alan/Değişiklik/Tarih tek hizada) */
.chlog-table td {
  vertical-align: middle;
  padding: 9px 14px;
}
.chlog-table th {
  padding: 8px 14px;
}
.chlog-table tbody tr:last-child td {
  border-bottom: none;
}
.chlog-table .cell-user strong {
  font-size: 13px;
}
.chlog-table .cell-user .badge {
  transform: translateY(-1px);
}

/* ============================================================
   HPSelect — premium özel dropdown (native <select> yerine)
   ============================================================ */
.hps {
  flex: 1;
  min-width: 0;
  position: relative;
}
.hps-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.hps-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  padding: 13px 2px 13px 0;
  cursor: pointer;
  text-align: left;
}
.hps-val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hps-val.is-ph {
  color: var(--text-dim);
}
.hps-caret {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}
.hps.is-open .hps-caret {
  transform: rotate(180deg);
  color: var(--accent-soft);
}
.field-box:has(.hps.is-open) {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 168, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.hps-pop {
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  right: -14px;
  z-index: 80;
  display: none;
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.99), rgba(13, 23, 48, 0.99));
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: hpsIn 0.15s ease;
}
.hps.is-open .hps-pop {
  display: block;
}
.hps.flip-up .hps-pop {
  top: auto;
  bottom: calc(100% + 12px);
}
@keyframes hpsIn {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: none;
  }
}
.hps.flip-up .hps-pop {
  animation: hpsInUp 0.15s ease;
}
@keyframes hpsInUp {
  from {
    transform: translateY(6px);
  }
  to {
    transform: none;
  }
}
.hps-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.hps-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  flex: 0 0 auto;
}
.hps-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.hps-search input::placeholder {
  color: var(--text-dim);
}
.hps-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 168, 255, 0.45) transparent;
}
.hps-list::-webkit-scrollbar {
  width: 8px;
}
.hps-list::-webkit-scrollbar-thumb {
  background: rgba(78, 168, 255, 0.4);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.hps-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.hps-opt:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.hps-opt.is-selected {
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.18), rgba(78, 168, 255, 0.05));
  color: #fff;
}
.hps-opt span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hps-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent);
  opacity: 0;
}
.hps-opt.is-selected .hps-check {
  opacity: 1;
}
.hps-empty {
  padding: 16px 12px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
[dir='rtl'] .hps-trigger {
  text-align: right;
}

/* ===== Google sonrası "Profilini Tamamla" — kilitli e-posta alanı ===== */
.field-box.onb-locked {
  opacity: 0.72;
}
.field-box.onb-locked input {
  cursor: not-allowed;
  background: transparent;
}
.onb-lock-ico {
  display: inline-flex;
  align-items: center;
  padding-right: 14px;
  color: var(--text-dim);
}
[dir='rtl'] .onb-lock-ico {
  padding-right: 0;
  padding-left: 14px;
}
.onb-lock-ico svg {
  width: 16px;
  height: 16px;
}

/* ===== Hizalama: grid içindeki alanlarda etiket 1 veya 2 satır olsa da input
   kutuları ALT hizada kalır (örn. "TC Kimlik Numarası" 2 satır ↔ "Doğum Tarihi" 1 satır) ===== */
.form-grid .field .field-box,
.field-grid .field .field-box {
  margin-top: auto;
}

/* ===== İlan listesi tablosu: İşlemler sağa hizalı (butonlar satırlar arası aynı hizada),
   kod tek satır; premium sıklık ===== */
.dl-list-table td {
  vertical-align: middle;
}
.dl-list-table th:last-child {
  text-align: right;
}
.dl-list-table td:last-child .row-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.dl-list-table td:nth-child(2) {
  white-space: nowrap;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

/* ===== İndeksim — çoklu uzmanlık kartı (liste + editör) ===== */
.avatar.lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 19px;
}
.avatar.is-loading {
  opacity: 0.5;
}
.idx-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 2px 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.idx-identity-info h3 {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}
.idx-name-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
}
.idx-cards-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 8px;
}
.idx-cards-head h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
}
.idx-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.idx-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.idx-card-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}
.idx-card-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.idx-card-t {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--white);
  font-weight: 650;
  font-size: 15px;
}
.idx-card-s {
  font-size: 13px;
  color: var(--text-muted);
}
.idx-card-badge {
  margin-top: 3px;
}
.idx-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(78, 168, 255, 0.12);
  border: 1px solid rgba(78, 168, 255, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
}
.idx-card-tag.alt {
  color: #c9b8ff;
  background: rgba(157, 124, 255, 0.14);
  border-color: rgba(157, 124, 255, 0.28);
}
.idx-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-ghost.is-danger {
  color: #ff9b9b;
  border-color: rgba(255, 107, 107, 0.28);
}
.btn-ghost.is-danger:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.45);
}
.idx-card-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: rgba(78, 168, 255, 0.06);
  border: 1px dashed rgba(78, 168, 255, 0.35);
  color: var(--accent-soft);
  border-radius: 14px;
  padding: 15px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.idx-card-add:hover {
  background: rgba(78, 168, 255, 0.11);
  border-color: var(--accent);
}
.idx-card-add svg {
  width: 18px;
  height: 18px;
}
.idx-editor-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 18px;
}
.idx-editor-head h3 {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}
.idx-back {
  margin-bottom: 6px;
}

/* ===== İlan editörü — Kurumlarım inline accordion (kırık link yerine) ===== */
.dl-fac-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: -1px;
}
.dl-fac-acc {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.dl-fac-acc > summary {
  cursor: pointer;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-soft);
  list-style: none;
}
.dl-fac-acc > summary::-webkit-details-marker {
  display: none;
}
.dl-fac-acc > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 7px;
  transition: transform 0.15s ease;
}
.dl-fac-acc[open] > summary::before {
  transform: rotate(90deg);
}
.dl-fac-acc[open] > summary {
  border-bottom: 1px solid var(--line);
}
.dl-fac-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  max-height: 240px;
  overflow: auto;
}
.dl-fac-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.dl-fac-opt:hover {
  border-color: var(--line-strong);
}
.dl-fac-opt.is-on {
  border-color: rgba(46, 204, 113, 0.4);
  background: rgba(46, 204, 113, 0.08);
}
.dl-fac-nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-fac-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}
.dl-fac-opt.is-on .dl-fac-mark {
  background: rgba(46, 204, 113, 0.2);
  color: #7ef0b0;
}

/* ===== Sidebar grup başlıkları (HESAP / TESİS / KLİNİK …) YALNIZ owner/admin panelinde;
   doktor / tesis / hasta panellerinde gizli (düz liste) ===== */
.app-body:not(.app-admin) .sidebar-nav .sidebar-group {
  display: none;
}
/* başlık gizlenince ilk gruptan sonrakine küçük ayraç boşluğu bırak */
.app-body:not(.app-admin) .sidebar-nav .side-link + .side-link {
  margin-top: 2px;
}
/* Owner'a özel hero süsleri (KOMUTA MERKEZİ + saat, dönen kalkan) YALNIZ kırmızı temada;
   moderatör/normal panelde boyama anından itibaren gizli (kırmızı-flash + metin flash önlenir) */
.app-body:not(.app-admin) .adm-hero-status,
.app-body:not(.app-admin) .adm-hero-art {
  display: none !important;
}

/* ============================================================
   ADMIN PANELİ — "Kızıl Komuta Merkezi" (Crimson Command Center)
   Yalnız .app-admin (admin.html / owner). Karanlık + kaotik + elit.
   ============================================================ */
.app-admin {
  --adm-bg: #06080e;
  --adm-panel-1: #0d0f18;
  --adm-panel-2: #0a0c13;
  --adm-crimson: #ff2e43;
  --adm-soft: #ff6b76;
  --adm-line: rgba(255, 46, 67, 0.15);
  --adm-line-2: rgba(255, 46, 67, 0.38);
  --adm-glow: rgba(255, 46, 67, 0.3);
  --adm-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}
.app-admin.app-body,
.app-admin .app-shell {
  background: var(--adm-bg);
}
/* ızgara dokusu (arka planda, üstte vinyet ile sönümlenir) */
.app-admin .app-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 46, 67, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 67, 0.045) 1px, transparent 1px);
  background-size:
    46px 46px,
    46px 46px;
  -webkit-mask-image: radial-gradient(125% 90% at 50% -5%, #000 0%, transparent 72%);
  mask-image: radial-gradient(125% 90% at 50% -5%, #000 0%, transparent 72%);
}
.app-admin .app-sidebar,
.app-admin .app-main {
  position: relative;
  z-index: 1;
}

/* Sidebar — karanlık, kızıl kimlik */
.app-admin .app-sidebar {
  background: linear-gradient(180deg, #080a11, var(--adm-bg));
  border-right: 1px solid var(--adm-line);
}
.app-admin .sidebar-group {
  color: var(--adm-soft);
  font-family: var(--adm-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.85;
}
.app-admin .side-link {
  border-radius: 8px;
}
.app-admin .side-link:hover {
  background: rgba(255, 46, 67, 0.07);
  color: #fff;
}
.app-admin .side-link.is-active {
  background: linear-gradient(135deg, rgba(255, 46, 67, 0.17), rgba(255, 46, 67, 0.04));
  box-shadow: inset 3px 0 0 var(--adm-crimson);
  color: #fff;
}
.app-admin .side-link.is-active svg {
  color: var(--adm-soft);
}
.app-admin .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 46, 67, 0.4);
}
.app-admin .sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 46, 67, 0.7);
}
.app-admin .side-badge {
  background: linear-gradient(135deg, var(--adm-crimson), #b30f20);
  color: #fff;
  box-shadow: 0 0 12px var(--adm-glow);
}

/* Topbar */
.app-admin .app-topbar {
  background: rgba(6, 8, 14, 0.82);
  border-bottom: 1px solid var(--adm-line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.app-admin .app-content {
  background: radial-gradient(900px 420px at 72% -12%, rgba(255, 46, 67, 0.07), transparent 60%);
}

/* Welcome banner — komuta merkezi başlığı */
.app-admin .welcome-banner {
  background: linear-gradient(120deg, #17070b, var(--adm-panel-2) 62%);
  border: 1px solid var(--adm-line-2);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.app-admin .welcome-eyebrow {
  color: var(--adm-crimson);
  font-family: var(--adm-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.app-admin .welcome-banner h2,
.app-admin .welcome-text h2 {
  color: #fff;
}

/* Kartlar — koyu, üstte kızıl konsol çizgisi, keskin köşe */
.app-admin .card {
  background: linear-gradient(180deg, var(--adm-panel-1), var(--adm-panel-2));
  border: 1px solid var(--adm-line);
  border-radius: 12px;
  position: relative;
}
.app-admin .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--adm-crimson), transparent);
  opacity: 0.5;
}
.app-admin .card-head h3 {
  font-family: var(--adm-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
  color: #fff;
}

/* Stat kartları — monospace sayılar, koyu ikonlar, kritik olan (Onay Bekleyen) kızıl parlar */
.app-admin .stat-card {
  background: linear-gradient(180deg, var(--adm-panel-1), var(--adm-panel-2));
  border: 1px solid var(--adm-line);
  border-radius: 12px;
}
.app-admin .stat-card:hover {
  border-color: var(--adm-line-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.app-admin .stat-ico {
  background: linear-gradient(135deg, #171a26, #0e1019) !important;
  border: 1px solid var(--adm-line-2);
  border-radius: 12px;
}
.app-admin .stat-ico svg {
  color: var(--adm-soft);
}
.app-admin .stat-ico.c4 {
  background: linear-gradient(135deg, #3a0d14, #160a0d) !important;
  border-color: var(--adm-crimson);
  box-shadow: 0 0 22px var(--adm-glow);
}
.app-admin .stat-ico.c4 svg {
  color: var(--adm-crimson);
}
.app-admin .stat-meta strong {
  font-family: var(--adm-mono);
  letter-spacing: -1px;
}

/* Tablolar — komuta konsolu */
.app-admin .data-table th {
  color: var(--adm-soft);
  border-bottom: 1px solid var(--adm-line-2);
  font-family: var(--adm-mono);
  font-size: 11px;
}
.app-admin .data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.app-admin .data-table tbody tr:hover {
  background: rgba(255, 46, 67, 0.055);
}

/* Butonlar + rozet + link */
.app-admin .btn-primary {
  background: linear-gradient(135deg, var(--adm-crimson), #c01023);
  box-shadow: 0 10px 30px rgba(255, 46, 67, 0.35);
}
.app-admin .btn-primary:hover {
  box-shadow: 0 16px 42px rgba(255, 46, 67, 0.55);
  transform: translateY(-1px);
}
.app-admin .btn-ghost {
  border-color: var(--adm-line-2);
  color: var(--adm-soft);
}
.app-admin .btn-ghost:hover {
  background: rgba(255, 46, 67, 0.08);
  border-color: var(--adm-crimson);
  color: #fff;
}
.app-admin .link-btn {
  color: var(--adm-soft);
}
.app-admin .badge-blue {
  background: rgba(255, 46, 67, 0.16);
  color: var(--adm-soft);
}
.app-admin .side-badge.alt {
  background: linear-gradient(135deg, var(--adm-crimson), #b30f20);
}
/* içerik katmanı ızgaranın üstünde kalsın */
.app-admin .panel,
.app-admin .app-content > * {
  position: relative;
  z-index: 1;
}

/* ===== Admin — "yaşayan aura" katmanı (animasyonlu, reduced-motion güvenli) ===== */
/* yavaşça sürüklenen kızıl ambient parıltı */
.app-admin .app-shell::after {
  content: '';
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 22% 18%, rgba(255, 46, 67, 0.1), transparent 60%),
    radial-gradient(680px 520px at 82% 78%, rgba(255, 46, 67, 0.07), transparent 62%);
  animation: admDrift 22s ease-in-out infinite alternate;
}
@keyframes admDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(3%, -2%, 0) scale(1.06);
  }
}

/* stat kartları — HUD köşe braketleri (hedefleme çerçevesi) */
.app-admin .stat-card {
  position: relative;
}
/* kritik kart (Onay Bekleyen) — nefes alan kızıl glow */
.app-admin .stat-ico.c4 {
  animation: admPulse 2.6s ease-in-out infinite;
}
@keyframes admPulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(255, 46, 67, 0.25);
  }
  50% {
    box-shadow: 0 0 34px rgba(255, 46, 67, 0.6);
  }
}

/* kart hover — kızıl kenar parıltısı + hafif kalkma */
.app-admin .card {
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
}
.app-admin .card:hover {
  transform: translateY(-2px);
  border-color: var(--adm-line-2);
  box-shadow:
    0 0 0 1px rgba(255, 46, 67, 0.22),
    0 22px 54px rgba(0, 0, 0, 0.5),
    0 0 46px rgba(255, 46, 67, 0.08);
}

/* aktif sidebar link — iç glow */
.app-admin .side-link.is-active {
  box-shadow:
    inset 3px 0 0 var(--adm-crimson),
    inset 0 0 26px rgba(255, 46, 67, 0.09);
}

/* bölüm geçişinde panel giriş animasyonu */
.app-admin .panel.is-active {
  animation: admEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes admEnter {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* birincil buton — süpürme parıltısı */
.app-admin .btn-primary {
  position: relative;
  overflow: hidden;
}
.app-admin .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  transform: skewX(-20deg);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: admSheen 5s ease-in-out infinite 1.5s;
}
@keyframes admSheen {
  0% {
    left: -60%;
  }
  55%,
  100% {
    left: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-admin .app-shell::after,
  .app-admin .stat-ico.c4,
  .app-admin .panel.is-active,
  .app-admin .btn-primary::after {
    animation: none !important;
  }
  .app-admin .app-main::after {
    display: none;
  }
}

/* ===== Admin — sinematik kişisel karşılama (hero) ===== */
.app-admin .adm-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 34px 32px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #1c060b 0%, #12060c 42%, #0a0c13 100%);
  border: 1px solid var(--adm-line-2);
  box-shadow:
    inset 0 0 60px rgba(255, 46, 67, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.5);
  animation: admHeroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes admHeroIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.app-admin .adm-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 420px;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 46, 67, 0.16), transparent 62%);
}
.app-admin .adm-hero .welcome-text {
  position: relative;
  z-index: 1;
}
.app-admin .adm-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--adm-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--adm-soft);
  margin-bottom: 16px;
}
.app-admin .adm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--adm-crimson);
  box-shadow: 0 0 10px var(--adm-crimson);
  animation: admDotPulse 1.8s ease-in-out infinite;
}
@keyframes admDotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}
.app-admin .adm-clock {
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1.5px;
}
.app-admin .adm-hero-greet {
  display: block;
  font-family: var(--adm-mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.app-admin .adm-hero-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  background: linear-gradient(180deg, #ffffff 0%, #ffd7db 55%, #ff8a94 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 100% 220%;
  animation: admNameSheen 7s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(255, 46, 67, 0.28));
}
@keyframes admNameSheen {
  0%,
  100% {
    background-position: 50% 12%;
  }
  50% {
    background-position: 50% 88%;
  }
}
.app-admin .adm-hero-lead {
  color: var(--text-muted);
  max-width: 520px;
  font-size: 13.5px;
}
.app-admin .adm-hero .welcome-cta {
  margin-top: 18px;
}
.app-admin .adm-hero-art {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  z-index: 1;
}
.app-admin .adm-hero-art svg {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 0 16px rgba(255, 46, 67, 0.4));
}
.app-admin .adm-art-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 46, 67, 0.28);
  border-top-color: var(--adm-crimson);
  animation: admRing 9s linear infinite;
}
.app-admin .adm-art-ring2 {
  inset: 16px;
  border-color: rgba(255, 46, 67, 0.16);
  border-top-color: transparent;
  border-right-color: var(--adm-soft);
  animation-duration: 6s;
  animation-direction: reverse;
}
@keyframes admRing {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-admin .adm-hero,
  .app-admin .adm-hero-name,
  .app-admin .adm-dot,
  .app-admin .adm-art-ring {
    animation: none !important;
  }
}
@media (max-width: 640px) {
  .app-admin .adm-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .app-admin .adm-hero-art {
    display: none;
  }
}

/* ===== Admin — giriş karşılama (splash): TAM EKRAN gerçek göz videosu + isimle karşılama ===== */
.adm-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  cursor: pointer;
  background: #030104;
  opacity: 0;
  animation: admSplashIn 0.5s ease forwards;
  --c: #ff2e43;
}
@keyframes admSplashIn {
  to {
    opacity: 1;
  }
}
.adm-splash.is-out {
  animation: admSplashOut 0.8s ease forwards;
}
@keyframes admSplashOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
/* gerçek insan gözü videosu — ekranı tamamen kaplar */
.adm-splash-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: admVidIn 1.2s ease both;
}
@keyframes admVidIn {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* mavi videoyu komuta-merkezi kızılına boyar (gerçekçilik korunur, hue kızıla döner) */
.adm-splash-color {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #c81028;
  mix-blend-mode: color;
  opacity: 0.12;
}
/* kenar karartma + altta metin için gradyan + hafif kızıl merkez parıltısı */
.adm-splash-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 46, 67, 0.1), transparent 50%),
    radial-gradient(
      circle at 50% 50%,
      transparent 40%,
      rgba(3, 1, 4, 0.5) 82%,
      rgba(3, 1, 4, 0.9) 100%
    ),
    linear-gradient(180deg, rgba(3, 1, 4, 0.25) 0%, transparent 40%, rgba(3, 1, 4, 0.85) 100%);
}
.adm-splash-stage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11vh;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
}

.adm-splash-greet {
  font-family: var(--adm-mono, ui-monospace, monospace);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e2cace;
  opacity: 0;
  animation: admTxtFade 0.6s ease forwards 1.3s;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.adm-splash-name {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-top: 6px;
  background: linear-gradient(180deg, #fff 0%, #ffd7db 55%, #ff8a94 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 34px rgba(255, 46, 67, 0.5));
  opacity: 0;
  animation: admTxtUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.45s;
}
.adm-splash-sub {
  margin-top: 16px;
  font-family: var(--adm-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c4a7ad;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: admTxtFade 0.6s ease forwards 1.8s;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.adm-splash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
  animation: admDotPulse 1.6s ease-in-out infinite;
}
@keyframes admTxtFade {
  to {
    opacity: 1;
  }
}
@keyframes admTxtUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .adm-splash,
  .adm-splash * {
    animation-duration: 0.01s !important;
  }
}

/* ===== Sayfa-içi görsel/PDF lightbox (yeni sekme yerine aynı sekmede) ===== */
.hp-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 12, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 40px;
}
.hp-lb.is-open {
  display: flex;
  animation: hpLbIn 0.2s ease;
}
@keyframes hpLbIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hp-lb-body {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
}
.hp-lb-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}
.hp-lb-frame {
  width: 90vw;
  height: 86vh;
  border: none;
  border-radius: 12px;
  background: #fff;
}
.hp-lb-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.hp-lb-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   İndeks etkileşimleri (v52): tıklanabilir doktor/kurum + yayınla-taslak + sayfa-içi önizleme
   ============================================================ */
/* tedavi detay → doktor adı + fotoğrafı doktorun indeksine link */
.td-doc-link {
  color: inherit;
  text-decoration: none;
}
.td-doc-link strong {
  transition: color 0.2s ease;
}
.td-doc-link:hover strong {
  color: var(--accent-soft);
}
.td-doc-photolink {
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transition: transform 0.2s ease;
}
.td-doc-photolink img {
  transition: filter 0.2s ease;
}
.td-doc-photolink:hover img {
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55)) brightness(1.06);
}
.td-doc-photolink:hover {
  transform: translateY(-2px);
}

/* doktor indeksi → kurum adı tıklanabilir (başlık gibi görünür, link gibi davranır) */
.dd-fac a.dd-fac-name {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.dd-fac a.dd-fac-name:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

/* İndeksim → Yayınla butonu (yeşil vurgu) */
.btn-ghost.is-ok {
  color: #6ee7a8;
  border-color: rgba(110, 231, 168, 0.35);
}
.btn-ghost.is-ok:hover {
  background: rgba(110, 231, 168, 0.12);
}

/* doktor indeksi önizleme çubuğu */
.dd-preview-bar {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-radius: 12px;
  text-align: center;
  background: rgba(78, 168, 255, 0.12);
  border: 1px solid var(--accent-glow);
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
}

/* İndeks sayfa-içi önizleme modalı — foto lightbox mantığı (karartma + iframe + kapat) */
.idx-prev-open {
  overflow: hidden;
}
.idx-prev-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: hpLbIn 0.2s ease;
}
.idx-prev-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.idx-prev-box {
  position: relative;
  width: 90vw;
  height: 86vh;
  display: flex;
}
.idx-prev-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.idx-prev-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
  z-index: 1;
}
.idx-prev-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
@media (max-width: 760px) {
  .idx-prev-modal {
    padding: 0;
  }
  .idx-prev-box {
    width: 100vw;
    height: 100vh;
  }
  .idx-prev-frame {
    border-radius: 0;
  }
  .idx-prev-close {
    top: 12px;
    right: 12px;
  }
}
