/* =====================================================================
   FizyoKantik Web — Tasarım Sistemi
   ===================================================================== */

:root {
  --bg: hsl(222 28% 7%);
  --bg-2: hsl(222 24% 10%);
  --surface: hsl(222 22% 13% / 0.72);
  --surface-solid: hsl(222 22% 13%);
  --border: hsl(220 20% 100% / 0.08);
  --border-strong: hsl(220 20% 100% / 0.16);

  --text: hsl(210 20% 96%);
  --text-dim: hsl(215 14% 70%);
  --text-faint: hsl(215 12% 52%);

  --accent: hsl(160 72% 44%);
  --accent-2: hsl(174 70% 52%);
  --accent-soft: hsl(160 72% 44% / 0.14);
  --warm: hsl(32 90% 64%);
  --danger: hsl(0 78% 64%);

  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow: 0 20px 50px -20px hsl(222 60% 2% / 0.8);
  --shadow-glow: 0 10px 40px -10px hsl(160 72% 44% / 0.45);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

/* Arka plan ışıltıları */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 10% 10%, hsl(160 72% 44% / 0.10), transparent 60%),
    radial-gradient(700px 500px at 90% 30%, hsl(200 80% 50% / 0.07), transparent 60%),
    radial-gradient(500px 400px at 50% 100%, hsl(32 90% 60% / 0.05), transparent 60%);
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { 
  background: var(--grad); 
  color: #071719 !important; 
  font-weight: 700; 
  letter-spacing: 0.015em;
  box-shadow: var(--shadow-glow); 
}
.btn-primary:hover { 
  color: #02090a !important;
  box-shadow: 0 16px 50px -10px hsl(160 72% 44% / 0.7); 
}
.btn-ghost { background: hsl(0 0% 100% / 0.04); border-color: var(--border-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: hsl(0 0% 100% / 0.09); }
.btn-wa { background: hsl(142 70% 42%); color: #fff; }
.btn-wa:hover { box-shadow: 0 12px 36px -10px hsl(142 70% 42% / 0.7); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: hsl(222 28% 7% / 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.1rem; letter-spacing: .08em; }
.brand-text span { font-size: .72rem; color: var(--text-faint); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a:not(.btn) { color: var(--text-dim); font-size: .95rem; font-weight: 500; position: relative; transition: color .25s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-links .btn {
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #071719 !important;
}
.nav-links .btn::after {
  display: none !important;
}

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, hsl(222 28% 7% / 0.92) 35%, hsl(222 28% 7% / 0.45) 70%, hsl(222 28% 7% / 0.65) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-content { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-2); border: 1px solid hsl(160 72% 44% / 0.25);
  margin-bottom: 1.5rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.05; font-weight: 700; letter-spacing: -.025em; margin-bottom: 1.4rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-dim); max-width: 540px; margin-bottom: 2.2rem; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 700; }
.stat span { font-size: .85rem; color: var(--text-faint); }

/* ---------- Bölümler ---------- */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head .tag { color: var(--accent-2); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; margin: .7rem 0 1rem; }
.section-head p { color: var(--text-dim); font-weight: 300; }

/* Hizmet kartları */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
  overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), hsl(160 72% 44% / 0.14), transparent 45%);
  transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); border-color: hsl(160 72% 44% / 0.35); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); margin-bottom: 1.3rem;
  transition: transform .45s var(--ease);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.08); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; font-weight: 600; }
.card p { color: var(--text-dim); font-size: .95rem; font-weight: 300; }

/* Hakkımızda */
.about { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 20%, hsl(160 72% 44% / 0.25), transparent 60%), var(--surface-solid);
  border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden;
}
.about-visual img { width: 46%; opacity: .95; filter: drop-shadow(0 20px 40px hsl(160 72% 30% / 0.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.about-visual .ring { position: absolute; border-radius: 50%; border: 1px dashed hsl(160 72% 44% / 0.25); animation: spin 40s linear infinite; }
.about-visual .ring.r1 { inset: 12%; }
.about-visual .ring.r2 { inset: 24%; animation-direction: reverse; animation-duration: 30s; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; margin: .7rem 0 1.2rem; letter-spacing: -.02em; }
.about-text p { color: var(--text-dim); margin-bottom: 1rem; font-weight: 300; }
.checklist { list-style: none; margin-top: 1.6rem; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Süreç */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 2.6rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9;
  display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.step p { color: var(--text-dim); font-size: .93rem; font-weight: 300; }

/* ---------- Randevu ---------- */
.booking-wrap {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); background: var(--surface-solid);
}
.booking-info {
  padding: 3rem; position: relative; overflow: hidden;
  background: radial-gradient(500px 300px at 0% 0%, hsl(160 72% 44% / 0.22), transparent 70%), linear-gradient(160deg, hsl(222 24% 14%), hsl(222 28% 9%));
}
.booking-info h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; margin: .6rem 0 1rem; }
.booking-info p { color: var(--text-dim); font-weight: 300; margin-bottom: 2rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: hsl(0 0% 100% / 0.06); color: var(--accent-2); flex-shrink: 0; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--text-faint); font-size: .78rem; }
.hours { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: grid; gap: .45rem; font-size: .92rem; }
.hours div { display: flex; justify-content: space-between; color: var(--text-dim); }
.hours div span:last-child { color: var(--text); font-weight: 500; }

.map-box {
  margin-top: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  box-shadow: 0 8px 24px -10px hsl(0 0% 0% / 0.5);
}
.map-box iframe {
  width: 100%;
  height: 190px;
  border: 0;
  display: block;
}
.map-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent-2);
  background: hsl(0 0% 100% / 0.04);
  border-top: 1px solid var(--border);
  transition: background .25s var(--ease), color .25s;
}
.map-link-btn:hover {
  background: hsl(0 0% 100% / 0.09);
  color: var(--text);
}
.map-link-btn svg {
  width: 15px;
  height: 15px;
}

.booking-form { padding: 3rem; display: grid; gap: 1.15rem; align-content: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .86rem; font-weight: 500; color: var(--text-dim); }
.field label .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: hsl(222 28% 7% / 0.6); border: 1px solid var(--border-strong);
  outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px hsl(160 72% 44% / 0.15); background: hsl(222 28% 7% / 0.9);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field select option { background: var(--surface-solid); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }

.time-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.time-pills input { position: absolute; opacity: 0; pointer-events: none; }
.time-pills label {
  text-align: center; padding: .75rem .5rem; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border-strong); background: hsl(222 28% 7% / 0.6); font-size: .9rem; color: var(--text-dim);
  transition: all .25s var(--ease);
}
.time-pills label small { display: block; font-size: .72rem; color: var(--text-faint); }
.time-pills input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 3px hsl(160 72% 44% / 0.12); }
.time-pills input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.kvkk { display: flex; gap: .7rem; align-items: flex-start; font-size: .84rem; color: var(--text-faint); }
.kvkk input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }

.form-status { display: none; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .92rem; }
.form-status.show { display: block; animation: fadeUp .4s var(--ease); }
.form-status.error { background: hsl(0 78% 64% / 0.12); border: 1px solid hsl(0 78% 64% / 0.35); color: hsl(0 90% 80%); }

.btn-submit { width: 100%; padding: 1.05rem; font-size: 1.02rem; }
.btn-submit[disabled] { opacity: .7; cursor: wait; transform: none; }
.spinner { width: 18px; height: 18px; border: 2px solid hsl(222 40% 8% / 0.3); border-top-color: hsl(222 40% 8%); border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn-submit.loading .spinner { display: inline-block; }

/* Başarı ekranı */
.success { display: none; text-align: center; padding: 3rem 2rem; align-content: center; }
.success.show { display: grid; animation: fadeUp .6s var(--ease); }
.success-icon { width: 84px; height: 84px; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.success-icon svg { width: 44px; height: 44px; color: var(--accent); }
.success-icon svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.success p { color: var(--text-dim); margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; color: var(--text-faint); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Sabit WhatsApp butonu */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: hsl(142 70% 42%); color: #fff; box-shadow: 0 12px 30px -8px hsl(142 70% 42% / 0.7);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid hsl(142 70% 42%); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Scroll animasyonları ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .booking-wrap { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .booking-info, .booking-form { padding: 2.2rem; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 78px 0 auto; flex-direction: column; gap: 0; padding: 1rem 1.25rem 1.5rem;
    background: hsl(222 28% 7% / 0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .45s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 1rem; width: 100%; border-bottom: none; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand-text span { display: none; }
  section { padding: 80px 0; }
  .form-row, .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .booking-info, .booking-form { padding: 1.75rem; }
}

/* ============ ONLINE HASTA PORTALI STYLES ============ */
.portal-section {
  background: linear-gradient(180deg, transparent, hsl(222 24% 9% / 0.8) 50%, transparent);
}
.portal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.portal-input-group {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}
.input-with-icon {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.input-with-icon svg {
  position: absolute;
  left: 1rem;
  width: 22px;
  height: 22px;
  color: var(--accent-2);
  pointer-events: none;
}
.input-with-icon input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: hsl(222 24% 11% / 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: border-color .2s, box-shadow .2s;
}
.input-with-icon input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px hsl(174 70% 52% / 0.15);
}
.portal-input-group .btn {
  padding-inline: 1.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.portal-result {
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.4s var(--ease);
}
.portal-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.portal-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.portal-header-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.portal-header-info p {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.portal-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.portal-kpi {
  padding: 1.25rem 1.4rem;
  background: hsl(222 22% 11% / 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.portal-kpi .kpi-label {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.portal-kpi .kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}
.portal-kpi .kpi-val.highlight-green {
  color: #10b981;
}
.portal-kpi .kpi-val.highlight-debt {
  color: #f59e0b;
}
.portal-kpi .kpi-val.zero-debt {
  color: #34d399;
  font-size: 1.15rem;
}
.portal-table-box {
  background: hsl(222 22% 10% / 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.portal-table-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.table-responsive {
  overflow-x: auto;
}
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 550px;
}
.portal-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: hsl(222 24% 13%);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.portal-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.portal-table tbody tr:last-child td {
  border-bottom: none;
}
.portal-table tbody tr:hover td {
  background: hsl(222 20% 15% / 0.5);
}
.empty-note {
  color: var(--text-faint);
  font-size: 0.92rem;
  text-align: center;
  padding: 1.5rem 0;
}
@media (max-width: 640px) {
  .portal-card {
    padding: 1.6rem;
  }
  .portal-input-group {
    flex-direction: column;
  }
  .portal-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ ÇOKLU SAYFA & MODÜLER BİLEŞENLER ============ */
.page-hero {
  padding: 130px 0 60px;
  position: relative;
  background: radial-gradient(800px 350px at 50% 0%, hsl(160 72% 44% / 0.16), transparent 75%),
              linear-gradient(180deg, hsl(222 26% 9%), var(--bg));
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1rem;
}
.page-hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}
.breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}
.breadcrumb a {
  color: var(--accent-2);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Kategori Sekmeleri (Tabs) */
.category-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5rem 0 2rem;
}
.tab-btn {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.tab-btn:hover {
  background: hsl(222 22% 18%);
  color: var(--text);
  border-color: var(--border-strong);
}
.tab-btn.active {
  background: var(--grad);
  color: hsl(222 30% 8%);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 20px -4px hsl(160 72% 44% / 0.5);
}

/* Egzersiz Kartları Izgarası */
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.8rem;
  margin-bottom: 4rem;
}
.exercise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.exercise-card:hover {
  transform: translateY(-6px) !important;
  border-color: hsl(160 72% 44% / 0.4);
  box-shadow: var(--shadow), 0 0 30px -10px hsl(160 72% 44% / 0.2);
}
.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.exercise-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
}
.exercise-icon-wrap svg {
  width: 26px;
  height: 26px;
}
.category-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: hsl(222 24% 16%);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.exercise-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.exercise-card p {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin-bottom: 1.3rem;
  flex: 1;
}

/* Set / Tekrar Rozetleri */
.exercise-meta-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.set-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: hsl(222 24% 11%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
}
.set-pill svg {
  width: 14px;
  height: 14px;
}

/* Adım Adım Talimatlar */
.steps-box {
  background: hsl(222 24% 9% / 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.steps-box h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.steps-box ol {
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  display: grid;
  gap: 0.45rem;
}

.caution-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: hsl(38 92% 65%);
  background: hsl(38 92% 50% / 0.1);
  border: 1px solid hsl(38 92% 50% / 0.25);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}
.caution-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Hasta Karşılama Kartı (Egzersiz Sayfası TC Doğrulama) */
.patient-welcome-card {
  background: radial-gradient(600px 250px at 0% 0%, hsl(160 72% 44% / 0.25), transparent 75%), var(--surface-solid);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 10px 40px -10px hsl(160 72% 44% / 0.3);
}
.patient-welcome-card h2 {
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.patient-welcome-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* İletişim Sayfası Bileşenleri */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 3rem 0 5rem;
}
.contact-quick-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.contact-info-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s, border-color 0.25s;
}
.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.contact-info-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
}
.contact-info-card .icon-box svg {
  width: 22px;
  height: 22px;
}
.contact-info-card strong {
  font-size: 1.05rem;
  color: var(--text);
}
.contact-info-card span, .contact-info-card a {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.contact-info-card a:hover {
  color: var(--accent-2);
}

/* Hizmet Detay Kartları */
.service-full-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: flex-start;
  transition: transform 0.3s, border-color 0.3s;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.service-full-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--accent-2);
}
.service-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
}
.service-icon-large svg {
  width: 42px;
  height: 42px;
}
.service-full-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.service-full-content p {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.service-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  list-style: none;
}
.service-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
}
.service-checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
  .service-full-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .contact-quick-cards {
    grid-template-columns: 1fr;
  }
}

.btn-demo-tani {
  background: hsl(222 24% 13%);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-demo-tani:hover {
  background: hsl(222 24% 18%);
  color: var(--accent-2);
  border-color: var(--accent);
}
.btn-demo-tani.active {
  background: var(--accent);
  color: hsl(222 47% 8%);
  font-weight: 600;
  border-color: var(--accent);
}

/* =====================================================================
   SÜPER PROFESYONEL EKLENTİLER (FLOATING WHATSAPP, FAQ, SEARCH, TRUST)
   ===================================================================== */

/* 1. Yüzen WhatsApp Butonu (Floating CTA) */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem 0.75rem 0.9rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}
.floating-wa:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.5);
  color: #ffffff !important;
}
.floating-wa-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex-shrink: 0;
  animation: wa-pulse 2.2s infinite ease-in-out;
}
@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(4deg); }
}
@media (max-width: 600px) {
  .floating-wa {
    bottom: 18px;
    right: 18px;
    padding: 0.75rem;
    border-radius: 50%;
  }
  .floating-wa span {
    display: none;
  }
  .floating-wa-icon {
    width: 28px;
    height: 28px;
  }
}

/* 2. Sıkça Sorulan Sorular (FAQ Accordion) */
.faq-section {
  padding: 5rem 0;
}
.faq-list {
  max-width: 820px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: hsl(222 24% 10%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item:hover {
  border-color: var(--border-strong);
}
.faq-item.active {
  border-color: var(--accent);
  background: hsl(222 24% 12%);
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-item.active .faq-question {
  color: var(--accent-2);
}
.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-dim);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-2);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.35rem 1.5rem;
  transition: max-height 0.35s ease-in-out, padding 0.3s ease;
}

/* 3. Güven & Başarı Rozetleri (Trust Bar) */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 3rem 0;
}
.trust-card {
  background: hsl(222 24% 9.5%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.trust-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.trust-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-2);
  display: block;
  margin-bottom: 0.2rem;
}
.trust-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.trust-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* 4. Egzersiz Arama Çubuğu & Yazdır Butonu */
.exercise-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.exercise-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}
.exercise-search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: hsl(222 24% 11%);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.exercise-search-box input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.exercise-search-box svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-dim);
  pointer-events: none;
}

/* 5. Yazdırma / PDF Çıktısı (Print Styles) */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  .header, .footer, .floating-wa, #egzersiz-tc-form, .category-tabs, .exercise-toolbar, .btn, .bg-glow {
    display: none !important;
  }
  .exercise-grid {
    display: block !important;
  }
  .exercise-card {
    page-break-inside: avoid;
    break-inside: avoid;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    margin-bottom: 1.5rem;
    box-shadow: none !important;
  }
  .exercise-card h3 {
    color: #111827 !important;
  }
  .steps-box, .caution-note {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
    color: #374151 !important;
  }
  .set-pill {
    background: #e5e7eb !important;
    color: #111827 !important;
  }
}

/* Demo Tanı Butonları (Kilit Ekranı) */
.btn-demo-tani {
  background: hsl(222 24% 14%);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-demo-tani:hover {
  background: hsl(160 72% 44% / 0.15);
  border-color: var(--accent-2);
  color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px hsl(160 72% 44% / 0.25);
}
.btn-demo-tani:active {
  transform: translateY(0);
}


