/* ==========================================================================
   medX Dijital — "Luminous Crystal & Aurora Studio" v9
   Ferah, renkli, kristal cam katmanlı, tarayıcı pencereli & çoklu ekran seçicili
   özel ajans tasarımı + 3 Tek-Tık Tema Modu (Kristal Ferah / Okyanus / Gece)
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg: #f0f4fa;
  --bg-2: #e6edf7;
  --bg-mesh: radial-gradient(at 12% 8%, rgba(59, 130, 246, 0.16) 0px, transparent 48%),
             radial-gradient(at 88% 12%, rgba(139, 92, 246, 0.15) 0px, transparent 45%),
             radial-gradient(at 50% 45%, rgba(6, 182, 212, 0.10) 0px, transparent 55%),
             radial-gradient(at 85% 82%, rgba(244, 63, 94, 0.10) 0px, transparent 50%),
             linear-gradient(180deg, #f5f8ff 0%, #edf2fb 50%, #f4f7fc 100%);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-2: #f8fafc;
  --window-bar: #f1f5f9;
  --window-url: #ffffff;
  --line: rgba(15, 23, 42, 0.09);
  --line-2: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --muted: #475569;
  --dim: #64748b;
  --cyan: #0284c7;
  --blue: #2563eb;
  --violet: #7c3aed;
  --red: #e11d48;
  --emerald: #059669;
  --amber: #d97706;
  --grad: linear-gradient(115deg, #2563eb 0%, #7c3aed 52%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
  --card-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 24px 48px -12px rgba(37, 99, 235, 0.20), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --head-bg: rgba(255, 255, 255, 0.85);
  --grid-line: rgba(15, 23, 42, 0.04);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1260px;
  --pad: clamp(18px, 4vw, 40px);
  --f-head: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

/* 🌊 Okyanus Mavisi (Canlı Kraliyet Laciverti - Siyah Değil, Ferah Deniz/Safir Tonu) */
[data-theme="ocean"] {
  --bg: #0f2147;
  --bg-2: #152c5c;
  --bg-mesh: radial-gradient(at 15% 10%, rgba(56, 189, 248, 0.25) 0px, transparent 50%),
             radial-gradient(at 85% 15%, rgba(99, 102, 241, 0.28) 0px, transparent 48%),
             radial-gradient(at 50% 60%, rgba(14, 165, 233, 0.18) 0px, transparent 55%),
             linear-gradient(180deg, #0f224a 0%, #162f63 50%, #10244d 100%);
  --surface: rgba(24, 49, 102, 0.82);
  --surface-solid: #1b3770;
  --surface-2: #142a59;
  --window-bar: #122652;
  --window-url: #1c3875;
  --line: rgba(148, 163, 184, 0.20);
  --line-2: rgba(56, 189, 248, 0.35);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --dim: #94a3b8;
  --cyan: #38bdf8;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --red: #fb7185;
  --emerald: #34d399;
  --amber: #fbbf24;
  --grad: linear-gradient(115deg, #38bdf8 0%, #818cf8 50%, #2dd4bf 100%);
  --grad-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(129, 140, 248, 0.14));
  --card-shadow: 0 16px 36px -10px rgba(4, 12, 30, 0.45);
  --card-shadow-hover: 0 24px 52px -12px rgba(56, 189, 248, 0.32);
  --head-bg: rgba(15, 34, 74, 0.85);
  --grid-line: rgba(255, 255, 255, 0.06);
}

/* ✨ Kristal Antrasit (Yumuşak Modern Slate) */
[data-theme="slate"] {
  --bg: #1e2436;
  --bg-2: #252d42;
  --bg-mesh: radial-gradient(at 15% 10%, rgba(99, 102, 241, 0.24) 0px, transparent 48%),
             radial-gradient(at 85% 15%, rgba(236, 72, 153, 0.18) 0px, transparent 48%),
             linear-gradient(180deg, #1e2436 0%, #232a3e 50%, #1b2030 100%);
  --surface: rgba(40, 48, 70, 0.88);
  --surface-solid: #2b334b;
  --surface-2: #22293d;
  --window-bar: #1d2335;
  --window-url: #2b344d;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.24);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --dim: #94a3b8;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --violet: #c084fc;
  --red: #f87171;
  --emerald: #34d399;
  --amber: #fbbf24;
  --grad: linear-gradient(115deg, #38bdf8 0%, #a855f7 52%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(168, 85, 247, 0.14));
  --card-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 24px 50px -12px rgba(168, 85, 247, 0.30);
  --head-bg: rgba(30, 36, 54, 0.86);
  --grid-line: rgba(255, 255, 255, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-mesh);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--f-mono); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Floating Pill Header ---------- */
.site-head {
  position: fixed; inset: 12px 0 auto 0; z-index: 60;
  pointer-events: none;
}
.head-in {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  height: 64px; padding: 0 20px;
  background: var(--head-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.12);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; font-size: 16px; font-weight: 800; color: #fff;
  box-shadow: 0 6px 18px -4px rgba(37, 99, 235, 0.55);
}
.logo b { font-weight: 800; }
.logo span { color: var(--blue); font-weight: 600; }
.head-nav { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.head-nav a { padding: 7px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--muted); transition: all .2s; }
.head-nav a:hover { color: var(--text); background: var(--surface-solid); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

.head-right { display: flex; align-items: center; gap: 8px; }
.theme-switch {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.theme-btn {
  padding: 5px 10px; border-radius: 999px; border: 0; background: transparent;
  font-size: 0.76rem; font-weight: 700; color: var(--muted); transition: all .2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.theme-btn.active {
  background: var(--grad); color: #fff;
  box-shadow: 0 3px 10px -2px rgba(37, 99, 235, 0.5);
}
.head-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 700;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(217, 119, 6, 0.45);
  transition: transform .2s, box-shadow .2s;
}
.head-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -4px rgba(217, 119, 6, 0.65); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.7); animation: ping 2s infinite; display: inline-block; }
.head-cta .dot { background: #fff; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 136px 0 44px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 80%);
}
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(95px); opacity: .32; }
.hero-bg .g1 { width: 560px; height: 560px; left: 50%; top: -220px; transform: translateX(-65%); background: #3b82f6; }
.hero-bg .g2 { width: 460px; height: 460px; left: 50%; top: -140px; transform: translateX(15%); background: #8b5cf6; }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.08);
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 600; color: var(--blue); letter-spacing: 0.02em;
}
.hero h1 {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(2.4rem, 5.8vw, 4.4rem); line-height: 1.05; letter-spacing: -0.035em;
  margin: 20px 0 16px; max-width: 16ch; color: var(--text);
}
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 62ch; margin: 0 0 28px; font-weight: 450; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 0.96rem;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.btn.primary { background: var(--grad); color: #ffffff; box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.55); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(37, 99, 235, 0.75); }
.btn.ghost {
  border-color: rgba(217, 119, 6, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(217, 119, 6, 0.06));
  color: var(--text);
}
.btn.ghost:hover { border-color: #d97706; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; transform: translateY(-2px); }

/* Bento KPI Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 44px 0 0; width: 100%; max-width: 920px;
}
.stats div {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform .25s;
}
.stats div:hover { transform: translateY(-3px); }
.stats div::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: var(--grad);
}
.stats div:nth-child(2)::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.stats div:nth-child(3)::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.stats div:nth-child(4)::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.stats dt { font-family: var(--f-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.stats dd { margin: 4px 0 0; font-size: 0.82rem; font-weight: 600; color: var(--muted); }

/* Compact Preview Marquee */
.marquee {
  margin-top: 48px; overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.track { display: flex; gap: 16px; width: max-content; animation: slide 58s linear infinite; padding: 10px 0; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.thumb {
  flex: 0 0 auto; width: 210px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface-solid);
  box-shadow: var(--card-shadow);
  transition: transform .25s, border-color .25s;
}
.thumb:hover { transform: translateY(-5px); border-color: var(--blue); }
.thumb img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.thumb span { display: block; padding: 8px 10px; font-size: 0.75rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sections ---------- */
section.block { padding: clamp(64px, 8vw, 100px) 0; position: relative; }
section.block + section.block { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.eyebrow {
  display: inline-block; font-family: var(--f-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
  background: var(--grad-soft); border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 12px; border-radius: 999px; margin: 0 0 10px;
}
.sec-head h2, .h2 { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.9rem, 3.8vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.12; margin: 0; color: var(--text); }
.sec-sub { color: var(--muted); max-width: 54ch; margin: 10px 0 0; font-size: 1rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; background: var(--surface); padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); box-shadow: var(--card-shadow); }
.filters button {
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 0; background: transparent; color: var(--muted);
  transition: all .2s;
}
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] {
  color: #ffffff; background: var(--grad);
  box-shadow: 0 4px 14px -3px rgba(37, 99, 235, 0.5);
}
.count { font-family: var(--f-mono); font-size: 0.82rem; font-weight: 600; color: var(--dim); margin: 10px 0 0; }

/* ---------- Browser Window Project Cards Grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-solid);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(37, 99, 235, 0.45);
}

/* Browser Window Top Chrome Bar */
.card-window {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px;
  background: var(--window-bar);
  border-bottom: 1px solid var(--line);
}
.win-dots { display: flex; gap: 6px; flex-shrink: 0; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.win-dots i:nth-child(1) { background: #ff5f56; }
.win-dots i:nth-child(2) { background: #ffbd2e; }
.win-dots i:nth-child(3) { background: #27c93f; }
.win-url {
  flex: 1; min-width: 0;
  background: var(--window-url);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center;
}
.win-count {
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 700;
  color: var(--blue); background: rgba(37, 99, 235, 0.10);
  padding: 3px 8px; border-radius: 6px; flex-shrink: 0;
}

.card-media {
  position: relative; display: block;
  margin: 0; border-radius: 0; overflow: hidden;
  background: #0f172a; border: 0; padding: 0; text-align: left;
  aspect-ratio: 16 / 10; width: 100%; min-height: 195px;
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%; height: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top center; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-media img { transform: scale(1.03); }
.card-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(15, 23, 42, 0.82); color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.card-num {
  position: absolute; right: 12px; bottom: 10px; z-index: 2;
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 700;
  color: #ffffff; background: rgba(15, 23, 42, 0.78);
  padding: 3px 9px; border-radius: 6px; backdrop-filter: blur(6px);
}

/* Interactive Multi-Screen Switcher Bar inside Card */
.screen-switcher {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.screen-switcher::-webkit-scrollbar { display: none; }
.scr-btn {
  flex: 1; min-width: max-content;
  padding: 4px 9px; border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  font-family: var(--f-mono); font-size: 0.69rem; font-weight: 600;
  color: var(--muted);
  transition: all .18s ease;
  text-align: center;
}
.scr-btn:hover { border-color: var(--blue); color: var(--blue); }
.scr-btn.active {
  background: var(--blue); color: #ffffff; border-color: var(--blue);
  box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.5);
}

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-family: var(--f-head); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; margin: 0; line-height: 1.3; color: var(--text); }
.card p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; flex: 1; }

.card-actions {
  display: flex; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.card-btn-main {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: 10px;
  background: var(--grad-soft); border: 1px solid rgba(37, 99, 235, 0.25);
  font-size: 0.82rem; font-weight: 700; color: var(--blue);
  transition: all .2s;
}
.card-btn-main:hover { background: var(--blue); color: #ffffff; border-color: var(--blue); }
.card-btn-ext {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 0.78rem; font-weight: 700; color: var(--text);
  transition: all .2s;
}
.card-btn-ext:hover { border-color: var(--emerald); color: var(--emerald); background: rgba(16, 185, 129, 0.08); }

/* Folder Card (81 İl) */
.card.folder { border-color: rgba(225, 29, 72, 0.35); }
.card.folder .card-tag { background: linear-gradient(110deg, #e11d48, #f97316); border-color: transparent; color: #fff; }
.card.folder .win-count { color: #e11d48; background: rgba(225, 29, 72, 0.12); }
.card.folder .card-btn-main { color: #e11d48; border-color: rgba(225, 29, 72, 0.3); background: rgba(225, 29, 72, 0.08); }
.card.folder .card-btn-main:hover { background: #e11d48; color: #fff; }
.folder-stack { position: absolute; right: 12px; top: 10px; z-index: 2; display: flex; }
.folder-stack i {
  width: 26px; height: 26px; border-radius: 7px; margin-left: -8px; font-style: normal;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.62rem; font-weight: 700;
  background: #ffffff; border: 1px solid rgba(225, 29, 72, 0.35); color: #e11d48;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Private / Licensed Software Card */
.card.private .card-tag { background: linear-gradient(115deg, #6d28d9, #4f46e5); border-color: transparent; color: #fff; }
.card.private .win-count { color: var(--violet); background: rgba(124, 58, 237, 0.12); }
.card.private .scr-btn.active { background: var(--violet); border-color: var(--violet); }
.card.private .card-btn-main { color: var(--violet); border-color: rgba(124, 58, 237, 0.28); background: rgba(124, 58, 237, 0.08); }
.card.private .card-btn-main:hover { background: var(--violet); color: #ffffff; }
.card.private .card-media { cursor: zoom-in; }

/* ---------- Services Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .25s, border-color .25s;
}
.svc:hover { transform: translateY(-4px); border-color: var(--blue); }
.svc::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
}
.svc.wide { grid-column: span 2; }
.svc-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad); color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5);
}
.svc h3 { font-family: var(--f-head); font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; color: var(--text); }
.svc p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.svc ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 600; padding: 5px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--blue); }

/* ---------- 81 İl Banner ---------- */
.ecz-banner {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center;
  padding: clamp(26px, 4vw, 44px); border-radius: 26px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08) 0%, rgba(249, 115, 22, 0.06) 100%), var(--surface-solid);
  border: 2px solid rgba(225, 29, 72, 0.22);
  box-shadow: var(--card-shadow);
}
.ecz-banner .eyebrow { color: #e11d48; background: rgba(225, 29, 72, 0.1); border-color: rgba(225, 29, 72, 0.25); }
.ecz-banner p { color: var(--muted); margin: 12px 0 22px; }
.btn.red { background: linear-gradient(110deg, #e11d48, #f97316); color: #fff; box-shadow: 0 12px 28px -8px rgba(225, 29, 72, 0.55); }
.btn.red:hover { transform: translateY(-2px); }
.plates { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.plates span {
  aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.65rem; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: all .2s;
}
.plates span.on { color: #fff; background: linear-gradient(135deg, #e11d48, #f97316); border-color: transparent; transform: scale(1.08); box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35); }

.countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.cty { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); transition: all 0.2s; }
.cty b { font-family: var(--f-mono); font-size: 0.68rem; font-weight: 800; color: #059669; background: rgba(16, 185, 129, 0.14); padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.cty.on { color: var(--text); border-color: rgba(16, 185, 129, 0.42); background: var(--surface-solid); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05); }
.cty.on:hover { transform: translateY(-2px); border-color: #e11d48; background: linear-gradient(135deg, #e11d48, #f97316); color: #fff; box-shadow: 0 8px 18px rgba(225, 29, 72, 0.28); }
.cty.on:hover b { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* ---------- Channels (Yönetilen Kanallar) ---------- */
.ch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ch-group {
  background: var(--surface-solid);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.ch-group::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px;
  background: var(--grad);
}
.ch-group:nth-child(2)::before { background: linear-gradient(90deg, #00f2fe, #ff0050); }
.ch-group:nth-child(3)::before { background: linear-gradient(90deg, #0f172a, #3b82f6); }
.ch-group:nth-child(4)::before { background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af); }
.ch-group:nth-child(5)::before { background: linear-gradient(90deg, #1877f2, #00c6ff); }
.ch-group:nth-child(6)::before { background: linear-gradient(90deg, #ff0000, #f97316); }
.ch-group:nth-child(7)::before { background: linear-gradient(90deg, #10b981, #f59e0b); }

.ch-group h3 {
  font-family: var(--f-head); font-size: 0.95rem; font-weight: 800;
  color: var(--text); margin: 4px 0 14px;
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.ch-group h3 span:last-child {
  font-family: var(--f-mono); font-size: 0.74rem;
  background: var(--grad-soft); color: var(--blue);
  padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(37, 99, 235, 0.2);
}
.ch-rows { display: grid; gap: 4px; }
.ch-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: all .2s;
}
.ch-row:hover {
  background: var(--surface-solid);
  border-color: var(--blue);
  transform: translateX(4px);
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.18);
}
.ch-row img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: #0f172a; flex: 0 0 auto; border: 1px solid var(--line); }
.ch-row .who { font-size: 0.9rem; font-weight: 600; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-row .where { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }

/* ---------- Contact ---------- */
.contact-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 54px); border-radius: 26px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08)), var(--surface-solid);
  border: 1px solid var(--line-2);
  box-shadow: var(--card-shadow);
}
.contact-info { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.contact-info a { color: var(--blue); font-weight: 700; }
.enquiry { display: grid; gap: 12px; }
.enquiry input {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, background .2s;
}
.enquiry input:focus { border-color: var(--blue); background: var(--surface-solid); }
.enquiry button { justify-content: center; border: 0; }
.greeting p { margin: 0 0 16px; font-size: 1.05rem; font-weight: 600; }
.greet-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-2); padding: 54px 0 36px; background: var(--surface-solid); }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; }
.foot-grid h4 { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; font-weight: 500; }
.foot-grid ul a { color: var(--muted); transition: color .2s; }
.foot-grid ul a:hover { color: var(--blue); }
.foot-grid p { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; max-width: 34ch; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; font-weight: 500; color: var(--dim); }

/* ---------- Modals & Lightbox Gallery ---------- */
#eczaneModal {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#eczaneModal.is-open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.eczane-modal-box {
  width: 100%; max-width: 980px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.45);
  animation: pop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.eczane-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.eczane-modal-header h2 { font-family: var(--f-head); font-size: 1.3rem; margin: 4px 0 0; letter-spacing: -0.01em; color: var(--text); }
.modal-x { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 16px; font-weight: 700; }
.modal-x:hover { border-color: var(--red); color: var(--red); }
.modal-search { padding: 14px 24px; border-bottom: 1px solid var(--line); }
.modal-search input { width: 100%; padding: 12px 16px; border-radius: 12px; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); outline: none; }
.modal-search input:focus { border-color: var(--red); background: var(--surface-solid); }
.eczane-modal-body { overflow-y: auto; padding: 18px 24px 24px; }
.eczane-grid-81 { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.ecz-card-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); transition: all .2s;
}
.ecz-card-item:hover { border-color: var(--red); background: rgba(225, 29, 72, 0.06); transform: translateY(-2px); }
.ecz-card-item .pl { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 700; color: #e11d48; background: rgba(225, 29, 72, 0.12); border-radius: 6px; padding: 4px 7px; }
.ecz-card-item .city-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.ecz-card-item .city-sub { display: block; font-size: 0.72rem; color: var(--dim); }

#gallery {
  position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
#gallery.is-open { display: flex; animation: fade .25s ease; }
.gal-box {
  position: relative; margin: 0; width: 100%; max-width: 1080px;
  background: var(--surface-solid); padding: 16px; border-radius: 22px;
  border: 1px solid var(--line-2);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  animation: pop .3s cubic-bezier(.2,.8,.2,1);
}
.gal-box img { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: #0b0f19; }
.gal-box figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 0 6px; font-size: 0.92rem; color: var(--text); }
.gal-note { color: var(--violet); font-weight: 600; font-size: 0.82rem; background: rgba(124, 58, 237, 0.1); padding: 4px 10px; border-radius: 999px; }
.gal-nav {
  position: absolute; top: calc(50% - 40px); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface-solid); color: var(--text);
  font-size: 26px; font-weight: 700; line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.gal-nav.prev { left: 26px; } .gal-nav.next { right: 26px; }
.gal-nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.gal-x { position: absolute; top: 26px; right: 26px; background: var(--surface-solid); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc.wide { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .head-nav { display: none; }
}
@media (max-width: 760px) {
  .site-head { inset: 8px 0 auto 0; }
  .head-in { height: 56px; padding: 0 12px; }
  .theme-btn span { display: none; }
  .hero { padding-top: 108px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .svc.wide { grid-column: auto; }
  .ecz-banner, .contact-box { grid-template-columns: 1fr; }
  .ch-grid { grid-template-columns: 1fr; }
  .thumb { width: 160px; }
  .plates { grid-template-columns: repeat(9, 1fr); }
  .eczane-grid-81 { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}


/* ---------- Official MX medX Dijital Logo & PWA Styles ---------- */
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #040812;
  border: 2px solid #06b6d4;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.55), 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}
.logo:hover .logo-img {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 26px rgba(6, 182, 212, 0.85), 0 6px 14px rgba(0, 0, 0, 0.35);
}
.hero-emblem {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  box-shadow: 0 16px 40px -8px rgba(6, 182, 212, 0.55), 0 0 30px rgba(6, 182, 212, 0.35);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: emblemFloat 4s ease-in-out infinite;
}
.hero-emblem img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #040812;
  display: block;
}
@keyframes emblemFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.btn.pwa {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #ffffff;
  border: 1px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 12px 26px -8px rgba(6, 182, 212, 0.55);
}
.btn.pwa:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(6, 182, 212, 0.75);
}
#pwaModal {
  position: fixed; inset: 0; z-index: 130; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#pwaModal.is-open { display: flex; animation: fade .25s ease; }
.pwa-modal-box {
  width: 100%; max-width: 440px;
  background: var(--surface-solid);
  border: 2px solid rgba(6, 182, 212, 0.45);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(6, 182, 212, 0.25);
  position: relative;
  animation: pop .3s cubic-bezier(.2,.8,.2,1);
}
.pwa-modal-box .pwa-logo {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid #06b6d4;
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.65);
  background: #040812;
}
.pwa-steps {
  text-align: left; background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: 14px;
  padding: 14px 16px; margin: 16px 0 20px;
  font-size: 0.88rem; color: var(--text); display: grid; gap: 10px;
}
