* { margin: 0; padding: 0; box-sizing: border-box; font-family: Inter, Arial, sans-serif; }
body { background: #f7f8ff; color: #14142b; font-size: 12px; }
.dashboard { display: flex; min-height: 100vh; }

/* ========== SIDEBAR ========== */
.sidebar {
  width: 200px;
  background: linear-gradient(180deg, #130d35 0%, #090820 100%);
  color: #fff;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 20px;
  padding: 4px 2px;
}
.logo .mark { position: relative; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#8b4cf0,#7c3aed 45%,#9333ea); box-shadow: 0 8px 16px -6px rgba(124,58,237,.6); flex-shrink: 0; overflow: hidden; }
.logo .mark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 30% 25%, rgba(255,255,255,.45), transparent); }
.logo .mark i { color: #fff !important; font-size: 15px; position: relative; z-index: 1; }
.logo .mark::after { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 5px; right: 6px; font-size: 7px; color: #fde047; z-index: 2; }
.logo b { font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.logo b .brand { color: #fff; }
.logo b .loyalth { display: block; color: #a855f7; font-size: 10.5px; letter-spacing: .2em; font-weight: 700; }

.menu-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #4d3e7a;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 5px;
  margin-top: 2px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.menu a {
  color: #b8aee0;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  user-select: none;
}

.menu a i {
  font-size: 11px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.menu a .badge {
  margin-left: auto;
  background: #f43f5e;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}

.menu a:hover {
  background: rgba(139, 61, 255, 0.25);
  color: #e8e0ff;
}

.menu a.active {
  background: linear-gradient(90deg, #7c3aed, #9333ea);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 8px 4px;
}

.support {
  background: rgba(255,255,255,.07);
  padding: 11px;
  border-radius: 11px;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.support h4 { font-size: 11px; font-weight: 700; }
.support p { font-size: 10px; margin-top: 5px; color: #b8aee0; line-height: 1.5; }

.support button {
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #7c3aed, #9333ea);
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 10.5px;
  transition: opacity 0.2s;
}
.support button:hover { opacity: 0.9; }

.profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  padding: 10px;
  border-radius: 11px;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.profile img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.profile strong { font-size: 11px; display: block; line-height: 1.3; }
.profile .role { font-size: 10px; color: #b8aee0; margin-top: 1px; }

.logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 8px; padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  color: #fda4af;
  font-weight: 700; font-size: 12px; cursor: pointer;
  font-family: inherit;
  transition: background .2s, border-color .2s, color .2s;
}
.logout-btn i { font-size: 13px; }
.logout-btn:hover { background: rgba(244,63,94,.18); border-color: rgba(244,63,94,.45); color: #fff; }

/* ========== MAIN ========== */
.main { flex: 1; padding: 18px 22px; overflow-y: auto; min-width: 0; }

.page { display: none; }
.page.active { display: block; }

/* ========== TOPBAR ========== */
.topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.topbar h1 { font-size: 17px; margin-bottom: 2px; font-weight: 700; }
.topbar p { color: #6b6b87; font-size: 11px; }
/* Dashboard sayfası başlığı — dikkat çekici gradyan + parıltı */
.dash-hero-title { font-size: 45px; font-weight: 800; letter-spacing: -.02em; line-height: 1.06; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dash-hero-title .dash-gradient { background: linear-gradient(90deg, #7c3aed, #a855f7 45%, #ec4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.dash-hero-title .dash-spark { font-size: 34px; line-height: 1; animation: dashSpark 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes dashSpark { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(14deg); } }
@media (max-width: 700px) { .dash-hero-title { font-size: 34px; } .dash-hero-title .dash-spark { font-size: 26px; } }
.actions { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }

.date-box {
  background: white;
  border: 1px solid #e5e7f3;
  padding: 7px 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.membership-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-radius: 11px;
  background: linear-gradient(90deg, #faf5ff, #f3e8ff);
  border: 1px solid #e9d5ff;
  white-space: nowrap;
}
.membership-box > i {
  color: #9333ea;
  font-size: 20px;
}
.membership-box .mb-info { display: flex; flex-direction: column; line-height: 1.3; }
.membership-box .mb-clinic { font-weight: 700; font-size: 14.5px; color: #2d2d4e; }
/* Plan ile kalan gün aynı satırda, aralarında ayraç */
.membership-box .mb-plan-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.membership-box .mb-plan-row .mb-days::before { content: "·"; margin-right: 6px; color: #c7b8e0; }
.membership-box .mb-plan { font-size: 11.5px; font-weight: 700; color: #9333ea; }
.membership-box .mb-days { font-size: 11.5px; color: #7c5fa8; font-weight: 600; }
.membership-box.mb-warn { background: linear-gradient(90deg,#fff7ed,#ffedd5); border-color:#fed7aa; }
.membership-box.mb-warn > i { color:#ea580c; }
.membership-box.mb-warn .mb-days { color:#c2410c; font-weight:800; }
/* Klinik pasif uyarı banner */
.clinic-passive-banner { display:flex; align-items:center; gap:11px; margin:0 0 18px; padding:13px 18px; border-radius:12px;
  background:linear-gradient(90deg,#fff1f2,#ffe4e6); border:1px solid #fecdd3; color:#9f1239; font-size:13px; font-weight:600; line-height:1.45; }
.clinic-passive-banner i { font-size:18px; color:#e11d48; flex-shrink:0; }
.clinic-passive-banner b { font-weight:800; }
/* Üyelik pasifken kilitli butonlar */
[data-needs-active].is-locked { opacity:.5; cursor:not-allowed; pointer-events:none; filter:grayscale(.3); }
.membership-box.mb-warn .mb-plan { color:#ea580c; }
.membership-box.mb-warn .mb-days { color:#c2410c; }
.month-picker-wrap { position:relative; }
.month-picker-wrap .date-box { cursor:pointer; user-select:none; }
.month-picker-wrap .date-box:hover { border-color:#c4b5fd; background:#faf8ff; }
.month-picker-wrap .date-box .mp-caret { margin-left:2px; font-size:10px; color:#9b8fc4; transition:transform .15s; }
.month-picker-wrap .date-box .mp-caret.open { transform:rotate(180deg); }
.month-picker-drop { position:absolute; top:calc(100% + 6px); right:0; background:white; border:1px solid #e5e7f3; border-radius:10px; box-shadow:0 8px 28px rgba(20,10,60,.13); z-index:200; min-width:170px; overflow:hidden; display:none; }
.month-picker-drop.open { display:block; }
.month-picker-item { padding:9px 15px; font-size:12px; font-weight:600; cursor:pointer; color:#2d2d4e; transition:background .1s; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.month-picker-item:hover { background:#f1e7ff; color:#8b3dff; }
.month-picker-item.active { color:#8b3dff; background:#f7f3ff; }
.month-picker-item.active::after { content:'\f00c'; font-family:'Font Awesome 6 Free'; font-weight:900; font-size:10px; }

.btn-primary {
  background: linear-gradient(90deg, #7c3aed, #9333ea);
  color: white;
  border: none;
  padding: 7px 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

/* ========== CARDS ========== */
.card {
  background: white;
  border: 1px solid #ececff;
  border-radius: 11px;
  padding: 11px 13px;
  box-shadow: 0 2px 8px rgba(20,20,60,.04);
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-header h3 { font-size: 13px; font-weight: 600; }
.card-header a { color: #8b3dff; text-decoration: none; font-weight: 700; font-size: 11px; cursor: pointer; }

/* ========== ICON CIRCLES ========== */
.icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.purple { background: #f1e7ff; color: #8b3dff; }
.green { background: #e7fff2; color: #16b86a; }
.orange { background: #fff3dc; color: #f59e0b; }
.blue { background: #e9f2ff; color: #2563eb; }
.pink { background: #ffe8f2; color: #ec4899; }
.red { background: #fff1f3; color: #f43f5e; }

/* ========== STATS ========== */
.stats { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; margin-bottom: 10px; }
.stat-card { display: flex; align-items: center; gap: 9px; }
.stat-card small { color: #777891; font-size: 10px; }
.stat-card h2 { margin: 2px 0; font-size: 15px; font-weight: 700; }
.up { color: #00a86b; font-size: 10px; }
.down { color: #f43f5e; font-size: 10px; }

/* ========== HIZLI İŞLEMLER ========== */
.quick-actions { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-bottom:20px; }
.qa-card { background:#fff; border:1px solid #ececf4; border-radius:14px; padding:16px 10px; display:flex; flex-direction:column; align-items:center; gap:9px; cursor:pointer; transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease; text-align:center; }
.qa-card:hover { transform:translateY(-3px); box-shadow:0 8px 22px rgba(124,58,237,.14); border-color:#e0d4ff; }
.qa-card .qa-ic { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:17px; color:#fff; flex-shrink:0; }
.qa-card span { font-size:11.5px; font-weight:700; color:#3a3a52; line-height:1.25; }
.qa-ic.purple { background:linear-gradient(135deg,#8b3dff,#b07cff); }
.qa-ic.green { background:linear-gradient(135deg,#0d9488,#2dd4bf); }
.qa-ic.orange { background:linear-gradient(135deg,#f59e0b,#fbbf24); }
.qa-ic.blue { background:linear-gradient(135deg,#2563eb,#60a5fa); }
.qa-ic.pink { background:linear-gradient(135deg,#db2777,#f472b6); }
.qa-ic.teal { background:linear-gradient(135deg,#0891b2,#22d3ee); }
@media(max-width:900px){ .quick-actions{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:560px){ .quick-actions{ grid-template-columns:repeat(2,1fr); } }

/* ========== CHART ========== */
.chart { height: 130px; display: flex; align-items: end; gap: 6px; border-bottom: 1px solid #ddd; padding-top: 10px; position: relative; }
.bar { flex: 1; background: linear-gradient(180deg,#9b5cff,#eadcff); border-radius: 5px 5px 0 0; position: relative; cursor: pointer; transition: filter .12s ease; }
.bar:hover { filter: brightness(1.08) saturate(1.15); }
.bar:after { content:""; width:5px; height:5px; background:#8b3dff; border-radius:50%; position:absolute; top:-2px; left:50%; transform:translateX(-50%); }
.chart-tip { position:absolute; pointer-events:none; opacity:0; transform:translate(-50%,-4px); transition:opacity .12s ease; background:#1c1340; color:#fff; padding:6px 9px; border-radius:8px; font-size:11px; font-weight:600; white-space:nowrap; box-shadow:0 6px 18px rgba(20,10,60,.28); z-index:20; }
.chart-tip:after { content:""; position:absolute; left:50%; top:100%; transform:translateX(-50%); border:5px solid transparent; border-top-color:#1c1340; }
.chart-tip .ct-day { display:block; font-weight:500; opacity:.7; font-size:9.5px; margin-bottom:1px; }
.chart-tip.show { opacity:1; }
.chart-labels { display:flex; justify-content:space-between; color:#7b7b94; font-size:10px; margin-top:6px; }

/* ========== DASHBOARD YÖNLENDİRME LİSTESİ ========== */
.dash-ref-list { display:flex; flex-direction:column; gap:4px; }
.dash-ref-row { display:flex; align-items:center; gap:11px; padding:10px 6px; border-bottom:1px solid #f1f0f7; }
.dash-ref-row:last-child { border-bottom:none; }
.dash-ref-row img { width:38px; height:38px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.dash-ref-row .drr-main { flex:1; min-width:0; }
.dash-ref-row .drr-name { font-size:14.5px; font-weight:800; color:#16162a; letter-spacing:-.01em; display:flex; align-items:center; gap:7px; }
/* Yanıp sönen "Yeni" rozeti (dashboard ödül talebi / yönlendirme listeleri) */
.drr-new { display:inline-block; background:#ef4444; color:#fff; font-size:9.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; padding:2px 8px; border-radius:20px; animation: drrBlink 1.1s ease-in-out infinite; }
@keyframes drrBlink { 0%,100% { opacity:1; transform:scale(1); box-shadow:0 0 0 0 rgba(239,68,68,.45); } 50% { opacity:.4; transform:scale(.93); box-shadow:0 0 0 4px rgba(239,68,68,0); } }
.dash-ref-row .drr-sub { font-size:11.5px; color:#8a8a9e; margin-top:2px; }
.dash-ref-row .drr-sub b { color:#6b6b80; font-weight:700; }
.dash-ref-row .drr-time { font-size:10.5px; color:#a0a0b4; white-space:nowrap; flex-shrink:0; }
.drr-badge { background:#8b3dff; color:#fff; font-size:9px; font-weight:800; letter-spacing:.3px; padding:2px 7px; border-radius:20px; }
.dash-ref-empty { color:#9090aa; font-size:12.5px; padding:14px 6px; display:flex; align-items:center; gap:8px; }
/* Ödül talebi satırı: emoji avatar */
.dash-ref-row .drr-emoji { width:38px; height:38px; border-radius:12px; background:#fdeef6; display:flex; align-items:center; justify-content:center; font-size:19px; flex-shrink:0; }
/* Dashboard ikili kart düzeni (Yönlendirmeler + Ödül Talepleri) */
.dash-two-col { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:900px){ .dash-two-col { grid-template-columns:1fr; } }

/* ========== LISTS ========== */
.patient-list, .point-list, .birthday-list { display:flex; flex-direction:column; gap:7px; }
.row { display:flex; align-items:center; justify-content:space-between; padding-bottom:7px; border-bottom:1px solid #eeeef8; }
.row:last-child { border-bottom: none; padding-bottom: 0; }
.person { display:flex; align-items:center; gap:7px; font-size:12px; }
.person img { width:24px; height:24px; border-radius:50%; }
.medal { font-size:13px; }
.gold { color:#f5b301; }
.silver { color:#9ca3af; }
.bronze { color:#f97316; }
.point { color:#00a86b; font-weight:800; font-size:12px; }
.time { color:#7b7b94; font-size:10px; white-space: nowrap; }

/* ========== GRIDS ========== */
.content-grid { display:grid; grid-template-columns:1.25fr .85fr; gap:10px; margin-bottom:10px; }
.lower-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-bottom:10px; }
.promo-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

/* ========== DONUT ========== */
.donut { width:110px; height:110px; border-radius:50%; background:conic-gradient(#5828d9 0 8%,#3478ff 8% 28%,#fbbf24 28% 58%,#8b93a9 58% 100%); margin:auto; position:relative; }
.donut:after { content:""; width:62px; height:62px; background:white; border-radius:50%; position:absolute; top:24px; left:24px; }
.legend { margin-top:10px; display:grid; gap:5px; }
.legend div { display:flex; justify-content:space-between; font-size:11px; }

/* ===== Seviye Dağılımı (dashboard) — güzelleştirilmiş donut + lejant ===== */
#dash-donut { width:132px; height:132px; margin:6px auto 4px; box-shadow:0 8px 22px -10px rgba(80,40,160,.35); }
#dash-donut:after { display:none; }
.donut-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.donut-center:before { content:""; position:absolute; width:80px; height:80px; background:#fff; border-radius:50%; box-shadow:inset 0 0 0 1px #efeafc; }
.donut-center strong { position:relative; font-size:26px; font-weight:800; color:#2d2d4e; line-height:1; }
.donut-center small { position:relative; font-size:10.5px; color:#9090aa; font-weight:600; margin-top:3px; letter-spacing:.3px; }

#dash-donut-legend { margin-top:16px; display:flex; flex-direction:column; gap:4px; }
#dash-donut-legend .lvl-row { display:flex; align-items:center; gap:9px; font-size:12.5px; padding:6px 8px; border-radius:9px; transition:background .15s; }
#dash-donut-legend .lvl-row:hover { background:#f7f5fd; }
#dash-donut-legend .lvl-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; box-shadow:0 0 0 3px rgba(0,0,0,.04); }
#dash-donut-legend .lvl-name { color:#3a3a55; font-weight:700; }
#dash-donut-legend .lvl-count { margin-left:auto; color:#8a8aa0; font-size:11.5px; font-weight:600; }
#dash-donut-legend .lvl-pct { min-width:42px; text-align:right; font-weight:800; color:#2d2d4e; font-variant-numeric:tabular-nums; }

/* ========== DASHBOARD KAMPANYA ŞERİDİ (3 görünür, kalanı yana kaydırmalı) ========== */
.dash-camp-card { margin-bottom: 10px; }
.dash-camp-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
.dash-camp-carousel::-webkit-scrollbar { height: 6px; }
.dash-camp-carousel::-webkit-scrollbar-track { background: transparent; }
.dash-camp-carousel::-webkit-scrollbar-thumb { background: #e0d8f5; border-radius: 3px; }
.dash-camp-item { flex: 0 0 calc((100% - 24px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid #eeeef8; border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.dash-camp-item:hover { box-shadow: 0 6px 18px rgba(124,58,237,.12); transform: translateY(-2px); }
.dash-camp-banner { height: 58px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.dash-camp-banner img { width: 38px; height: 38px; object-fit: contain; }
.dash-camp-info { padding: 9px 12px 4px; flex: 1; }
.dash-camp-info small { font-size: 10px; font-weight: 700; color: #9333ea; }
.dash-camp-info h4 { font-size: 12.5px; font-weight: 700; color: #2d2d4e; margin: 3px 0; line-height: 1.25; }
.dash-camp-info p { font-size: 10.5px; color: #7b7b94; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-camp-item .status-badge { align-self: flex-start; margin: 0 12px 12px; }
.dash-camp-empty { width: 100%; text-align: center; color: #9b9bb5; font-size: 12.5px; padding: 18px; }
@media (max-width: 900px) { .dash-camp-item { flex-basis: calc((100% - 12px) / 2); } }
@media (max-width: 600px) { .dash-camp-item { flex-basis: 80%; } }

/* ========== PROMO ========== */
.promo { display:flex; align-items:center; gap:12px; min-height:72px; padding:12px 14px; }
.promo i { font-size:26px; color:#8b3dff; flex-shrink:0; }
.promo small { font-size:10px; color:#9333ea; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.promo h3 { margin:3px 0; font-size:12px; font-weight:700; }
.promo p { font-size:11px; color:#6b6b87; }
.promo button { margin-top:6px; padding:6px 12px; border:none; border-radius:7px; color:white; background:linear-gradient(90deg,#7c3aed,#9333ea); font-weight:700; cursor:pointer; font-size:10.5px; }
.reward { background:linear-gradient(90deg,#ffffff,#eef7ff); }
.lower-grid .card h3 { font-size:13px; font-weight:600; margin-bottom:10px; }
.point-list .row > div strong { font-size:12px; }
.point-list .row > div p { font-size:10px; color:#9090aa; margin-top:1px; }
/* Puan ve tarih sabit sütunlarda, sağa hizalı dursun (isim bloğu kalan alanı alır) */
.point-list .row { gap:10px; }
.point-list .row > div:first-child { flex:1 1 auto; min-width:0; }
.point-list .row > div:first-child strong,
.point-list .row > div:first-child p { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.point-list .point { flex:0 0 auto; min-width:58px; text-align:right; }
.point-list .time { flex:0 0 auto; min-width:74px; text-align:right; }

/* ========== FILTERS ========== */
.filters { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.filter-btn {
  padding:6px 12px; border-radius:20px; border:1px solid #e5e7f3;
  background:white; font-size:11px; font-weight:600; cursor:pointer;
  color:#6b6b87; transition:all 0.18s;
}
.filter-btn.active { background:linear-gradient(90deg,#7c3aed,#9333ea); color:white; border-color:transparent; }
.filter-btn:hover:not(.active) { border-color: #c4b3f5; color: #7c3aed; }

/* ========== SEARCH ========== */
.search-bar {
  background:white; border:1px solid #e5e7f3; border-radius:8px;
  padding:7px 11px; display:flex; align-items:center; gap:7px; width:210px;
}
.search-bar input { border:none; outline:none; font-size:11px; width:100%; color:#14142b; }
.search-bar i { color:#9090aa; font-size:11px; flex-shrink:0; }

/* ========== TABLE ========== */
.table-container { background:white; border:1px solid #ececff; border-radius:11px; overflow:hidden; box-shadow:0 2px 8px rgba(20,20,60,.04); }
table { width:100%; border-collapse:collapse; }
thead { background:#f7f8ff; border-bottom:1px solid #ececff; }
thead th { text-align:left; padding:10px 13px; font-size:10.5px; font-weight:700; color:#777891; text-transform:uppercase; letter-spacing:0.5px; white-space:nowrap; }
tbody tr { border-bottom:1px solid #f3f3fb; transition:background 0.1s; }
tbody tr:last-child { border-bottom:none; }
tbody tr:hover { background:#fafafe; }
tbody td { padding:9px 13px; font-size:11.5px; vertical-align:middle; }

.patient-info { display:flex; align-items:center; gap:8px; }
.patient-info img { width:28px; height:28px; border-radius:50%; }
.patient-info strong { display:block; font-size:12px; line-height:1.3; }
.patient-info span { font-size:10px; color:#9090aa; }

/* ========== BADGES ========== */
.level-badge { display:inline-flex; align-items:center; gap:3px; padding:3px 8px; border-radius:20px; font-size:10px; font-weight:700; }
.level-platinum { background:#f1e7ff; color:#7c3aed; }
.level-gold { background:#fff8e1; color:#f59e0b; }
.level-silver { background:#f0f0f0; color:#6b7280; }
.level-bronze { background:#fff3ec; color:#f97316; }

/* ========== RANDEVU DURUM ROZETLERİ ========== */
.appt-badge { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:20px; font-size:10.5px; font-weight:700; }
.appt-st-scheduled { background:#ede9fe; color:#7c3aed; }
.appt-st-completed { background:#dcfce7; color:#16a34a; }
.appt-st-cancelled { background:#fee2e2; color:#ef4444; }
.appt-daylbl { display:inline-block; margin-left:6px; font-size:10px; font-weight:700; color:#16a34a; background:#dcfce7; border-radius:20px; padding:2px 8px; }

/* ========== AİLE HESABI (hasta modalı) ========== */
.family-box { border:1px solid #ececff; background:#faf8ff; border-radius:12px; padding:13px 14px; margin-top:4px; }
.family-check { display:flex; gap:9px; align-items:flex-start; cursor:pointer; }
.family-check input { margin-top:3px; width:16px; height:16px; accent-color:#7c3aed; flex-shrink:0; cursor:pointer; }
.family-check i { color:#7c3aed; }
.family-check small { color:#7a7a96; font-weight:400; }
.family-member-row { display:flex; flex-direction:column; gap:7px; margin-bottom:10px; padding:10px; background:#fff; border:1px solid #ececff; border-radius:10px; }
.family-member-row .fm-line { display:flex; gap:8px; align-items:center; }
.family-member-row .fm-name { flex:1; min-width:0; }
.family-member-row .fm-rel { flex:0 0 100px; }
.family-member-row .fm-del { flex-shrink:0; border:none; background:#fee2e2; color:#ef4444; width:34px; height:34px; border-radius:9px; cursor:pointer; }
.family-member-row .fm-del:hover { background:#fecaca; }
.family-member-row .fm-dob-cap { font-size:11px; color:#6b6b87; font-weight:600; display:flex; align-items:center; gap:5px; }
.family-member-row .fm-dob-cap i { color:#ec4899; }
.family-member-row .fm-dob-line { gap:6px; }
.family-member-row .fm-dob-d, .family-member-row .fm-dob-m, .family-member-row .fm-dob-y { flex:1; min-width:0; padding-left:8px; padding-right:2px; }

.status-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:20px; font-size:10px; font-weight:700; }
.status-active { background:#e7fff2; color:#16b86a; }
.status-passive { background:#f3f3fb; color:#9090aa; }
.status-upcoming { background:#fff3dc; color:#f59e0b; }
.status-dot { width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0; }

/* ========== ACTION BUTTONS ========== */
.action-btns { display:flex; gap:4px; }
.action-btn {
  width:26px; height:26px; border-radius:6px; border:1px solid #e5e7f3;
  background:white; display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:11px; color:#777891; transition:all 0.18s;
}
.action-btn:hover { background:#f1e7ff; color:#8b3dff; border-color:#e0d0ff; }

/* ===== HASTA TABLOLARI — zenginleştirme (Hastalar / Randevular / Puan İşlemleri) ===== */
#page-hastalar .table-container,
#page-randevular .table-container,
#page-puan-islemleri .table-container { box-shadow:0 6px 22px rgba(76,29,149,.07); border-color:#efeafc; }
#page-hastalar thead th,
#page-randevular thead th,
#page-puan-islemleri thead th { padding:12px 14px; }
#page-hastalar tbody td,
#page-randevular tbody td,
#page-puan-islemleri tbody td { padding:13px 14px; }
#page-hastalar tbody tr,
#page-randevular tbody tr,
#page-puan-islemleri tbody tr { transition:background .14s; }
#page-hastalar tbody tr:hover,
#page-randevular tbody tr:hover,
#page-puan-islemleri tbody tr:hover { background:#faf7ff; }

/* Avatar + isim (üç tabloda ortak) */
#page-hastalar .patient-info,
#page-randevular .patient-info,
#page-puan-islemleri .patient-info { gap:12px; }
#page-hastalar .patient-info img,
#page-randevular .patient-info img,
#page-puan-islemleri .patient-info img {
  width:40px; height:40px; border-radius:50%; object-fit:cover;
  border:2px solid #fff; box-shadow:0 0 0 2px #ece4fb, 0 2px 6px rgba(76,29,149,.10);
}
#page-hastalar .patient-info strong,
#page-randevular .patient-info strong,
#page-puan-islemleri .patient-info strong { font-size:13px; font-weight:700; color:#20203c; }
#page-hastalar .point,
#page-randevular .point,
#page-puan-islemleri .point { font-size:13px; }

/* Hastalar'a özel: e-posta satırı */
#page-hastalar .pi-text { min-width:0; display:flex; flex-direction:column; gap:2px; }
#page-hastalar .pi-mail { display:inline-flex; align-items:center; gap:5px; font-size:11px; color:#9a9ab5; }
#page-hastalar .pi-mail i { font-size:10px; color:#bda9ef; flex-shrink:0; }

/* İkon çipi: Telefon (Hastalar) + Doktor (Randevular) */
.phone-pill, .doctor-pill {
  display:inline-flex; align-items:center; gap:9px; white-space:nowrap;
  font-size:12.5px; font-weight:600; color:#3a3a57; letter-spacing:.01em;
}
.phone-pill { font-variant-numeric:tabular-nums; }
.phone-pill i, .doctor-pill i {
  font-size:11px; color:#8b3dff; background:#f1e7ff;
  width:26px; height:26px; border-radius:8px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
}
.cell-muted { color:#c4c4d4; }

/* Randevu başlığı (tedavi/işlem adı) — belirgin + diş ikonu */
#page-randevular tbody td:nth-child(2) { font-weight:700; color:#20203c; font-size:12.5px; }
#page-randevular tbody td:nth-child(2)::before {
  content:"\f5c9"; font-family:"Font Awesome 6 Free"; font-weight:900;
  color:#8b3dff; font-size:11px; margin-right:8px;
}
/* Puan İşlemleri — Hizmet/Açıklama yazısı belirgin */
#page-puan-islemleri tbody td:nth-child(2) { font-weight:700; color:#20203c; font-size:12.5px; }

/* ========== PAGINATION ========== */
.pagination { display:flex; justify-content:space-between; align-items:center; padding:10px 13px; border-top:1px solid #ececff; font-size:11px; color:#777891; }
.pagination-btns { display:flex; gap:4px; }
.page-btn { width:26px; height:26px; border:1px solid #e5e7f3; border-radius:6px; background:white; font-size:11px; cursor:pointer; display:flex; align-items:center; justify-content:center; color:#14142b; transition:all 0.18s; }
.page-btn.active { background:linear-gradient(90deg,#7c3aed,#9333ea); color:white; border-color:transparent; }
.page-btn:hover:not(.active):not(:disabled) { border-color: #c4b3f5; color: #7c3aed; }
.page-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ========== CAMPAIGN CARDS ========== */
.campaign-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.campaign-card { position:relative; background:white; border:1px solid #ececff; border-radius:11px; overflow:hidden; box-shadow:0 2px 8px rgba(20,20,60,.04); transition:transform 0.2s, box-shadow 0.2s; }
.campaign-card:not(.dashed-card) { cursor:pointer; }
.campaign-card:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(20,20,60,.08); }
.campaign-card:not(.dashed-card)::after {
  content:"\f304"; font-family:"Font Awesome 6 Free"; font-weight:900; font-size:11px;
  position:absolute; top:8px; right:8px; width:26px; height:26px; border-radius:8px;
  display:flex; align-items:center; justify-content:center; color:#8b3dff;
  background:rgba(255,255,255,.92); box-shadow:0 2px 6px rgba(20,20,60,.12);
  opacity:0; transform:scale(.85); transition:opacity .15s, transform .15s; pointer-events:none;
}
.campaign-card:not(.dashed-card):hover::after { opacity:1; transform:scale(1); }
.campaign-banner { height:80px; display:flex; align-items:center; justify-content:center; font-size:32px; }
.campaign-banner .camp-ico-img { height:62px; width:auto; object-fit:contain; display:block; }
#k-preview-banner .camp-ico-img { height:60px; width:auto; object-fit:contain; display:block; }
#emoji-picker .camp-ico-img { width:27px; height:27px; object-fit:contain; display:block; }
.campaign-body { padding:12px; }
.campaign-body small { font-size:10px; color:#9333ea; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }
.campaign-body h3 { font-size:13px; font-weight:700; margin:4px 0; }
.campaign-body p { font-size:11px; color:#6b6b87; line-height:1.45; }
.campaign-footer { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border-top:1px solid #f3f3fb; }

/* ========== REWARD CARDS ========== */
.reward-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.reward-card { background:white; border:1px solid #ececff; border-radius:11px; overflow:hidden; box-shadow:0 2px 8px rgba(20,20,60,.04); transition:transform 0.2s, box-shadow 0.2s; }
.reward-card:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(20,20,60,.08); }
.reward-card:not(.dashed-card) { cursor:pointer; position:relative; }
.reward-card:not(.dashed-card)::after { content:'\f304'; font-family:'Font Awesome 6 Free'; font-weight:900; position:absolute; top:8px; right:10px; font-size:13px; color:#c4bde8; opacity:0; transition:opacity .2s; }
.reward-card:not(.dashed-card):hover::after { opacity:1; }
.reward-banner { height:90px; display:flex; align-items:center; justify-content:center; font-size:42px; background:linear-gradient(135deg,#f1e7ff,#e0d0ff); }
.reward-banner .camp-ico-img { height:70px; width:auto; object-fit:contain; display:block; }
#o-preview-banner .camp-ico-img { height:66px; width:auto; object-fit:contain; display:block; }
#odul-emoji-picker .camp-ico-img { width:27px; height:27px; object-fit:contain; display:block; }
.dash-ref-row .drr-emoji .camp-ico-img { width:30px; height:30px; object-fit:contain; display:block; }
.reward-body { padding:12px; }
.reward-body h3 { font-size:13px; font-weight:700; margin-bottom:4px; }
.reward-body p { font-size:11px; color:#6b6b87; line-height:1.4; }
.reward-footer { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border-top:1px solid #f3f3fb; }
.points-required { display:flex; align-items:center; gap:4px; font-weight:800; color:#8b3dff; font-size:12px; }
.stock-info { font-size:10px; color:#9090aa; }

/* ========== LEVEL CARDS ========== */
.level-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:16px; }
.level-card { border-radius:16px; overflow:hidden; background:white; box-shadow:0 4px 20px rgba(20,20,60,.08); transition:transform .2s ease,box-shadow .2s ease; border:1px solid #ececff; }
.level-card:hover { transform:translateY(-5px); box-shadow:0 12px 32px rgba(20,20,60,.14); }

/* Card header zones */
.level-card-hdr { padding:22px 16px 16px; text-align:center; position:relative; }
.level-edit-btn { position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:50%; border:none; background:rgba(255,255,255,.22); color:white; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:12px; transition:background .15s,transform .15s; z-index:2; }
.level-edit-btn:hover { background:rgba(255,255,255,.45); transform:scale(1.12); }
.level-edit-btn:active { transform:scale(.96); }
.card-lvl-bronze .level-card-hdr { background:linear-gradient(145deg,#7d4e1e 0%,#cd7f32 100%); }
.card-lvl-silver .level-card-hdr { background:linear-gradient(145deg,#4b5563 0%,#9ca3af 100%); }
.card-lvl-gold   .level-card-hdr { background:linear-gradient(145deg,#b45309 0%,#fbbf24 100%); }
.card-lvl-platinum .level-card-hdr { background:linear-gradient(145deg,#3b0764 0%,#7c3aed 60%,#a78bfa 100%); }
.level-icon-ring { width:54px; height:54px; border-radius:50%; background:rgba(255,255,255,.2); border:2px solid rgba(255,255,255,.35); display:flex; align-items:center; justify-content:center; font-size:26px; margin:0 auto 10px; }
.level-card-hdr h3 { color:white; font-size:15px; font-weight:800; margin-bottom:6px; letter-spacing:.3px; text-shadow:0 1px 4px rgba(0,0,0,.2); }
.level-card .points-range { color:rgba(255,255,255,.9); font-size:10px; font-weight:600; background:rgba(255,255,255,.18); border-radius:20px; padding:3px 10px; display:inline-block; }

/* Card body */
.level-card-body { padding:14px 14px 16px; }
.level-stat-row { text-align:center; padding:10px 0 12px; border-bottom:1px solid #f0f0f8; margin-bottom:12px; }
.level-card .patient-count { font-size:28px; font-weight:900; color:#1e1b4b; margin:0; line-height:1; }
.card-lvl-platinum .patient-count { color:#7c3aed; }
.level-card .patient-count-label { font-size:9.5px; color:#9090aa; margin:4px 0 0; text-transform:uppercase; letter-spacing:.6px; }
.benefits-list { text-align:left; display:flex; flex-direction:column; gap:5px; }
.benefit-item { display:flex; align-items:center; gap:9px; font-size:11.5px; font-weight:600; color:#1e1b4b; padding:6px 9px; border-radius:9px; line-height:1.3; }
.card-lvl-bronze .benefit-item { background:#fef3c7; }
.card-lvl-silver .benefit-item { background:#f1f5f9; }
.card-lvl-gold   .benefit-item { background:#fef9c3; }
.card-lvl-platinum .benefit-item { background:#f3e8ff; }
.benefit-item i { font-size:9px; flex-shrink:0; width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; }
.card-lvl-bronze .benefit-item i { color:white; background:#cd7f32; }
.card-lvl-silver .benefit-item i { color:white; background:#9ca3af; }
.card-lvl-gold   .benefit-item i { color:white; background:#f59e0b; }
.card-lvl-platinum .benefit-item i { color:white; background:#8b3dff; }

/* Platinum premium */
.card-lvl-platinum { background:linear-gradient(180deg,#faf5ff 0%,#f0e7ff 100%); border-color:rgba(124,58,237,.15); box-shadow:0 4px 20px rgba(124,58,237,.12); }
.card-lvl-platinum:hover { box-shadow:0 12px 36px rgba(124,58,237,.25); }

/* ========== LEVEL PROGRESSION STRIP ========== */
.level-progression { background:white; border-radius:14px; padding:14px 20px; margin-bottom:16px; box-shadow:0 2px 10px rgba(20,20,60,.05); display:flex; align-items:center; justify-content:space-between; border:1px solid #ececff; flex-wrap:wrap; gap:8px; }
.prog-step { display:flex; align-items:center; gap:10px; }
.prog-icon { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.card-lvl-bronze.prog-step .prog-icon { background:linear-gradient(145deg,#7d4e1e,#cd7f32); }
.card-lvl-silver.prog-step .prog-icon { background:linear-gradient(145deg,#4b5563,#9ca3af); }
.card-lvl-gold.prog-step   .prog-icon { background:linear-gradient(145deg,#b45309,#fbbf24); }
.card-lvl-platinum.prog-step .prog-icon { background:linear-gradient(145deg,#3b0764,#7c3aed); }
.prog-info strong { display:block; font-size:11px; font-weight:800; color:#14142b; }
.prog-info span { font-size:10px; color:#9090aa; }
.prog-arrow { color:#d1d5db; font-size:13px; flex:1; text-align:center; min-width:20px; }

/* ========== NOTIFICATIONS ========== */
.notification-list { display:flex; flex-direction:column; gap:6px; }
/* Yönlendirme bildirimleri: 3'ten fazla davet olunca kutu içinde kaydırılır, sayfa uzamaz */
#referral-notifs.is-scrollable { overflow-y:auto; padding-right:6px; scrollbar-width:thin; scrollbar-color:#d9c9ff transparent; -webkit-overflow-scrolling:touch; }
#referral-notifs.is-scrollable::-webkit-scrollbar { width:7px; }
#referral-notifs.is-scrollable::-webkit-scrollbar-thumb { background:#d9c9ff; border-radius:6px; }
#referral-notifs.is-scrollable::-webkit-scrollbar-track { background:transparent; }
.notification-item { background:white; border:1px solid #ececff; border-radius:10px; padding:12px 14px; display:flex; align-items:flex-start; gap:10px; box-shadow:0 1px 4px rgba(20,20,60,.03); }
.notification-item.unread { border-left:3px solid #8b3dff; }
.notification-icon { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.notification-content { flex:1; min-width:0; }
.notification-content h4 { font-size:12px; font-weight:600; margin-bottom:2px; }
.notification-content p { font-size:11px; color:#6b6b87; line-height:1.45; }
.notification-content .time { font-size:10px; color:#9090aa; margin-top:4px; display:block; }
.unread-dot { width:8px; height:8px; background:#8b3dff; border-radius:50%; flex-shrink:0; margin-top:4px; }

/* ===== Yönlendirme bildirimleri ===== */
.ref-new-badge { display:inline-block; background:#8b3dff; color:#fff; font-size:9px; font-weight:700; padding:2px 7px; border-radius:20px; margin-left:6px; vertical-align:middle; letter-spacing:.3px; }
.ref-newpatient { display:flex; align-items:center; gap:10px; background:#faf7ff; border:1px solid #ececff; border-radius:10px; padding:9px 11px; margin-top:9px; }
.ref-newpatient img { width:38px; height:38px; border-radius:50%; flex-shrink:0; object-fit:cover; }
.ref-newpatient .rp-name { font-size:13px; font-weight:700; color:#1a1a2e; }
.ref-newpatient .rp-contact { font-size:11px; color:#6b6b87; margin-top:1px; }
.ref-newpatient .rp-contact i { color:#8b3dff; margin-right:4px; }
.ref-actions { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.ref-btn { border:none; cursor:pointer; font-size:11px; font-weight:700; padding:8px 13px; border-radius:8px; display:inline-flex; align-items:center; gap:6px; transition:filter .15s; }
.ref-btn:hover { filter:brightness(.95); }
.ref-btn.wa { background:#25d366; color:#fff; }
.ref-btn.call { background:#eef0ff; color:#3b5bff; }
.ref-btn.done { background:#f1f1f6; color:#6b6b87; }
.ref-btn.done.is-done { background:#e8f9ee; color:#1a9e54; cursor:default; }
.ref-btn.addp { background:#8b3dff; color:#fff; }
.ref-btn.addp.is-done { background:#e8f9ee; color:#1a9e54; cursor:default; }
.ref-btn.remove { background:#fff0f0; color:#dc2626; margin-left:auto; }
.ref-btn.remove:hover { background:#fde3e3; }
.ref-joined-note { display:flex; align-items:center; gap:6px; margin-top:9px; font-size:11.5px; font-weight:600; color:#1a9e54; background:#e8f9ee; border-radius:8px; padding:7px 11px; }
.ref-empty { text-align:center; color:#9090aa; font-size:12px; padding:26px 10px; background:#faf9ff; border:1px dashed #e2e0f5; border-radius:10px; }

/* ========== REPORTS ========== */
.report-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.big-chart { height:150px; display:flex; align-items:end; gap:8px; border-bottom:1px solid #ddd; padding-top:10px; position:relative; }

/* ========== SETTINGS ========== */
.settings-grid { display:grid; grid-template-columns:195px 1fr; gap:10px; align-items:start; }
.settings-nav { background:white; border:1px solid #ececff; border-radius:11px; overflow:hidden; box-shadow:0 2px 8px rgba(20,20,60,.04); }
.settings-nav-item { display:flex; align-items:center; gap:8px; padding:11px 14px; font-size:12px; cursor:pointer; border-bottom:1px solid #f3f3fb; color:#6b6b87; transition:all 0.18s; }
.settings-nav-item:last-child { border-bottom:none; }
.settings-nav-item.active { background:#f7f0ff; color:#8b3dff; font-weight:600; }
.settings-nav-item i { width:14px; text-align:center; font-size:11px; }
.settings-content { background:white; border:1px solid #ececff; border-radius:11px; padding:18px; box-shadow:0 2px 8px rgba(20,20,60,.04); }
.form-section-title { font-size:12px; font-weight:700; color:#14142b; margin-bottom:14px; padding-bottom:8px; border-bottom:1px solid #ececff; }
.form-group { margin-bottom:14px; }
.form-hint { display:block; margin-top:5px; font-size:10.5px; color:#8a8aa6; line-height:1.4; }
.form-hint code { background:#f1edfb; color:#7c3aed; padding:1px 5px; border-radius:4px; font-size:10px; }
.google-preview { border:1px solid #e5e7f3; border-radius:10px; overflow:hidden; background:#f7f7fb; }
.google-preview iframe { display:block; }
.google-preview-empty { padding:28px 16px; text-align:center; color:#9b9bb5; font-size:12px; }
.google-preview-empty i { display:block; font-size:22px; margin-bottom:8px; color:#c4c4dd; }
.google-preview-link { padding:16px; font-size:12px; line-height:1.6; color:#555; background:#fff8ec; }
.google-preview-link i { color:#e0a800; margin-right:6px; }
.google-preview-link a { color:#6d28d9; font-weight:600; }
.dob-row { display:grid; grid-template-columns:0.9fr 1.2fr 1fr; gap:8px; }
.dob-row .form-control { padding-left:8px; padding-right:6px; }

/* Hasta detay kartı */
.pd-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.pd-cell { background:#f7f7fb; border:1px solid #eee; border-radius:9px; padding:9px 11px; display:flex; flex-direction:column; gap:3px; min-width:0; }
.pd-k { font-size:10px; font-weight:600; color:#9b9bb5; text-transform:uppercase; letter-spacing:.4px; }
.pd-v { font-size:12.5px; font-weight:600; color:#14142b; word-break:break-word; }
.creds-box { border:1px solid #e0d7f7; border-radius:12px; background:#faf8ff; padding:14px; }
.creds-title { font-size:12px; font-weight:700; color:#6d28d9; margin-bottom:10px; }
.creds-title i { margin-right:6px; }
.creds-label { display:block; font-size:10.5px; font-weight:600; color:#6b6b85; margin-bottom:5px; }
.creds-row { display:flex; gap:8px; align-items:center; }
.creds-row .form-control { background:#fff; }
.creds-row .form-control.mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-weight:700; letter-spacing:1px; }
.creds-msg { width:100%; resize:none; line-height:1.5; background:#fff; font-family:inherit; }
.creds-hint { font-size:10.5px; color:#9090aa; margin-top:6px; line-height:1.4; }
.temp-pass-btn.is-loading { opacity:.6; pointer-events:none; }
.temp-pass-btn.is-loading i { animation:tpspin .7s linear infinite; }
@keyframes tpspin { to { transform:rotate(360deg); } }
.creds-send-row { display:flex; gap:8px; margin-top:12px; }
.creds-send-row .btn-secondary, .creds-send-row .btn-primary { flex:1; justify-content:center; }
.btn-wa { color:#1f9d55; border-color:#bfe9cd; }
.btn-wa:hover { background:#eafaf0; }
.btn-wa i { margin-right:5px; }
.temp-pass-box { margin-top:14px; padding:12px; border:1px dashed #c9b8f0; border-radius:10px; background:#faf7ff; }
.temp-pass-box > label { display:block; font-size:11px; font-weight:700; color:#6d28d9; margin-bottom:8px; }
.temp-pass-box > label i { margin-right:5px; }
.temp-pass-row { display:flex; gap:8px; align-items:center; }
.temp-pass-row .form-control { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:14px; font-weight:700; letter-spacing:1px; color:#14142b; background:#fff; }
.temp-pass-btn { flex:0 0 auto; width:34px; height:34px; border:1px solid #e5e7f3; border-radius:8px; background:#fff; color:#6d28d9; cursor:pointer; font-size:13px; transition:background .15s,border-color .15s; }
.temp-pass-btn:hover { background:#f1edfb; border-color:#c9b8f0; }
.temp-pass-box .form-hint { margin-top:8px; }
.form-group label { display:block; font-size:11px; font-weight:600; color:#4b4b6b; margin-bottom:5px; }
.form-control { width:100%; padding:8px 10px; border:1px solid #e5e7f3; border-radius:8px; font-size:11.5px; color:#14142b; outline:none; transition:border-color 0.2s; font-family:inherit; }
.form-control:focus { border-color:#8b3dff; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.toggle-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #f3f3fb; }
.toggle-row:last-child { border-bottom:none; }
.toggle-label strong { display:block; font-size:12px; }
.toggle-label span { font-size:10.5px; color:#9090aa; }
.toggle { width:36px; height:20px; background:#e5e7f3; border-radius:20px; position:relative; cursor:pointer; transition:background 0.2s; flex-shrink:0; }
.toggle.on { background:linear-gradient(90deg,#7c3aed,#9333ea); }
.toggle:after { content:""; position:absolute; width:16px; height:16px; background:white; border-radius:50%; top:2px; left:2px; transition:left 0.2s; box-shadow:0 1px 4px rgba(0,0,0,0.2); }
.toggle.on:after { left:18px; }

/* ========== DASHED CARD ========== */
.dashed-card { border:2px dashed #e0d0ff !important; background:#fdfbff !important; cursor:pointer; }
.dashed-card:hover { border-color:#a855f7 !important; }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(9,8,32,0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 16px; width: 100%; max-width: 500px;
  box-shadow: 0 20px 60px rgba(20,20,60,.22); animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(.96) translateY(-8px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #ececff;
}
.modal-header h3 { font-size: 14px; font-weight: 700; }
.modal-close {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid #e5e7f3;
  background: white; cursor: pointer; font-size: 13px; color: #777891;
  display: flex; align-items: center; justify-content: center; transition: all .18s;
}
.modal-close:hover { background: #f1e7ff; color: #8b3dff; border-color: #e0d0ff; }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid #ececff;
}
.btn-secondary {
  background: white; border: 1px solid #e5e7f3; padding: 8px 16px;
  border-radius: 8px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  color: #6b6b87; transition: all .18s;
}
.btn-secondary:hover { border-color: #c4b3f5; color: #7c3aed; }
.field-error { font-size: 10px; color: #f43f5e; margin-top: 3px; display: none; }
.form-control.error { border-color: #f43f5e; }
.modal-avatar { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.modal-avatar img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #ececff; }
.modal-avatar-info strong { display: block; font-size: 12px; }
.modal-avatar-info span { font-size: 10.5px; color: #9090aa; }
.modal-hicon { width:38px; height:38px; border-radius:10px; background:linear-gradient(135deg,#7c3aed,#9333ea); color:#fff; display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; box-shadow:0 4px 12px rgba(124,58,237,.32); }
.modal-sub { font-size:10.5px; color:#9090aa; margin-top:2px; font-weight:500; }

/* ===== RANDEVU MODALI (özel tasarım — yalnız #appt-modal) ===== */
.appt-modal-box { max-width:470px; overflow:hidden; }
.appt-modal-head { display:flex; align-items:center; gap:13px; padding:20px 22px; background:linear-gradient(135deg,#f8f4ff,#f1eaff); border-bottom:1px solid #ece6fb; }
.appt-head-ic { width:46px; height:46px; border-radius:14px; background:linear-gradient(135deg,#7c3aed,#9333ea); color:#fff; display:flex; align-items:center; justify-content:center; font-size:20px; box-shadow:0 7px 18px rgba(124,58,237,.38); flex-shrink:0; }
.appt-head-tx { flex:1; min-width:0; }
.appt-head-tx h3 { font-size:16px; font-weight:700; color:#14142b; }
.appt-head-tx p { font-size:11.5px; color:#8a86a6; margin-top:2px; }
.appt-modal-body { padding:20px 22px; gap:15px; }
.af-group { display:flex; flex-direction:column; }
.af-group > label { font-size:11.5px; font-weight:600; color:#54506f; margin-bottom:6px; }
.af-req { color:#f43f5e; }
.af-field { position:relative; display:flex; align-items:center; }
.af-field .af-ic { position:absolute; left:13px; font-size:13px; color:#b3a9d9; pointer-events:none; z-index:1; }
.appt-modal-body .form-control { padding:11px 13px 11px 38px; font-size:13px; border:1.5px solid #e9e6f7; border-radius:11px; background:#fbfaff; transition:border-color .18s, box-shadow .18s, background .18s; }
.appt-modal-body .form-control:focus { border-color:#8b3dff; background:#fff; box-shadow:0 0 0 3.5px rgba(124,58,237,.12); }
.af-field select.form-control { appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a86a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 13px center; }
.appt-modal-body .form-row { gap:14px; }
/* Durum — renkli segmentli seçici */
.af-seg { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.af-seg-btn { display:flex; align-items:center; justify-content:center; gap:6px; padding:10px 4px; border:1.5px solid #e9e6f7; border-radius:11px; background:#fbfaff; font-size:11.5px; font-weight:600; color:#8a86a6; cursor:pointer; transition:all .16s; font-family:inherit; }
.af-seg-btn i { font-size:11px; }
.af-seg-btn:hover { border-color:#d6ccf3; color:#6b6b87; }
.af-seg-btn.sg-scheduled.active { background:#eafff3; border-color:#7ee2a8; color:#119150; }
.af-seg-btn.sg-completed.active { background:#eaf2ff; border-color:#8fbdfb; color:#1d4ed8; }
.af-seg-btn.sg-cancelled.active { background:#fff0f0; border-color:#f7a8a8; color:#dc2626; }
.appt-modal-foot { padding:15px 22px; background:#faf9ff; border-top:1px solid #eee9fb; }
.appt-modal-foot .btn-primary { padding:10px 20px; }

/* ===== MANUEL PUAN MODALI (randevu modalıyla aynı tasarım dili, altın aksan) ===== */
#puan-modal .modal-box { overflow:hidden; }
#puan-modal .modal-header { padding:20px 22px; background:linear-gradient(135deg,#fff8ec,#fdeecf); border-bottom:1px solid #f4e7c6; }
#puan-modal .modal-hicon { width:46px; height:46px; border-radius:14px; font-size:20px; background:linear-gradient(135deg,#f59e0b,#f97316); box-shadow:0 7px 18px rgba(245,158,11,.4); }
#puan-modal .modal-header h3 { font-size:16px; }
#puan-modal .modal-sub { font-size:11.5px; }
#puan-modal .modal-body { padding:20px 22px; gap:15px; }
#puan-modal .form-group { margin-bottom:0; }
#puan-modal .form-group > label { font-size:11.5px; font-weight:600; color:#54506f; margin-bottom:6px; }
#puan-modal .form-control { padding:11px 13px; font-size:13px; border:1.5px solid #e9e6f7; border-radius:11px; background:#fbfaff; transition:border-color .18s, box-shadow .18s, background .18s; }
#puan-modal .af-field .form-control, #puan-modal .combo-input { padding-left:38px; }
#puan-modal .form-control:focus, #puan-modal .combo-input:focus { border-color:#8b3dff; background:#fff; box-shadow:0 0 0 3.5px rgba(124,58,237,.12); }
#puan-modal select.form-control { appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a86a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 13px center; }
#puan-modal .combo-ico { left:13px; color:#b3a9d9; }
#puan-modal .form-row { gap:14px; }
#puan-modal .modal-footer { padding:15px 22px; background:#faf9ff; border-top:1px solid #eee9fb; }
#puan-modal .modal-footer .btn-primary { padding:10px 20px; }

/* ===== KAMPANYA + ÖDÜL MODALI (güzelleştirilmiş — #kampanya-modal, #odul-modal) ===== */
.kampanya-modal-box { max-width:530px; overflow:hidden; }
.odul-modal-box { max-width:500px; overflow:hidden; }
#kampanya-modal .modal-header, #odul-modal .modal-header { padding:18px 22px; background:linear-gradient(135deg,#f8f4ff,#f3ecff); border-bottom:1px solid #ece6fb; }
#kampanya-modal .km-head-tx h3, #odul-modal .km-head-tx h3 { font-size:15px; font-weight:700; color:#14142b; }
#kampanya-modal .km-head-tx .modal-sub, #odul-modal .km-head-tx .modal-sub { font-size:11px; color:#8a86a6; margin-top:2px; }
#kampanya-modal .modal-body, #odul-modal .modal-body { padding:18px 22px 20px; gap:14px; }
#kampanya-modal .form-group, #odul-modal .form-group { display:flex; flex-direction:column; margin-bottom:0; }
#kampanya-modal .form-group > label, #odul-modal .form-group > label { font-size:11.5px; font-weight:600; color:#54506f; margin-bottom:6px; }
#kampanya-modal .km-label-hint, #odul-modal .km-label-hint { font-weight:500; color:#a7a3c0; font-size:10px; }
#kampanya-modal .form-row, #odul-modal .form-row { gap:14px; margin-bottom:0; }
#kampanya-modal .form-control, #odul-modal .form-control { padding:11px 13px; font-size:13px; border:1.5px solid #e9e6f7; border-radius:11px; background:#fbfaff; color:#14142b; transition:border-color .18s, box-shadow .18s, background .18s; }
#kampanya-modal textarea.form-control, #odul-modal textarea.form-control { resize:vertical; min-height:60px; line-height:1.5; }
#kampanya-modal .form-control:focus, #odul-modal .form-control:focus { border-color:#8b3dff; background:#fff; box-shadow:0 0 0 3.5px rgba(124,58,237,.12); }
#kampanya-modal .form-control::placeholder, #odul-modal .form-control::placeholder { color:#b3aed0; }
#kampanya-modal select.form-control, #odul-modal select.form-control { appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:32px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a86a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
#kampanya-modal .modal-footer, #odul-modal .modal-footer { padding:15px 22px; background:#faf9ff; border-top:1px solid #eee9fb; }

/* Önizleme banner */
#k-preview-banner, #o-preview-banner { position:relative; height:90px; border-radius:15px; display:flex; align-items:center; justify-content:center; font-size:44px; margin-bottom:4px; transition:background .3s; background:linear-gradient(135deg,#f1e7ff,#e0d0ff); box-shadow:inset 0 0 0 1px rgba(255,255,255,.55); overflow:hidden; }
#k-preview-banner::after, #o-preview-banner::after { content:''; position:absolute; inset:0; background:radial-gradient(120% 80% at 28% 12%, rgba(255,255,255,.5), transparent 58%); pointer-events:none; }

/* İkon seçici — kompakt, kaydırılabilir grid */
#emoji-picker, #odul-emoji-picker { display:grid; grid-template-columns:repeat(8,1fr); gap:7px; max-height:152px; overflow-y:auto; padding:10px; border:1.5px solid #ece6fb; border-radius:13px; background:#fbfaff; }
#emoji-picker::-webkit-scrollbar, #odul-emoji-picker::-webkit-scrollbar { width:9px; }
#emoji-picker::-webkit-scrollbar-thumb, #odul-emoji-picker::-webkit-scrollbar-thumb { background:#e2d4ff; border-radius:6px; border:2px solid #fbfaff; }
#emoji-picker::-webkit-scrollbar-track, #odul-emoji-picker::-webkit-scrollbar-track { background:transparent; }
.k-emoji { font-size:20px; aspect-ratio:1/1; border-radius:10px; display:flex; align-items:center; justify-content:center; padding:3px; cursor:pointer; border:2px solid transparent; background:#fff; box-shadow:0 1px 2px rgba(20,20,60,.05); transition:transform .12s ease, border-color .15s, background .15s, box-shadow .15s; }
.k-emoji:hover { transform:translateY(-1px); border-color:#e0d0ff; background:#faf6ff; box-shadow:0 5px 12px rgba(124,58,237,.15); }
.k-emoji.sel { border-color:#8b3dff; background:#f1e7ff; box-shadow:0 5px 14px rgba(124,58,237,.24); }
/* İşlem türü segmentleri */
.af-seg-btn.sg-earn.active { background:#eafff3; border-color:#7ee2a8; color:#119150; }
.af-seg-btn.sg-spend.active { background:#fff0f0; border-color:#f7a8a8; color:#dc2626; }
.af-seg-btn.sg-manual.active { background:#f3edff; border-color:#c4a9f7; color:#7c3aed; }

/* ===== Aranabilir hasta seçici (combobox) ===== */
.combo { position:relative; }
.combo .combo-ico { position:absolute; left:11px; top:50%; transform:translateY(-50%); font-size:11px; color:#a3a3bf; pointer-events:none; }
.combo .combo-input { padding-left:30px; padding-right:30px; cursor:text; }
.combo .combo-caret { position:absolute; right:11px; top:50%; transform:translateY(-50%); font-size:10px; color:#a3a3bf; cursor:pointer; transition:transform .2s; }
.combo.open .combo-caret { transform:translateY(-50%) rotate(180deg); }
.combo-list { position:absolute; top:calc(100% + 5px); left:0; right:0; z-index:60; background:#fff; border:1px solid #e5e7f3; border-radius:10px; box-shadow:0 14px 34px rgba(20,20,60,.16); padding:5px; max-height:236px; overflow-y:auto; display:none; }
.combo.open .combo-list { display:block; }
.combo-item { display:flex; align-items:center; gap:9px; padding:7px 8px; border-radius:8px; cursor:pointer; transition:background .12s; }
.combo-item:hover, .combo-item.active { background:#f5efff; }
.combo-item img { width:30px; height:30px; border-radius:50%; flex-shrink:0; object-fit:cover; }
.combo-item .ci-name { font-size:11.5px; font-weight:600; color:#14142b; flex:1; line-height:1.25; display:flex; align-items:center; gap:6px; }
.combo-item .ci-bal { font-size:10.5px; font-weight:800; color:#7c3aed; background:#f1e7ff; padding:2px 8px; border-radius:20px; flex-shrink:0; }
.combo-item .ci-new { font-size:9px; font-weight:700; color:#16a34a; background:#e3fbef; padding:1px 6px; border-radius:20px; }
.combo-empty { padding:16px 10px; text-align:center; font-size:11px; color:#9090aa; }

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  background: #130d35; color: white; padding: 11px 16px; border-radius: 10px;
  font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(20,20,60,.25); transform: translateY(80px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast i { color: #a855f7; }

/* Bildirim yığını: her bildirim ayrı kutu, sağ altta alt alta dizilir */
#toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toastn {
  background: #130d35; color: white; padding: 11px 16px; border-radius: 10px;
  font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(20,20,60,.25); max-width: 360px;
  animation: toastnIn .3s cubic-bezier(.34,1.56,.64,1);
  transition: opacity .3s, transform .3s;
}
@keyframes toastnIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.toastn.out { opacity: 0; transform: translateY(10px); }
.toastn i { color: #a855f7; flex-shrink: 0; }
.toastn.sticky { border: 1px solid rgba(168,85,247,.45); box-shadow: 0 10px 30px rgba(124,58,237,.35); }
.toastn.sticky i { color: #fbbf24; }
.toastn .toast-x { background: none; border: none; color: #cfc8ee; font-size: 17px; line-height: 1; cursor: pointer; padding: 0 0 0 8px; flex-shrink: 0; }
.toastn .toast-x:hover { color: #fff; }

/* ========== HASTA PROFİL ========== */
#page-hastalar .patient-info strong { cursor:pointer; transition:color .15s; }
#page-hastalar .patient-info strong:hover { color:#8b3dff; text-decoration:underline; }
.pp-header { background:linear-gradient(135deg,#7c3aed,#9333ea); padding:20px; color:#fff; position:relative; }
.pp-header-top { display:flex; align-items:center; gap:14px; }
.pp-avatar { width:60px; height:60px; border-radius:50%; border:3px solid rgba(255,255,255,.35); object-fit:cover; flex-shrink:0; }
.pp-name { font-size:16px; font-weight:800; }
.pp-id { font-size:10.5px; opacity:.85; margin-top:2px; }
.pp-badges { display:flex; gap:6px; margin-top:8px; }
.pp-badges .level-badge, .pp-badges .status-badge { background:rgba(255,255,255,.22); color:#fff; }
.pp-close { position:absolute; top:14px; right:14px; width:28px; height:28px; border-radius:8px; border:none; background:rgba(255,255,255,.18); color:#fff; cursor:pointer; font-size:13px; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.pp-close:hover { background:rgba(255,255,255,.32); }
.pp-body { max-height:58vh; overflow-y:auto; }
.pp-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:#ececff; }
.pp-stat { background:#fff; padding:12px 6px; text-align:center; }
.pp-stat .v { font-size:15px; font-weight:800; color:#14142b; }
.pp-stat .l { font-size:9px; color:#9090aa; margin-top:2px; }
.pp-stat-click { cursor:pointer; transition:background .15s; position:relative; }
.pp-stat-click::after { content:''; position:absolute; left:50%; bottom:8px; transform:translateX(-50%); width:18px; height:2px; border-radius:2px; background:#d9c4ff; transition:width .15s, background .15s; }
.pp-stat-click .v { color:#8b3dff; }
.pp-stat-click .l { color:#8b3dff; font-weight:700; }
.pp-stat-click:hover { background:#f5efff; }
.pp-stat-click:hover::after { width:28px; background:#8b3dff; }
.pp-stat-arrow { font-size:8px; margin-left:2px; color:#8b3dff; }
.rw-emoji { width:40px; height:40px; border-radius:12px; background:#f4f0ff; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.rc-item.rw-locked { opacity:.72; }
.rc-item.rw-locked .rw-emoji { background:#f3f3f7; filter:grayscale(.4); }
.pp-section { padding:14px 20px; border-top:1px solid #f3f3fb; }
.pp-section h4 { font-size:12px; font-weight:700; margin-bottom:9px; display:flex; align-items:center; gap:6px; }
.pp-section h4 i { color:#8b3dff; font-size:11px; }
.pp-info-row { display:flex; align-items:center; gap:11px; padding:9px 0; border-bottom:1px solid #f1edfb; }
.pp-info-row:last-child { border-bottom:none; }
.pp-info-ic { width:32px; height:32px; border-radius:9px; background:#f4f0ff; color:#8b3dff; display:flex; align-items:center; justify-content:center; font-size:12.5px; flex-shrink:0; }
.pp-info-txt { display:flex; flex-direction:column; gap:1px; min-width:0; line-height:1.25; }
.pp-info-k { font-size:9.5px; font-weight:700; color:#9b9bb5; text-transform:uppercase; letter-spacing:.05em; }
.pp-info-v { font-size:13px; font-weight:600; color:#2a2a44; word-break:break-word; }
.pp-progress-label { display:flex; justify-content:space-between; font-size:10.5px; font-weight:600; color:#6b6b87; margin-bottom:6px; }
.pp-progress-track { height:8px; background:#ececff; border-radius:10px; overflow:hidden; }
.pp-progress-fill { height:100%; background:linear-gradient(90deg,#7c3aed,#a855f7); border-radius:10px; transition:width .5s ease; }
.pp-section .activity-item:last-child { border-bottom:none; padding-bottom:0; }
.activity-item { display:flex; align-items:flex-start; gap:9px; padding:8px 0; border-bottom:1px solid #f3f3fb; }
.activity-icon { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; flex-shrink:0; }
.activity-content { flex:1; min-width:0; }
.activity-content h4 { font-size:11.5px; font-weight:600; margin:0 0 1px; display:block; }
.activity-content p { font-size:10.5px; color:#6b6b87; line-height:1.4; }
.activity-time { font-size:9.5px; color:#9090aa; margin-top:2px; }
.pp-timeline-empty { font-size:11px; color:#9090aa; padding:6px 0; }
.activity-item .pp-txn-del { flex-shrink:0; align-self:center; background:none; border:none; cursor:pointer; color:#c9c9d6; padding:4px 6px; border-radius:7px; transition:all .15s; }
.activity-item .pp-txn-del:hover { color:#f43f5e; background:#fff0f3; }
.activity-item .pp-txn-del i { font-size:12px; }

/* Puan İşlemleri sayfasında da hasta adı tıklanabilir */
#page-puan-islemleri .patient-info strong { cursor:pointer; transition:color .15s; }
#page-puan-islemleri .patient-info strong:hover { color:#8b3dff; text-decoration:underline; }

/* Dashboard kartlarında hasta adları tıklanabilir (profil kartını açar) */
.dash-name { cursor:pointer; transition:color .15s; font-weight:700; font-size:13px; color:#16162a; }
.dash-name:hover { color:#8b3dff; text-decoration:underline; }

/* Yönlendirmeler tablosunda yönlendiren hasta adı tıklanabilir (detay kartını açar) */
#page-yonlendirmeler .ref-name { cursor:pointer; color:#8b3dff; transition:color .15s,background .15s; display:inline-flex; align-items:center; gap:5px; }
#page-yonlendirmeler .ref-name::after { content:"\f105"; font-family:"Font Awesome 6 Free"; font-weight:900; font-size:11px; opacity:.6; }
#page-yonlendirmeler .ref-name:hover { color:#6d28d9; text-decoration:underline; }
#page-yonlendirmeler .ref-name:hover::after { opacity:1; }

/* ===== Yönlendiren detay kartı ===== */
.rc-header { background:linear-gradient(135deg,#7c3aed,#9333ea); padding:20px 22px; color:#fff; position:relative; }
.rc-close { position:absolute; top:14px; right:14px; width:30px; height:30px; border-radius:9px; border:none; background:rgba(255,255,255,.18); color:#fff; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.rc-close:hover { background:rgba(255,255,255,.32); }
.rc-header-top { display:flex; align-items:center; gap:13px; }
.rc-avatar { width:52px; height:52px; border-radius:50%; border:2px solid rgba(255,255,255,.55); object-fit:cover; }
.rc-name { font-size:16px; font-weight:800; }
.rc-sub { font-size:11.5px; opacity:.9; margin-top:2px; }
.rc-body { padding:18px 20px; }
.rc-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px; }
.rc-stat { background:#faf7ff; border:1px solid #efe7ff; border-radius:12px; padding:11px 8px; text-align:center; }
.rc-stat .v { font-size:18px; font-weight:800; color:#7c3aed; }
.rc-stat .l { font-size:10px; color:#9090aa; margin-top:2px; }
.rc-section-title { font-size:13px; font-weight:700; margin-bottom:10px; }
.rc-list { display:flex; flex-direction:column; gap:9px; max-height:300px; overflow:auto; }
.rc-item { display:flex; align-items:center; gap:11px; background:#fff; border:1px solid #eee; border-radius:12px; padding:9px 12px; }
.rc-item img { width:40px; height:40px; border-radius:12px; object-fit:cover; }
.rc-item .info { flex:1; min-width:0; }
.rc-item .info strong { display:block; font-size:12.5px; }
.rc-item .info span { font-size:10.5px; color:#9090aa; }
.rc-item .point { flex-shrink:0; }
.rc-empty { text-align:center; color:#9090aa; font-size:12px; padding:24px 0; }

/* Profil kartı: puan ekle / çıkar bölümü */
.pp-points { background:#faf7ff; }
.pp-seg { display:inline-flex; background:#f1eefb; border-radius:9px; padding:3px; gap:3px; margin-bottom:10px; }
.pp-seg-btn { border:none; background:none; cursor:pointer; font-size:11px; font-weight:700; color:#7a7a96; padding:6px 15px; border-radius:7px; display:flex; align-items:center; gap:5px; transition:all .15s; }
.pp-seg-btn.active { background:#fff; color:#16b86a; box-shadow:0 2px 6px rgba(20,20,60,.1); }
.pp-seg-btn[data-mode="sub"].active { color:#f43f5e; }
.pp-point-row { display:flex; gap:8px; }
.pp-point-row #pp-point-amt { flex:0 0 120px; }
.pp-point-row #pp-point-desc { flex:1; min-width:0; }
.pp-point-preview { display:none; font-size:11px; color:#6b6b87; margin-top:9px; background:#fff; border:1px dashed #e0d0ff; border-radius:8px; padding:8px 11px; }
.pp-point-preview strong { color:#7c3aed; font-weight:800; }
.pp-point-apply { width:100%; margin-top:10px; justify-content:center; }

/* Tedavi seçimi dropdown (profil kartı) */
.pp-treatment-select { margin-bottom:13px; }
.pp-chips-label { display:flex; align-items:center; font-size:10.5px; font-weight:700; color:#7a7a96; margin-bottom:7px; text-transform:uppercase; letter-spacing:.04em; }
/* Özel tedavi açılır menüsü — tetikleyici */
.tdd { position:relative; }
.tdd-trigger {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:#fff; border:1.5px solid #e6ddfb; border-radius:10px;
  padding:11px 13px; font-family:inherit; font-size:12.5px; font-weight:600; color:#2a2a44;
  cursor:pointer; text-align:left; transition:border-color .15s, box-shadow .15s;
}
.tdd-trigger:hover { border-color:#c4a9f7; }
.tdd.open .tdd-trigger { border-color:#8b3dff; box-shadow:0 0 0 3px rgba(139,61,255,.16); }
.tdd-val { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tdd-val.placeholder { color:#9090aa; font-weight:500; }
.tdd-caret { font-size:11px; color:#8b3dff; flex-shrink:0; transition:transform .2s; }
.tdd.open .tdd-caret { transform:rotate(180deg); }

/* Açılır liste */
.tdd-list {
  position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:60;
  background:#fff; border:1px solid #ece4fb; border-radius:12px;
  box-shadow:0 16px 38px rgba(76,29,149,.18); padding:6px;
  max-height:262px; overflow-y:auto; display:none;
}
.tdd.open .tdd-list { display:block; }
.tdd-opt {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:9px 11px; border-radius:9px; cursor:pointer; transition:background .12s;
}
.tdd-opt:hover, .tdd-opt.active { background:#f5efff; }
.tdd-opt.tdd-selected { background:#f1e7ff; }
.tdd-opt-name { font-size:12px; font-weight:600; color:#2a2a44; }
.tdd-opt-pts {
  font-size:11px; font-weight:800; color:#16a34a; background:#e6faf0;
  padding:3px 11px; border-radius:20px; white-space:nowrap; flex-shrink:0;
  min-width:78px; text-align:center;
}

/* Profil kartı footer: üstte ikili (Kapat/Düzenle), altta tam genişlik "Randevu Ekle" */
#profile-modal .modal-footer.pp-footer { flex-direction:column; align-items:stretch; gap:9px; }
.pp-footer-sec { display:flex; gap:8px; }
.pp-footer-sec .btn-secondary { flex:1; justify-content:center; display:flex; align-items:center; gap:6px; }

/* "Randevu Ekle" — dikkat çeken birincil aksiyon (yumuşak parıltı) */
.pp-appt-btn {
  width:100%; justify-content:center;
  background:linear-gradient(90deg,#7c3aed,#a855f7);
  color:#fff; border:none; padding:11px 17px; border-radius:10px;
  font-size:12.5px; font-weight:700; cursor:pointer;
  display:flex; align-items:center; gap:8px; white-space:nowrap;
  box-shadow:0 4px 14px rgba(124,58,237,.42);
  animation:ppApptPulse 2.6s ease-in-out infinite;
  transition:transform .15s, box-shadow .15s;
}
.pp-appt-btn i { font-size:13px; }
.pp-appt-btn:hover { transform:translateY(-1px); box-shadow:0 8px 22px rgba(124,58,237,.55); animation:none; }
@keyframes ppApptPulse {
  0%,100% { box-shadow:0 4px 14px rgba(124,58,237,.38); }
  50%     { box-shadow:0 5px 22px rgba(124,58,237,.66); }
}
@media (prefers-reduced-motion:reduce) { .pp-appt-btn { animation:none; } }

/* ========== SEVİYE TABS ========== */
.sv-tabs { display:flex; gap:0; padding:0 20px; border-bottom:1px solid #f0f0fb; }
.sv-tab { padding:10px 13px; border:none; background:none; cursor:pointer; font-size:11.5px; font-weight:600; color:#9090aa; border-bottom:3px solid transparent; margin-bottom:-1px; transition:all .15s; }
.sv-tab.active { color:#8b3dff; border-bottom-color:#8b3dff; }
.sv-tab:hover:not(.active) { color:#6b6b87; background:#faf7ff; }
.sv-panel { display:none; padding:16px 20px 4px; }
.sv-panel.active { display:block; }
.sv-hint { font-size:10px; color:#9090aa; margin-top:2px; }

/* ========== RESPONSIVE ========== */
@media(max-width:1200px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .content-grid,.lower-grid,.promo-grid,.report-grid{grid-template-columns:1fr}
  .campaign-grid,.reward-grid{grid-template-columns:repeat(2,1fr)}
  .level-cards{grid-template-columns:repeat(2,1fr)}
  .level-progression{gap:6px}
  .prog-arrow{flex:0 0 16px}
}
@media(max-width:800px){
  .dashboard{flex-direction:column}
  .sidebar{width:100%;height:auto;position:relative}
  .main{padding:12px}
  .topbar{flex-direction:column;align-items:flex-start;gap:8px}
  .actions{flex-direction:column;width:100%}
  .campaign-grid,.reward-grid,.level-cards{grid-template-columns:1fr}
  .settings-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
}

/* ===== KLİNİK GİRİŞ EKRANI (Auth gate) ===== */
.clinic-login-overlay{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:linear-gradient(135deg,#2d2d4e,#4c1d95);padding:20px;}
.clinic-login-overlay.show{display:flex;}
.clinic-login-card{width:100%;max-width:380px;background:#fff;border-radius:18px;padding:30px 28px;box-shadow:0 24px 60px rgba(0,0,0,.35);}
.clinic-login-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px;}
.clinic-login-brand i{position:relative;width:46px;height:46px;border-radius:12px;background:linear-gradient(135deg,#8b4cf0,#7c3aed 45%,#9333ea);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 8px 18px -6px rgba(124,58,237,.55);}
.clinic-login-brand i::after{content:"\f005";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;top:7px;right:8px;font-size:8px;color:#fde047;}
.clinic-login-brand strong{display:block;font-size:16px;font-weight:800;letter-spacing:-.01em;color:#2d2d4e;}
.clinic-login-brand strong .lo{color:#7c3aed;font-size:inherit;letter-spacing:.04em;}
.clinic-login-brand span{font-size:12px;color:#9b9bb5;}
.clinic-login-card form{display:flex;flex-direction:column;}
.clinic-login-card label{font-size:12px;font-weight:600;color:#4b4b6b;margin:10px 0 5px;}
.clinic-login-card input{padding:11px 13px;border:1px solid #e5e7f3;border-radius:10px;font-size:14px;color:#14142b;outline:none;transition:border-color .2s;}
.clinic-login-card input:focus{border-color:#9333ea;}
.clinic-login-btn{margin-top:18px;padding:12px;border:none;border-radius:10px;background:linear-gradient(135deg,#9333ea,#7c3aed);color:#fff;font-size:14px;font-weight:700;cursor:pointer;transition:opacity .2s;}
.clinic-login-btn:disabled{opacity:.6;cursor:default;}
.clinic-login-error{min-height:18px;margin-top:10px;font-size:12.5px;color:#e11d48;font-weight:600;}
.clinic-login-hint{margin-top:18px;font-size:11px;color:#9b9bb5;line-height:1.5;text-align:center;}
.clinic-login-hint i{color:#16a34a;margin-right:4px;}

/* ===== SPLIT-SCREEN GİRİŞ ===== */
.clinic-auth{width:100%;max-width:920px;display:grid;grid-template-columns:1.05fr 1fr;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 40px 90px -24px rgba(0,0,0,.5);}
.clinic-auth-side{position:relative;padding:40px 36px;color:#fff;background:linear-gradient(155deg,#3a1a78,#6d28d9 60%,#7c3aed);overflow:hidden;display:flex;flex-direction:column;}
.clinic-auth-side::before{content:"";position:absolute;right:-60px;top:-50px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(167,116,251,.55),transparent 70%);}
.clinic-auth-side::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.13) 1px,transparent 1px);background-size:20px 20px;opacity:.5;}
.cas-back{position:relative;z-index:1;display:inline-flex;align-items:center;gap:7px;color:rgba(255,255,255,.85);font-size:12.5px;font-weight:600;width:max-content;transition:color .2s,gap .2s;}
.cas-back:hover{color:#fff;gap:10px;}
.cas-brand{position:relative;z-index:1;display:flex;align-items:center;gap:11px;margin:30px 0 24px;}
.cas-mark{position:relative;width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.26);display:flex;align-items:center;justify-content:center;font-size:19px;color:#fff;}
.cas-mark::after{content:"\f005";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;top:6px;right:7px;font-size:7px;color:#fde047;}
.cas-brand b{font-size:19px;font-weight:800;letter-spacing:-.01em;}
.cas-brand b span{color:#d6c2ff;letter-spacing:.06em;}
.clinic-auth-side h2{position:relative;z-index:1;font-size:26px;font-weight:800;line-height:1.16;letter-spacing:-.02em;margin-bottom:11px;}
.clinic-auth-side > p{position:relative;z-index:1;font-size:13.5px;color:rgba(255,255,255,.82);line-height:1.6;margin-bottom:22px;}
.cas-feats{position:relative;z-index:1;list-style:none;display:flex;flex-direction:column;gap:12px;margin-bottom:26px;}
.cas-feats li{display:flex;align-items:center;gap:10px;font-size:13.5px;color:rgba(255,255,255,.94);}
.cas-feats li i{color:#a7f3c6;font-size:14px;}
.cas-stats{position:relative;z-index:1;display:flex;gap:26px;margin-top:auto;padding-top:20px;border-top:1px solid rgba(255,255,255,.18);}
.cas-stats div b{display:block;font-size:21px;font-weight:800;line-height:1;}
.cas-stats div span{font-size:11px;color:rgba(255,255,255,.72);}

/* sağ kart, split içinde */
.clinic-auth .clinic-login-card{max-width:none;border-radius:0;box-shadow:none;padding:42px 40px;display:flex;flex-direction:column;justify-content:center;}
.clinic-back-mobile{display:none;}
.clinic-login-title{font-size:21px;font-weight:800;letter-spacing:-.01em;margin-bottom:5px;color:#1c1830;}
.clinic-login-desc{font-size:13px;color:#8a89a3;margin-bottom:20px;}

/* ikonlu input + göz */
.cl-input{display:flex;align-items:center;gap:9px;border:1px solid #e5e7f3;border-radius:11px;padding:0 12px;transition:border-color .2s,box-shadow .2s,background .2s;background:#fbfbfe;}
.cl-input:focus-within{border-color:#9333ea;box-shadow:0 0 0 4px #f3ecff;background:#fff;}
.cl-input > i{color:#a9a8c2;font-size:13px;flex-shrink:0;}
.cl-input input{flex:1;border:none;background:none;padding:12px 0;font-size:14px;color:#14142b;outline:none;}
.cl-eye{background:none;border:none;color:#a9a8c2;cursor:pointer;font-size:13px;padding:4px;flex-shrink:0;}
.cl-eye:hover{color:#7c3aed;}
.cl-label-row{display:flex;align-items:center;justify-content:space-between;margin:12px 0 5px;}
.cl-label-row label{margin:0;}
.cl-forgot{font-size:12px;font-weight:600;color:#7c3aed;}
.cl-forgot:hover{text-decoration:underline;}
.cl-remember{display:flex;align-items:center;gap:8px;margin-top:13px;font-size:12.5px;color:#4b4b6b;font-weight:500;cursor:pointer;user-select:none;}
.cl-remember input{width:15px;height:15px;accent-color:#7c3aed;cursor:pointer;}
.cl-alt{text-align:center;font-size:13px;color:#6f6a87;margin-top:16px;}
.cl-alt a{color:#7c3aed;font-weight:700;}
.cl-alt a:hover{text-decoration:underline;}
.cl-foot{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #efeafc;}
.cl-foot a{font-size:12px;color:#9b9bb5;font-weight:600;transition:color .2s;}
.cl-foot a:hover{color:#7c3aed;}
.cl-foot span{color:#d7d4e6;font-size:11px;}
.clinic-auth .clinic-login-card form > label:first-of-type{margin-top:0;}

@media(max-width:760px){
  .clinic-auth{grid-template-columns:1fr;max-width:420px;}
  .clinic-auth-side{display:none;}
  .clinic-back-mobile{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:#7c3aed;font-weight:600;margin-bottom:16px;width:max-content;}
  .clinic-auth .clinic-login-card{padding:30px 26px;}
}

/* Hasta profil fotoğrafı (ekle/düzenle modalı) */
.photo-row{ display:flex; align-items:center; gap:14px; padding-bottom:12px; border-bottom:1px solid #ececff; margin-bottom:10px; }
.photo-preview{ width:64px; height:64px; border-radius:50%; object-fit:cover; border:2px solid #ececff; flex-shrink:0; background:#f1edfb; }
.photo-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.photo-actions .btn-secondary{ padding:7px 12px; font-size:11.5px; }
.photo-actions .form-hint{ flex-basis:100%; margin-top:0; }

/* Tedavi tanımları (ayarlar) + detay kartı tedavi bölümü */
.tt-list{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.tt-row{ display:flex; align-items:center; gap:10px; padding:9px 12px; background:#f7f7fb; border:1px solid #ececff; border-radius:9px; }
.tt-row .tt-name{ flex:1; font-size:13px; font-weight:600; color:#14142b; }
.tt-row .tt-pts{ font-size:12px; font-weight:700; color:#7c3aed; }
.tt-row .tt-del{ border:none; background:none; color:#c4392f; cursor:pointer; font-size:12px; padding:4px; }
.tt-row .tt-edit{ border:none; background:none; color:#8a8aa3; cursor:pointer; font-size:12px; padding:4px; }
.tt-row .tt-edit:hover{ color:#7c3aed; }
.tt-add{ display:flex; gap:8px; align-items:center; }
.tt-add .form-control{ flex:1; }

/* Tedavi satırı düzenleme (inline) */
.tt-row-edit{ gap:8px; background:#faf7ff; border-color:#e0d0ff; }
.tt-row-edit .form-control{ padding:7px 10px; font-size:12.5px; }
.tt-row-edit .tt-edit-name{ flex:1; }
.tt-row-edit .tt-edit-pts{ flex:0 0 92px; max-width:92px; }
.tt-row-edit .tt-save, .tt-row-edit .tt-cancel{ border:none; background:none; cursor:pointer; font-size:14px; padding:5px; }
.tt-row-edit .tt-save{ color:#16a34a; }
.tt-row-edit .tt-cancel{ color:#9090aa; }
.tt-row-edit .tt-save:hover{ color:#15803d; }

/* Eklenebilecek tedaviler (öneri çipleri) */
.tt-suggestions{ margin-top:15px; }
.tt-sug-label{ font-size:11.5px; font-weight:700; color:#6b6b87; margin-bottom:9px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.tt-sug-label i{ color:#8b3dff; }
.tt-sug-label span{ font-weight:400; color:#9b9bb5; font-size:10.5px; }
.tt-sug-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.tt-sug-chip{ display:inline-flex; align-items:center; gap:7px; font-size:11.5px; font-weight:600; color:#7c3aed; background:#f4f0ff; border:1px solid #e6ddfb; border-radius:20px; padding:6px 12px; cursor:pointer; transition:all .15s; }
.tt-sug-chip i{ font-size:9px; opacity:.8; }
.tt-sug-chip em{ font-style:normal; font-weight:700; color:#a594d8; font-size:10.5px; }
.tt-sug-chip:hover:not(:disabled){ background:#ece3ff; border-color:#c4a9f7; transform:translateY(-1px); }
.tt-sug-chip:disabled{ opacity:.5; cursor:default; }
.tt-box{ border:1px solid #e0d7f7; border-radius:12px; background:#faf8ff; padding:14px; margin-bottom:12px; }
.tt-assign{ display:flex; gap:8px; align-items:center; margin:8px 0 10px; }
.tt-assign .form-control{ flex:1; }
.pd-tt-list{ display:flex; flex-direction:column; gap:6px; }
.pd-tt-item{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12.5px; padding:7px 10px; background:#fff; border:1px solid #ececff; border-radius:8px; }
.pd-tt-item small{ color:#9090aa; margin-left:6px; font-size:11px; }
.pd-tt-item strong{ color:#16a34a; }

/* Ödül talepleri listesi */
.redemption-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 13px; border:1px solid #ececff; border-radius:10px; margin-bottom:8px; background:#fff; }
.redemption-row .rd-info{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.redemption-row .rd-info strong{ font-size:13px; color:#14142b; }
.redemption-row .rd-info span{ font-size:11.5px; color:#6b6b87; }
.redemption-row .rd-actions{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.redemption-row .rd-btn{ padding:6px 12px; font-size:11.5px; }

/* Onay modalı (dlConfirm — silme vb.) */
.confirm-body { padding: 24px 22px 6px; text-align: center; }
.confirm-icon { width: 56px; height: 56px; border-radius: 50%; background: #fee2e2; color: #ef4444; display: flex; align-items: center; justify-content: center; font-size: 23px; margin: 0 auto 14px; }
.confirm-body h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: #1a1a2e; }
.confirm-msg { font-size: 13px; line-height: 1.55; color: #6b6b87; }
#confirm-modal .modal-footer { justify-content: center; gap: 10px; }
#confirm-modal .modal-footer button { min-width: 120px; }
.btn-danger { background: #ef4444 !important; border-color: #ef4444 !important; color: #fff !important; box-shadow: 0 8px 16px -6px rgba(239,68,68,.5) !important; }
.btn-danger:hover { background: #dc2626 !important; }

/* Leaderboard 4+ sıra rozeti (madalya yerine) */
.medal.rank { width:22px; height:22px; border-radius:50%; background:#ece9fb; color:#7c3aed; font-size:11px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }

/* Kutu etrafında dönen mor ışık (En Çok Puan Kazanan Hastalar) */
@property --glowdeg { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.glow-card { position:relative; --glowdeg:0deg; }
.glow-card::after {
  content:""; position:absolute; inset:0; border-radius:inherit; padding:2px; z-index:2; pointer-events:none;
  background: conic-gradient(from var(--glowdeg),
    rgba(168,85,247,0) 0deg, rgba(168,85,247,0) 240deg,
    rgba(192,132,252,.55) 300deg, #7c3aed 335deg, rgba(168,85,247,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: glowSpin 5.5s linear infinite;
}
@keyframes glowSpin { to { --glowdeg: 360deg; } }

/* ===== KVKK onay rozeti tooltip'i (Hastalar listesi — isim yanındaki kalkan) ===== */
.kvkk-tip{ position:relative; display:inline-block; margin-left:5px; cursor:help; }
.kvkk-tip i{ font-size:11px; }
.kvkk-tip.ok i{ color:#10b981; }
.kvkk-tip.no i{ color:#cbd5e1; }
.kvkk-tip::after{
  content:attr(data-tip);
  position:absolute; top:140%; left:-10px; transform:translateY(-4px);
  background:#1e1b3a; color:#fff; font-size:11.5px; font-weight:600; line-height:1.35;
  padding:7px 11px; border-radius:9px; white-space:nowrap;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .12s ease, transform .12s ease;
  box-shadow:0 6px 18px rgba(30,27,58,.3); z-index:60;
}
.kvkk-tip::before{
  content:''; position:absolute; top:140%; left:2px; transform:translateY(-10px);
  border:5px solid transparent; border-bottom-color:#1e1b3a;
  opacity:0; visibility:hidden; transition:opacity .12s ease; z-index:60;
}
.kvkk-tip:hover::after{ opacity:1; visibility:visible; transform:translateY(0); }
.kvkk-tip:hover::before{ opacity:1; visibility:visible; }
.kvkk-tip.ok::after{ background:#065f46; }
.kvkk-tip.ok::before{ border-bottom-color:#065f46; }

/* ===== Randevu Talepleri (Randevular sayfası üstü) ===== */
.appt-requests-wrap{ background:#f5f8ff; border:1px solid #dbe6ff; border-radius:14px; padding:16px 16px 14px; margin-bottom:18px; }
.appt-requests-head{ margin-bottom:12px; }
.appt-requests-head h3{ display:flex; align-items:center; gap:8px; font-size:15px; font-weight:800; color:#1e293b; margin:0; }
.appt-requests-head p{ margin:5px 0 0; font-size:12.5px; color:#64748b; }
.appt-req-count{ background:#2563eb; color:#fff; font-size:11px; font-weight:700; min-width:20px; height:20px; line-height:20px; text-align:center; border-radius:10px; padding:0 6px; }
#appt-requests-box{ display:flex; flex-direction:column; gap:10px; }
#appt-requests-box.is-scrollable{ max-height:430px; overflow-y:auto; padding-right:6px; }
