/* ==========================================================================
   DentCell Enterprise Web Platform — Premium Medical SaaS Design System
   ========================================================================== */

:root {
  --web-sidebar-width: 260px;
  --web-topbar-height: 70px;
  --web-font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --primary-blue: #1e40af;
  --accent-blue: #2563eb;
  --accent-teal: #0d9488;
  --accent-emerald: #059669;
  --dark-slate: #090d16;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

body.web-body {
  font-family: var(--web-font);
  background: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. PUBLIC NAVBAR (LANDING & MARKETING)
   ========================================================================== */
.web-top-announcement {
  background: #090d16;
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.01em;
}

.web-top-announcement .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.web-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  height: 74px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.web-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.web-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.web-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0f172a;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.web-brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.025em;
}

.web-brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.web-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.web-nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.web-nav-link:hover, .web-nav-link.active {
  color: #0f172a;
}

.web-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-web-primary {
  background: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px -1px rgba(37, 99, 235, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.btn-web-primary:hover {
  background: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 8px 24px -2px rgba(37, 99, 235, 0.45);
  transform: translateY(-1.5px);
}

.btn-web-secondary {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

.btn-web-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.btn-web-outline {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #334155;
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.btn-web-outline:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.web-hero-section {
  padding: 72px 28px 56px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.web-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.web-hero-title {
  font-size: 3.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.web-hero-title .gradient-text {
  color: #2563eb;
}

.web-hero-desc {
  font-size: 1.0625rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

.web-hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.web-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.web-stat-val {
  font-size: 1.625rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.web-stat-lbl {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================================
   2A. INTERACTIVE HERO PRODUCT PREVIEW CARD (REALISTIC CLINICAL OS)
   ========================================================================== */
.web-hero-preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  position: relative;
}

.preview-top-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.preview-top-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
}

.preview-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.preview-metric-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.preview-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.preview-metric-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.preview-timeline-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.preview-timeline-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.preview-patient-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-patient-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-action-footer {
  padding: 14px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   2B. SECTION STRUCTURE & METRIC CARDS
   ========================================================================== */
.web-section {
  padding: 72px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.web-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.web-section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.web-section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.web-section-desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
}

/* 4-Metric Grid */
.web-stats-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.web-stat-highlight-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.web-stat-highlight-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
}

.web-stat-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.web-stat-big-num {
  font-size: 2.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.web-stat-desc-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
}

/* ==========================================================================
   2C. FEATURE SHOWCASE TABS & DISPLAY BOX
   ========================================================================== */
.web-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.06);
}

.web-showcase-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.web-showcase-item {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.web-showcase-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.web-showcase-item.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.web-showcase-item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-showcase-item.active .web-showcase-item-title {
  color: #ffffff;
}

.web-showcase-item.active .web-showcase-icon {
  color: #38bdf8;
}

.web-showcase-display-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.web-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.web-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.web-feature-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
}

.web-feature-icon {
  --fi: #0f172a;
  --fi-bg: #f1f5f9;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fi-bg);
  color: var(--fi);
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 4px 12px -4px var(--fi);
  transition: transform 0.2s ease;
}

.web-feature-card:hover .web-feature-icon { transform: scale(1.06) rotate(-3deg); }

.feature-teal .web-feature-icon    { --fi: #0d9488; --fi-bg: linear-gradient(135deg, #ccfbf1, #f0fdfa); }
.feature-red .web-feature-icon     { --fi: #e11d48; --fi-bg: linear-gradient(135deg, #ffe4e6, #fff1f2); }
.feature-indigo .web-feature-icon  { --fi: #4f46e5; --fi-bg: linear-gradient(135deg, #e0e7ff, #eef2ff); }
.feature-emerald .web-feature-icon { --fi: #059669; --fi-bg: linear-gradient(135deg, #d1fae5, #ecfdf5); }
.feature-sky .web-feature-icon     { --fi: #0284c7; --fi-bg: linear-gradient(135deg, #e0f2fe, #f0f9ff); }
.feature-amber .web-feature-icon   { --fi: #d97706; --fi-bg: linear-gradient(135deg, #fef3c7, #fffbeb); }

.web-feature-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.web-feature-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==========================================================================
   2D. PRICING GRID
   ========================================================================== */
.web-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.web-pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.web-pricing-card.featured {
  border-color: #0f172a;
  box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px #0f172a;
}

.web-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.web-price-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 14px 0 4px;
  letter-spacing: -0.03em;
}

.web-price-val span {
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 500;
}

.web-pricing-features {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.web-pricing-features li {
  font-size: 0.84375rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   2E. TESTIMONIALS & FAQ
   ========================================================================== */
.web-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.web-testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.web-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.web-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.web-faq-item:hover {
  border-color: #cbd5e1;
}

.web-faq-q {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.web-faq-a {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 10px;
  line-height: 1.6;
  display: none;
}

.web-faq-item.open .web-faq-a {
  display: block;
}

/* Public Footer */
.web-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 64px 28px 32px;
  border-top: 1px solid #1e293b;
}

.web-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.web-footer-title {
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.web-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.web-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.web-footer-links a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   3. ENTERPRISE WEB DASHBOARD (PORTAL VIEW)
   ========================================================================== */
.web-app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: 
    radial-gradient(circle at 12% 10%, rgba(2, 132, 199, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 45% 85%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    #f8fafc;
  position: relative;
}

/* Apple Liquid Glass Floating Bottom-Center Dock (macOS Sonoma / visionOS Dock) — Ultra Transparent */
.web-bottom-dock,
.web-sidebar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  padding: 8px 12px;
  box-shadow: 
    0 20px 48px -8px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1.5px 2px rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.web-bottom-dock-nav,
.web-sidebar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
}

.web-bottom-dock-nav::-webkit-scrollbar,
.web-sidebar-nav::-webkit-scrollbar {
  display: none;
}

.web-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.web-nav-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), inset 0 1px 2px rgba(255, 255, 255, 1);
}

.web-nav-btn.active {
  background: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 100%),
    linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45), inset 0 1.5px 2px rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.web-nav-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-nav-label {
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
}

.web-sidebar-brand,
.web-sidebar-clinic-box,
.web-sidebar-footer {
  display: none;
}

/* Main Content Area — Full width with space for bottom dock */
.web-main-container {
  flex: 1;
  margin-left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 110px; /* Space for the floating bottom dock */
}

.web-topbar {
  height: var(--web-topbar-height);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.04), inset 0 1px 1.5px rgba(255, 255, 255, 0.95);
}

/* Role Selector Pills Styling — Apple Liquid Glass */
.role-pill-web {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #64748b;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.role-pill-web:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}

.role-pill-web.active {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #2563eb;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 1);
  font-weight: 800;
}

.web-content-body {
  flex: 1;
  padding: 32px;
}

/* KPI Cards Grid */
.web-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.web-kpi-card {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.04), inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.web-kpi-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.08), inset 0 1.5px 2px rgba(255, 255, 255, 1);
}

.web-kpi-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px;
}

/* Large Web Tables (DataTables) — Apple Liquid Glass Ultra Transparent */
.web-card {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.05), inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
}

.web-table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
}

.web-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.web-table th {
  padding: 12px 16px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
}

.web-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.web-table tr:hover td {
  background: #f8fafc;
}

/* Badges */
.badge-web {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-web-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-web-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-web-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-web-primary { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Large Odontogram Workspace */
.web-odontogram-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* ==========================================================================
   4. WEB MODAL ENGINE (DESKTOP MODALS)
   ========================================================================== */
.web-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.web-modal-box {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.2), inset 0 1px 2px rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 0.85);
  animation: webModalIn 0.25s ease-out;
}

@keyframes webModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.web-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.web-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.web-modal-close {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.web-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.web-modal-body {
  padding: 24px;
}

.web-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(248, 250, 252, 0.6);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.web-input-group {
  margin-bottom: 16px;
}

.web-input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.web-input-field {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.web-input-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   5. CALENDAR & CHAT LAYOUTS
   ========================================================================== */
.web-calendar-grid {
  display: grid;
  grid-template-columns: 80px repeat(3, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.web-cal-cell {
  background: #ffffff;
  min-height: 60px;
  padding: 8px;
}

.web-cal-header-cell {
  background: #f8fafc;
  padding: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
  text-align: center;
}

.web-cal-app-item {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-bottom: 4px;
  cursor: pointer;
}

.web-cal-app-item:hover {
  background: #dbeafe;
}

/* Chat Layout */
.web-chat-container {
  display: flex;
  flex-direction: column;
  height: 520px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
}

.web-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.web-chat-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.web-chat-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.web-chat-bubble.received {
  align-self: flex-start;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.web-chat-input-bar {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   5B. WEB AUTHENTICATION & LOGIN/REGISTER SCREENS
   ========================================================================== */
.web-auth-wrapper {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(circle at 50% 20%, #f0f9ff 0%, #f8fafc 100%);
}

.web-auth-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12), inset 0 1px 2px rgba(255, 255, 255, 1);
  border-radius: 28px;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

.web-auth-header {
  padding: 32px 32px 20px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.web-auth-logo-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.web-auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin: 20px 32px 0;
  gap: 4px;
}

.web-auth-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.web-auth-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.web-auth-body {
  padding: 28px 32px 32px;
}

.web-auth-quick-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}

.web-quick-role-btn {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.web-quick-role-btn:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

/* ==========================================================================
   5B. PRD DUAL LOGIN (DANIŞMAN & KLİNİK SAHİBİ) & 6-STEP WIZARD STYLES
   ========================================================================== */
.auth-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.auth-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-mode-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* 6-Step Stepper Progress Bar */
.wizard-stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 28px;
  padding: 0 8px;
}

.wizard-stepper-line {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.wizard-stepper-progress {
  position: absolute;
  top: 16px;
  left: 24px;
  height: 3px;
  background: #2563eb;
  z-index: 2;
  transition: width 0.3s ease;
}

.wizard-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wizard-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  font-weight: 800;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wizard-step-node.active .wizard-step-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.wizard-step-node.completed .wizard-step-circle {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.wizard-step-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
}

.wizard-step-node.active .wizard-step-label {
  color: #0f172a;
}

/* Plan Selection Cards in Wizard (PRD Step 4) */
.wizard-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.wizard-plan-item {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.wizard-plan-item:hover {
  border-color: #93c5fd;
}

.wizard-plan-item.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.wizard-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.wizard-plan-title {
  font-weight: 800;
  font-size: 0.9375rem;
  color: #0f172a;
}

.wizard-plan-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e40af;
  margin: 6px 0 4px;
}

.wizard-plan-price span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.wizard-plan-desc {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.4;
}

/* Realistic Credit Card Preview Simulator (PRD Step 5) */
.credit-card-preview-wrapper {
  perspective: 1000px;
  margin-bottom: 24px;
}

.credit-card-preview {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  height: 210px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 18px;
  padding: 22px 26px;
  color: #ffffff;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.credit-card-preview::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 6px;
  position: relative;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 3px;
}

.card-brand-logo {
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-number-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: #f8fafc;
  margin: 14px 0 8px;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-holder-display {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.card-expiry-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #cbd5e1;
}

/* Step 6: Registration & Payment Success Card */
.wizard-success-card {
  text-align: center;
  padding: 16px 8px;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 2px solid #a7f3d0;
}

.clinic-code-container {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 20px;
  margin: 24px 0;
}

.clinic-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 10px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.wizard-action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   7. DENTCELL KLİNİK DANIŞMAN PANELİ (CONSULTANT PRO SUITE)
   ========================================================================== */

/* 6-KPI Summary Grid */
.consultant-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.consultant-kpi-card {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.05), inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.consultant-kpi-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 40px -4px rgba(15, 23, 42, 0.08), inset 0 1.5px 2px rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
}

.consultant-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.consultant-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.consultant-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.consultant-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.consultant-kpi-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Quick Recall & Control Box */
.recall-box {
  background: #f0fdfa;
  border: 1.5px solid #ccfbf1;
  border-radius: 14px;
  padding: 20px;
}

/* A-Z Patient Letter Filter Bar */
.az-filter-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.az-filter-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.az-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.az-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* 2-Step New Patient & Medical Anamnez Form */
.anamnez-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.anamnez-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.anamnez-checkbox-label:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.anamnez-checkbox-label input[type="checkbox"]:checked + span {
  color: #0284c7;
  font-weight: 700;
}

.anamnez-qa-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.anamnez-radio-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.anamnez-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Patient Profile Header & Timeline */
.patient-profile-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 24px 28px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.patient-avatar-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.2);
}

.patient-timeline-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.timeline-step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.timeline-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-step-node.completed .timeline-step-circle {
  background: #ecfdf5;
  color: #059669;
  border: 2px solid #10b981;
}

.timeline-step-node.active .timeline-step-circle {
  background: #0284c7;
  color: #ffffff;
  border: 2px solid #38bdf8;
}

.timeline-arrow {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Patient Profile 9-Tab Navigation */
.patient-tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.patient-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.patient-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.patient-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* FDI Interactive Dental Chart */
.fdi-chart-wrapper {
  background: #0f172a;
  border-radius: 16px;
  padding: 24px;
  color: #ffffff;
}

.fdi-jaw-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fdi-teeth-row {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.fdi-tooth-card {
  height: 56px;
  border-radius: 8px;
  background: #1e293b;
  border: 2px solid #334155;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fdi-tooth-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.fdi-tooth-card.selected {
  background: #0284c7;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.fdi-tooth-num {
  font-size: 0.85rem;
  font-weight: 800;
}

.fdi-tooth-badge {
  font-size: 0.58rem;
  font-weight: 700;
  opacity: 0.95;
}

.fdi-teeth-row {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.fdi-tooth-detail-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fdiDetailFadeIn 0.25s ease-out;
}

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

/* Calendar Suite */
.calendar-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.calendar-grid-weekly {
  display: grid;
  grid-template-columns: 70px repeat(7, minmax(0, 1fr));
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.calendar-col-header {
  background: #f8fafc;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
  border-bottom: 1.5px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.calendar-time-label {
  background: #f8fafc;
  padding: 14px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #e2e8f0;
}

.calendar-slot-cell {
  min-height: 52px;
  padding: 4px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.1s ease;
}

.calendar-slot-cell:hover {
  background: #f0f9ff;
}

.calendar-event-card {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Excel-like Inventory Table */
.excel-table-wrapper {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.excel-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 700;
  text-align: left;
  border-right: 1px solid #334155;
}

.excel-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.excel-table input {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}

.excel-table input:focus {
  background: #eff6ff;
  border-color: #0284c7;
}

/* Notifications Center */
.notif-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.notif-section-card.unread {
  background: #f0fdfa;
  border-color: #99f6e4;
  border-left: 4px solid #0d9488;
}

/* Radiology Gallery */
.radiology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.radiology-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.radiology-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.radiology-preview-box {
  height: 160px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  cursor: pointer;
  position: relative;
}

/* Responsive Overrides */
@media (max-width: 1280px) {
  .consultant-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .anamnez-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   8. DENTCELL KLİNİK SAHİBİ PANELİ (CLINIC OWNER EXECUTIVE SUITE)
   ========================================================================== */

/* 8-KPI Executive Grid */
.owner-kpi-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.owner-kpi-card {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.05), inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.owner-kpi-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 42px -4px rgba(15, 23, 42, 0.08), inset 0 1.5px 2px rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
}

.owner-kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.owner-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.owner-kpi-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.owner-kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.owner-kpi-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 6px;
}

.trend-up {
  background: #ecfdf5;
  color: #059669;
}

.trend-down {
  background: #fef2f2;
  color: #dc2626;
}

/* Visual Bar Chart in Dashboard — Apple Liquid Glass */
.chart-container-box {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 36px -4px rgba(15, 23, 42, 0.05), inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
}

.chart-bar-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 180px;
  padding: 20px 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.chart-bar {
  width: 18px;
  border-radius: 6px 6px 0 0;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-bar-income {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.chart-bar-expense {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.chart-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 8px;
}

/* Owner Plans / Notes Cards */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.note-card {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.04), inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.note-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 36px -4px rgba(15, 23, 42, 0.08);
}

.note-priority-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.note-priority-urgent {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.note-priority-normal {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.note-priority-low {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Doctor & Staff Management Cards */
.doctor-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.doctor-mgmt-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.doctor-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eff6ff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.doctor-shift-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

/* Statistics Quadrant Layout */
.stats-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.stats-quad-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

.stats-progress-row {
  margin-bottom: 12px;
}

.stats-progress-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.stats-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: #0284c7;
  transition: width 0.4s ease;
}

/* Responsive Overrides */
@media (max-width: 1280px) {
  .owner-kpi-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }
  .notes-grid, .doctor-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .web-hero-section {
    grid-template-columns: 1fr;
    padding: 48px 20px 40px;
  }
  .web-features-grid, .web-pricing-grid {
    grid-template-columns: 1fr;
  }
  .consultant-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .owner-kpi-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-quad-grid {
    grid-template-columns: 1fr;
  }
  .anamnez-grid {
    grid-template-columns: 1fr;
  }
  .radiology-grid {
    grid-template-columns: 1fr 1fr;
  }
  .web-footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .web-bottom-dock,
  .web-sidebar {
    bottom: 12px;
    padding: 6px 8px;
    max-width: calc(100vw - 16px);
  }
  .web-nav-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .web-main-container {
    margin-left: 0;
  }
  .web-topbar {
    padding: 0 16px;
  }
  .web-content-body {
    padding: 16px;
  }
  .web-nav-links {
    display: none;
  }
  .consultant-kpi-grid, .owner-kpi-grid-8 {
    grid-template-columns: 1fr;
  }
  .notes-grid, .doctor-cards-grid {
    grid-template-columns: 1fr;
  }
  .radiology-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. DENTCELL CHECKOUT & ONBOARDING WIZARD STYLES
   ========================================================================== */
.checkout-wizard-card {
  max-width: 840px;
  margin: 32px auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.08);
  padding: 36px;
}

.wizard-steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 700;
}

.wizard-step-node.active {
  color: #0284c7;
}

.wizard-step-node.completed {
  color: #059669;
}

.wizard-step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.wizard-step-node.active .wizard-step-bubble {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.wizard-step-node.completed .wizard-step-bubble {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
}

/* Plan Selection Cards */
.plan-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.plan-option-card {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}

.plan-option-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.plan-option-card.selected {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.12);
}

/* Virtual Credit Card Visual */
.virtual-card-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.virtual-card-box::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.virtual-card-chip {
  width: 36px;
  height: 26px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 4px;
  margin-bottom: 16px;
}

.virtual-card-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 700;
}

.virtual-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
}

.checkout-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

/* ==========================================================================
   APPLE LIQUID GLASS IPAD HOME SCREEN & CENTER DOCK BUTTON
   ========================================================================== */
.web-nav-btn.btn-center-clinic {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(2, 132, 199, 0.4);
  padding: 6px 16px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15), inset 0 1px 2px #fff;
  transform: translateY(-2px);
}

.web-nav-btn.btn-center-clinic:hover {
  background: #ffffff;
  border-color: #0284c7;
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.28), inset 0 1px 2px #fff;
}

.web-nav-btn.btn-center-clinic.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.5), inset 0 2px 3px rgba(255,255,255,0.9);
  transform: translateY(-4px) scale(1.04);
}

.web-nav-clinic-thumb {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Collapsible Bottom Dock Styling */
.web-bottom-dock.web-bottom-dock-collapsed {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-toggle-dock {
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0284c7;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-toggle-dock-close {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.btn-toggle-dock-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  transform: scale(1.08);
}

.apple-home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding: 20px;
  position: relative;
  box-sizing: border-box;
}

.apple-glass-master-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 40px;
  padding: 48px 36px;
  max-width: 860px;
  width: 100%;
  box-shadow: 
    0 30px 80px -15px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(255, 255, 255, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: applePopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-glass-master-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.6), transparent 70%);
  pointer-events: none;
}

@keyframes applePopIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.apple-logo-badge {
  width: 130px;
  height: 130px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 20px 40px -10px rgba(2, 132, 199, 0.22),
    inset 0 2px 4px rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  padding: 12px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.apple-logo-badge:hover {
  transform: scale(1.06) rotate(1deg);
}

.apple-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  text-align: left;
}

.apple-widget-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 
    0 10px 25px -5px rgba(15, 23, 42, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.apple-widget-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 
    0 16px 36px -8px rgba(2, 132, 199, 0.12),
    inset 0 1.5px 2px #fff;
}





/* ==========================================================================
   Apple Liquid Glass Dental Odontogram & Proposal Suite (Screenshot 1 & 2)
   ========================================================================== */

.apple-proposal-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1200px) {
  .apple-proposal-layout {
    grid-template-columns: 1fr;
  }
}

.apple-plan-editor {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(35px) saturate(190%);
  -webkit-backdrop-filter: blur(35px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.apple-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.apple-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.apple-tag-pill.blue {
  background: rgba(224, 242, 254, 0.85);
  border-color: rgba(186, 230, 253, 0.9);
  color: #0369a1;
}

.apple-tag-pill.gold {
  background: rgba(254, 243, 199, 0.85);
  border-color: rgba(253, 230, 138, 0.9);
  color: #b45309;
}

.apple-tag-pill.green {
  background: rgba(209, 250, 229, 0.85);
  border-color: rgba(167, 243, 208, 0.9);
  color: #065f46;
}

/* Realistic Anatomical Teeth Stage */
.apple-dental-stage {
  background: #111827;
  border-radius: 24px;
  padding: 24px 16px;
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.6), 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Anatomical Realistic Open Mouth Stage (Transparent PNG Reference) */
.anatomical-mouth-stage {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f8fafc 100%) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 28px !important;
  padding: 16px 10px !important;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.07), inset 0 1px 0 #ffffff !important;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mouth-diagram-interactive-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  user-select: none;
  border-radius: 20px;
  overflow: visible;
}

.mouth-base-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}

.mouth-overlay-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mouth-tooth-hotspot {
  pointer-events: all;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-box: fill-box;
  transform-origin: center center;
}

.mouth-tooth-hotspot .hotspot-shape {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(15, 23, 42, 0.2);
  stroke-width: 1.5;
  transition: all 0.2s ease;
}

.mouth-tooth-hotspot:hover .hotspot-shape {
  fill: rgba(56, 189, 248, 0.35);
  stroke: #0284c7;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(2, 132, 199, 0.6));
}

.mouth-tooth-hotspot.selected .hotspot-shape {
  fill: rgba(2, 132, 199, 0.4);
  stroke: #0284c7;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 14px rgba(2, 132, 199, 0.8));
}

.mouth-tooth-hotspot:hover {
  transform: scale(1.12);
}

.mouth-tooth-hotspot.selected {
  transform: scale(1.18);
}

.mouth-tooth-badge {
  font-family: 'JetBrains Mono', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.apple-dental-arch-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  position: relative;
  z-index: 2;
}

.apple-arch-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  margin: 18px 0;
  position: relative;
}

.apple-tooth-btn {
  background: transparent;
  border: none;
  padding: 4px 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  outline: none;
}

.apple-tooth-btn:hover {
  transform: scale(1.15) translateY(-4px);
  z-index: 10;
}

.apple-tooth-btn.selected {
  transform: scale(1.2) translateY(-6px);
  z-index: 12;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.9));
}

.apple-tooth-svg-wrap {
  width: 28px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.apple-tooth-num-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.apple-tooth-btn:hover .apple-tooth-num-lbl,
.apple-tooth-btn.selected .apple-tooth-num-lbl {
  color: #38bdf8;
  font-weight: 800;
}

/* Selected Tooth Treatment Tag Chips */
.apple-selected-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.apple-tooth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(254, 243, 199, 0.9);
  border: 1px solid rgba(253, 230, 138, 0.9);
  color: #92400e;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apple-tooth-chip.blue {
  background: rgba(224, 242, 254, 0.9);
  border-color: rgba(186, 230, 253, 0.9);
  color: #0369a1;
}

.apple-tooth-chip:hover {
  transform: scale(1.04);
}

.apple-tooth-chip-close {
  opacity: 0.6;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.apple-tooth-chip-close:hover {
  opacity: 1;
  color: #ef4444;
}

/* Apple Realistic Document PDF Sheet (Screenshot 1 Right) */
.apple-doc-sheet {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 30px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0,0,0,0.04);
  color: #0f172a;
  position: relative;
  min-height: 580px;
  animation: applePopIn 0.4s ease-out;
}

.apple-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.apple-doc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apple-doc-meta {
  text-align: right;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.apple-doc-meta strong {
  color: #0f172a;
  font-family: 'JetBrains Mono', monospace;
}

.apple-doc-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}

.apple-doc-mini-chart {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 24px;
}

/* Tooth Zoom Modal / Inspector ("Dişe Tıklayınca Büyüsün") */
.tooth-zoom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: appleFadeIn 0.25s ease-out;
}

.tooth-zoom-modal-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 1);
  border-radius: 36px;
  padding: 32px;
  max-width: 620px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.25), inset 0 2px 5px rgba(255, 255, 255, 1);
  position: relative;
  animation: appleZoomUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appleZoomUp {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes appleFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tooth-zoom-preview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: inset 0 10px 30px rgba(0,0,0,0.5), 0 10px 25px rgba(2, 132, 199, 0.15);
}

.tooth-zoom-svg {
  width: 140px;
  height: 180px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
  animation: toothPulse 2.5s ease-in-out infinite;
}

@keyframes toothPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}


/* APPLE LIQUID GLASS EXPANSIVE MASTER CARD (ZEN CLINIC SCREEN) */
.apple-home-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(circle at 50% 30%, rgba(240, 249, 255, 0.8) 0%, rgba(241, 245, 249, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

.apple-glass-master-card {
  width: 100%;
  max-width: 960px;
  min-height: 520px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 40px;
  padding: 64px 48px;
  box-shadow: 0 30px 80px -15px rgba(15, 23, 42, 0.08), 
              0 0 0 1px rgba(255, 255, 255, 0.8) inset,
              0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.apple-logo-badge {
  width: 108px;
  height: 108px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 1);
  box-shadow: 0 12px 32px -4px rgba(2, 132, 199, 0.15), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: transform 0.3s ease;
}

.apple-logo-badge:hover {
  transform: scale(1.05);
}


/* --- Tam ekran butonu (giriş yapılmışken sağ alt köşe) --- */
.web-fullscreen-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.web-fullscreen-btn:hover { transform: translateY(-2px); background: #0284c7; color: #fff; }
.web-fullscreen-btn:focus-visible { outline: 3px solid rgba(2, 132, 199, 0.4); outline-offset: 2px; }
@media (max-width: 640px) {
  .web-fullscreen-btn { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}


/* --- Bildirim zili ve paneli --- */
.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: content-box;
}

.notif-panel {
  position: fixed;
  z-index: 9500;
  max-height: min(520px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.3);
  overflow: hidden;
  animation: notif-in 0.16s ease-out;
}
@keyframes notif-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.notif-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #0f172a;
}
.notif-mark-all {
  border: none;
  background: none;
  color: #0284c7;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.notif-mark-all:hover:not(:disabled) { background: #f0f9ff; }
.notif-mark-all:disabled { color: #94a3b8; cursor: default; }
#notif-page .notif-mark-all { padding: 8px 14px; }

.notif-list { overflow-y: auto; padding: 6px; }
.notif-list-page { padding: 0; display: flex; flex-direction: column; gap: 6px; }

.notif-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  position: relative;
  transition: background 0.12s ease;
}
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #f0f9ff; }
.notif-item.unread:hover { background: #e0f2fe; }

.notif-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0284c7;
}
.notif-type-patient .notif-item-icon { background: #dcfce7; color: #16a34a; }
.notif-type-doctor .notif-item-icon { background: #ede9fe; color: #7c3aed; }

.notif-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif-item-title { font-size: 0.85rem; font-weight: 800; color: #0f172a; }
.notif-item-msg { font-size: 0.8rem; color: #334155; line-height: 1.45; overflow-wrap: anywhere; }
.notif-item-meta { font-size: 0.7rem; color: #94a3b8; margin-top: 2px; }
.notif-item-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #0284c7; margin-top: 6px; }

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 16px;
  color: #94a3b8;
  font-size: 0.85rem;
}


/* ==========================================================================
   Ağız içi diş planı v2 — şeffaf görseller, ölçülmüş diş konumları,
   yetişkin / çocuk şeması ve yeniden tasarlanmış odontogram
   ========================================================================== */
.anatomical-mouth-stage {
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #f1f5f9 100%) !important;
  padding: 22px 12px !important;
}
.mouth-base-img { filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.12)); -webkit-user-drag: none; }

.mouth-tooth-hotspot .hotspot-shape {
  fill: rgba(255, 255, 255, 0);
  stroke: rgba(255, 255, 255, 0.0);
  stroke-width: 3;
}
.mouth-tooth-hotspot .hotspot-label { opacity: 0.9; transition: opacity 0.15s ease; }
.mouth-tooth-hotspot:hover .hotspot-label,
.mouth-tooth-hotspot.selected .hotspot-label { opacity: 1; }
.mouth-tooth-hotspot:hover .hotspot-shape { fill: rgba(56, 189, 248, 0.22); stroke: #0284c7; stroke-width: 4; }
.mouth-tooth-hotspot.selected .hotspot-shape { fill: rgba(2, 132, 199, 0.28); stroke: #0284c7; stroke-width: 5; }
.mouth-tooth-hotspot.treated .hotspot-shape { stroke-width: 4; }
.mouth-tooth-hotspot.status-crown .hotspot-shape { stroke: #f59e0b; fill: rgba(245, 158, 11, 0.18); }
.mouth-tooth-hotspot.status-implant .hotspot-shape { stroke: #0284c7; fill: rgba(2, 132, 199, 0.18); }
.mouth-tooth-hotspot.status-filling .hotspot-shape { stroke: #10b981; fill: rgba(16, 185, 129, 0.18); }
.mouth-tooth-hotspot.status-rootcanal .hotspot-shape { stroke: #ea580c; fill: rgba(234, 88, 12, 0.18); }
.mouth-tooth-hotspot.status-caries .hotspot-shape { stroke: #92400e; fill: rgba(146, 64, 14, 0.18); }
.mouth-tooth-hotspot.status-extracted .hotspot-shape { stroke: #ef4444; fill: rgba(239, 68, 68, 0.14); stroke-dasharray: 8 6; }
.mouth-tooth-hotspot.virtual .hotspot-shape { stroke: rgba(15, 23, 42, 0.35); stroke-dasharray: 6 6; fill: rgba(255, 255, 255, 0.35); }
.mouth-tooth-hotspot:hover,
.mouth-tooth-hotspot.selected { transform: none; }

/* Yetişkin / Çocuk seçici */
.dentition-switch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.dentition-switch {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.dentition-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.dentition-btn small { font-size: 0.68rem; font-weight: 600; color: #94a3b8; }
.dentition-btn:hover { color: #0f172a; }
.dentition-btn.active { background: #ffffff; color: #0284c7; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1); }
.dentition-btn.active small { color: #38bdf8; }
.dentition-hint { font-size: 0.75rem; color: #64748b; }

/* Teklif belgesindeki odontogram */
.mini-odonto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 8px 10px;
}
.mini-odonto-caption { font-size: 0.66rem; font-weight: 800; color: #94a3b8; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.mini-odonto-row { display: flex; align-items: flex-end; justify-content: center; gap: 1px; }
.mini-odonto-row.lower { align-items: flex-start; }
.mini-odonto-tooth { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; border-radius: 6px; padding: 2px 0; }
.mini-odonto-tooth.midline { margin-left: 6px; }
.mini-odonto-tooth.treated { background: rgba(2, 132, 199, 0.06); }
.mini-odonto-svg { width: 100%; height: 48px; }
.mini-odonto-num { font-size: 0.55rem; font-weight: 700; color: #94a3b8; font-family: 'JetBrains Mono', monospace; line-height: 1; }
.mini-odonto-tooth.treated .mini-odonto-num { color: #0284c7; }
.mini-odonto-occlusal { width: 92%; height: 1px; background: repeating-linear-gradient(90deg, #cbd5e1 0 6px, transparent 6px 10px); margin: 2px 0; }
.mini-odonto-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 8px; font-size: 0.62rem; color: #64748b; font-weight: 600; }
.mini-odonto-legend span { display: inline-flex; align-items: center; gap: 4px; }
.mini-odonto-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

.tooth-zoom-svg { filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.25)); }


/* ==========================================================================
   Tedavi kataloğu (diş penceresi) — ana başlık > alt başlık > işlem
   ========================================================================== */
.tx-picker { margin: 4px 0 18px; border: 1px solid #e2e8f0; border-radius: 16px; background: #ffffff; overflow: hidden; }
.tx-picker-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px 6px; font-size: 0.78rem; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; }
.tx-hint { font-size: 0.7rem; font-weight: 600; color: #94a3b8; text-transform: none; letter-spacing: 0; }
.tx-selected { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px 12px; max-height: 170px; overflow-y: auto; }
.tx-empty { font-size: 0.78rem; color: #94a3b8; padding: 6px 0; }
.tx-chip { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; border-radius: 10px; background: #f8fafc; border-left: 4px solid #7c3aed; font-size: 0.8rem; }
.tx-chip-extracted { border-left-color: #ef4444; } .tx-chip-implant { border-left-color: #0284c7; } .tx-chip-crown { border-left-color: #f59e0b; }
.tx-chip-rootcanal { border-left-color: #ea580c; } .tx-chip-filling { border-left-color: #10b981; }
.tx-chip-cat { font-size: 0.66rem; font-weight: 800; color: #64748b; text-transform: uppercase; white-space: nowrap; }
.tx-chip-name { font-weight: 700; color: #0f172a; min-width: 0; overflow-wrap: anywhere; }
.tx-chip-price { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #0f172a; white-space: nowrap; }
.tx-remove { width: 24px; height: 24px; border-radius: 8px; border: none; background: transparent; color: #94a3b8; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.tx-remove:hover { background: #fee2e2; color: #dc2626; }

.tx-search { display: flex; align-items: center; gap: 8px; margin: 0 14px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; color: #94a3b8; }
.tx-search:focus-within { border-color: #0284c7; background: #fff; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12); }
.tx-search input { flex: 1; border: none; background: transparent; padding: 10px 0; font: inherit; font-size: 0.85rem; color: #0f172a; outline: none; min-width: 0; }

.tx-tree { max-height: 320px; overflow-y: auto; padding: 8px 8px 10px; margin-top: 8px; border-top: 1px solid #f1f5f9; contain: content; }
.tx-loading { padding: 16px; text-align: center; font-size: 0.8rem; color: #94a3b8; }
.tx-cat > summary, .tx-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; user-select: none; }
.tx-cat > summary::-webkit-details-marker, .tx-group > summary::-webkit-details-marker { display: none; }
.tx-cat > summary { padding: 10px 10px; border-radius: 10px; font-size: 0.86rem; font-weight: 800; color: #0f172a; letter-spacing: 0.02em; text-transform: uppercase; }
.tx-cat > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(-45deg); transition: transform 0.15s ease; flex-shrink: 0; }
.tx-cat[open] > summary::before { transform: rotate(45deg); }
.tx-cat > summary:hover { background: #f1f5f9; }
.tx-cat-name { flex: 1; }
.tx-count { margin-left: auto; font-size: 0.68rem; font-weight: 700; color: #94a3b8; background: #f1f5f9; padding: 1px 7px; border-radius: 999px; text-transform: none; }
.tx-group { margin-left: 14px; border-left: 2px solid #e2e8f0; }
.tx-group > summary { padding: 7px 10px; font-size: 0.82rem; font-weight: 700; color: #334155; }
.tx-group > summary:hover { color: #0284c7; }
.tx-plus { width: 18px; height: 18px; border-radius: 6px; background: #dcfce7; color: #16a34a; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; flex-shrink: 0; }
.tx-group[open] > summary .tx-plus { background: #e0f2fe; color: #0284c7; }
.tx-items { display: flex; flex-direction: column; padding: 2px 4px 8px 16px; }
.tx-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: none; background: transparent; padding: 7px 10px; border-radius: 8px; font: inherit; font-size: 0.8rem; color: #1e293b; cursor: pointer; }
.tx-item:hover { background: #f0f9ff; color: #0369a1; }
.tx-item.added { background: #f0fdf4; }
.tx-item.added .tx-item-name::before { content: '✓ '; color: #16a34a; font-weight: 800; }
.tx-item-name { min-width: 0; }
.tx-tag { flex-shrink: 0; font-size: 0.62rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #ede9fe; color: #6d28d9; }
.tx-tag-extracted { background: #fee2e2; color: #b91c1c; } .tx-tag-implant { background: #e0f2fe; color: #0369a1; } .tx-tag-crown { background: #fef3c7; color: #b45309; }
.tx-tag-rootcanal { background: #ffedd5; color: #c2410c; } .tx-tag-filling { background: #dcfce7; color: #15803d; }

/* Plan ve teklif tablosunda ana başlık satırları */
.plan-cat-row td { background: #f8fafc; font-weight: 800; color: #0f172a; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.plan-cat-plus { display: inline-flex; width: 16px; height: 16px; border-radius: 5px; background: #dcfce7; color: #16a34a; align-items: center; justify-content: center; margin-right: 8px; font-size: 0.75rem; }
.plan-cat-count { font-size: 0.68rem; font-weight: 600; color: #94a3b8; text-transform: none; margin-left: 6px; letter-spacing: 0; }
.doc-cat-row td { padding: 10px 0 4px; font-size: 0.72rem; font-weight: 800; color: #0284c7; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1.5px solid #e0f2fe; }

/* "Diğer işlem" durumu (görsel değişikliği olmayan işlemler) */
.mouth-tooth-hotspot.status-procedure .hotspot-shape { stroke: #7c3aed; fill: rgba(124, 58, 237, 0.16); }


/* Diş penceresi: ekrana sığan iki sütunlu düzen (solda diş ve hızlı seçim, sağda tedavi listesi) */
.tooth-zoom-modal-backdrop { padding: 16px; }
.tooth-zoom-modal-card {
  max-width: 1080px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border-radius: 28px;
}
.tooth-zoom-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 20px;
}
.tooth-zoom-left { min-height: 0; overflow-y: auto; padding-right: 4px; }
.tooth-zoom-left .tooth-zoom-preview-container { padding: 14px; margin-bottom: 14px; border-radius: 22px; }
.tooth-zoom-left .tooth-zoom-svg { width: 96px; height: 124px; }
.tooth-zoom-left > div[style*="grid-template-columns: 1fr 1fr"] { gap: 8px !important; margin-bottom: 4px !important; }
.tooth-zoom-left .btn-apply-tooth-action { padding: 8px 10px !important; font-size: 0.78rem !important; }
.tooth-zoom-right { min-height: 0; display: flex; }
.tooth-zoom-right .tx-picker { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; }
.tooth-zoom-right .tx-selected { max-height: 132px; flex-shrink: 0; }
.tooth-zoom-right .tx-search { flex-shrink: 0; }
.tooth-zoom-right .tx-tree { flex: 1; min-height: 0; max-height: none; overscroll-behavior: contain; }
.tooth-zoom-save { flex-shrink: 0; margin-top: 14px; }

@media (max-width: 860px) {
  .tooth-zoom-modal-card { overflow-y: auto; padding: 18px; }
  .tooth-zoom-body { display: block; }
  .tooth-zoom-left { overflow: visible; padding: 0; }
  .tooth-zoom-right .tx-tree { max-height: 50vh; }
}

/* Hızlı işlemler (tedavi listesinin üstü) */
.tx-quick-head { padding: 0 14px 6px; font-size: 0.7rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.tx-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; flex-shrink: 0; }
.tx-quick:empty { display: none; }
.tx-item.tx-quick-item { width: auto; padding: 6px 11px; border-radius: 999px; border: 1px solid #e2e8f0; background: #ffffff; font-size: 0.76rem; font-weight: 700; color: #334155; justify-content: center; }
.tx-item.tx-quick-item:hover { border-color: #0284c7; background: #f0f9ff; color: #0369a1; }
.tx-quick-filling { border-left: 3px solid #10b981 !important; } .tx-quick-rootcanal { border-left: 3px solid #ea580c !important; }
.tx-quick-extracted { border-left: 3px solid #ef4444 !important; } .tx-quick-crown { border-left: 3px solid #f59e0b !important; }
.tx-quick-implant { border-left: 3px solid #0284c7 !important; } .tx-quick-procedure { border-left: 3px solid #7c3aed !important; }
.tx-item.tx-quick-item.added { background: #f0fdf4; border-color: #86efac; }


/* ==========================================================================
   PERFORMANS: Cam bulanıklığı (backdrop-filter) her kaydırmada tüm ekranı yeniden
   boyattığı için kapatıldı; yerine neredeyse opak arka planlar kullanılır.
   Büyük gölge filtreleri ve sonsuz animasyonlar kaldırıldı.
   ========================================================================== */
*, *::before, *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.web-topbar, .web-navbar, .web-bottom-dock, .web-sidebar,
.notif-panel, .web-fullscreen-btn, .tooth-zoom-modal-card, .web-modal-box {
  background-color: rgba(255, 255, 255, 0.97) !important;
}
.web-modal-backdrop, .tooth-zoom-modal-backdrop { background: rgba(15, 23, 42, 0.62) !important; }
.mouth-base-img { filter: none !important; height: auto; }
.tooth-zoom-svg { animation: none !important; filter: none !important; }
.web-card, .apple-doc-sheet, .apple-plan-editor { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Orta "Klinik" butonu: dock'un üstüne taşan çıkıntı (kırpılmadan) */
.web-bottom-dock-nav, .web-sidebar-nav { padding-top: 6px; padding-bottom: 6px; margin-top: -6px; margin-bottom: -6px; }
.dock-center-slot { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
.web-nav-btn.btn-center-clinic,
.web-nav-btn.btn-center-clinic:hover,
.web-nav-btn.btn-center-clinic.active { transform: none; }
.web-nav-btn.btn-center-clinic.active { box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45), inset 0 2px 3px rgba(255,255,255,0.9); }
.web-nav-btn.btn-center-clinic:hover { box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3), inset 0 1px 2px #fff; }
@media (min-width: 1100px) {
  .web-bottom-dock-nav, .web-sidebar-nav { overflow: visible; }
  .web-bottom-dock:not(.web-bottom-dock-collapsed)::before {
    content: ''; position: absolute; left: var(--dock-hump-x, 50%); top: -22px; width: var(--dock-hump-w, 150px); height: 46px;
    transform: translateX(-50%); border-radius: 9999px 9999px 0 0;
    background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(32px) saturate(210%); -webkit-backdrop-filter: blur(32px) saturate(210%);
    border: 1.5px solid rgba(255, 255, 255, 0.9); border-bottom: none;
    box-shadow: 0 -6px 16px -6px rgba(15, 23, 42, 0.12); pointer-events: none; z-index: -1;
  }
  .dock-center-slot { transform: translateY(-15px); }
  .web-nav-btn.btn-center-clinic { padding: 9px 18px; }
}
.doctor-avatar-circle { background: transparent; overflow: hidden; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }
.doctor-avatar-circle svg { display: block; }

/* Klinik çıkıntısı — sade sürüm */
@media (min-width: 1100px) {
  .web-bottom-dock:not(.web-bottom-dock-collapsed)::before {
    top: -9px; height: 26px; width: var(--dock-hump-w, 140px);
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.85); border-bottom: none;
    box-shadow: 0 -4px 10px -6px rgba(15, 23, 42, 0.10);
  }
  .dock-center-slot { transform: translateY(-6px); }
  .web-nav-btn.btn-center-clinic { padding: 7px 16px; }
}
.web-nav-btn.btn-center-clinic:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(15, 23, 42, 0.05);
}
.web-nav-btn.btn-center-clinic.active { box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35), inset 0 1px 2px rgba(255,255,255,0.8); }
.web-nav-clinic-thumb { width: 22px; height: 22px; border-radius: 6px; background: #fff; }

/* Randevu durum seçici */
.appt-status-select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 0.72rem; font-weight: 800; padding: 4px 24px 4px 10px; border-radius: 999px; border: 1px solid; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 8px center !important; }
.appt-status-select:focus { outline: 2px solid rgba(2, 132, 199, 0.35); outline-offset: 1px; }
.appt-status-select option { background: #fff; color: #0f172a; font-weight: 600; }

/* Tek tuşla demo girişi */
.demo-login-box { margin-top: 18px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #f0f9ff 0%, #eef2ff 100%); border: 1px solid #dbeafe; }
.demo-login-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.86rem; color: #0f172a; }
.demo-login-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.demo-login-sub { font-size: 0.75rem; color: #64748b; margin: 4px 0 12px; }
.demo-login-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.btn-demo-login { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #0284c7; cursor: pointer; font: inherit; text-align: left; transition: all .18s ease; }
.btn-demo-login span { display: flex; flex-direction: column; line-height: 1.15; }
.btn-demo-login b { font-size: 0.78rem; color: #0f172a; }
.btn-demo-login small { font-size: 0.66rem; color: #94a3b8; }
.btn-demo-login:hover { border-color: #0284c7; box-shadow: 0 6px 16px rgba(2,132,199,.15); transform: translateY(-1px); }
.btn-demo-login:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) { .demo-login-roles { grid-template-columns: 1fr; } }

/* Diş penceresi: Tedaviler / Radyoloji İste */
.tx-mode-tabs { display: inline-flex; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; margin-bottom: 10px; align-self: flex-start; }
.tx-mode { white-space: nowrap; border: none; background: #fff; padding: 8px 16px; font: inherit; font-size: .82rem; font-weight: 800; color: #475569; cursor: pointer; }
.tx-mode + .tx-mode { border-left: 1px solid #e2e8f0; }
.tx-mode.active { background: #0284c7; color: #fff; }
.tx-rad { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; }
.tx-rad[hidden], .tx-picker[hidden] { display: none !important; }
.tx-rad-note { font: inherit; font-size: .82rem; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 10px; }
.tx-rad-all { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; border: 1px solid #f1f5f9; border-radius: 10px; }
.tx-rad-all .tx-tag { background: #e0f2fe; color: #0369a1; }
.tx-rad-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 6px; font-size: .8rem; }
.tx-rad-row small { grid-column: 1 / -1; color: #94a3b8; font-size: .7rem; }
.tx-rad-st { font-size: .68rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.tx-rad-st.st-pending { background: #fffbeb; color: #b45309; } .tx-rad-st.st-done { background: #ecfdf5; color: #047857; } .tx-rad-st.st-cancelled { background: #f1f5f9; color: #64748b; }
.tx-rad-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tx-rad-img { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; padding: 0; background: #000; cursor: pointer; display: flex; flex-direction: column; font: inherit; }
.tx-rad-img img { width: 100%; height: 64px; object-fit: contain; }
.tx-rad-img span { background: #fff; font-size: .68rem; font-weight: 700; padding: 4px 6px; color: #0f172a; text-align: left; }

/* Toplu diş seçimi */
.bulk-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #bae6fd; background: #f0f9ff; color: #0369a1; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.bulk-toggle.active { background: #0284c7; color: #fff; border-color: #0284c7; box-shadow: 0 6px 16px rgba(2,132,199,.3); }
.bulk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, #f0f9ff, #eef2ff); border: 1px solid #bfdbfe; }
.bulk-count { font-size: .85rem; color: #0f172a; margin-right: 4px; } .bulk-count b { color: #0284c7; font-size: 1rem; }
.bulk-sel { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .76rem; font-weight: 700; color: #334155; cursor: pointer; }
.bulk-sel:hover { border-color: #0284c7; color: #0284c7; }
.bulk-hint { font-size: .72rem; color: #64748b; }
.bulk-apply { margin-left: auto; border: none; background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; border-radius: 10px; padding: 9px 16px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.bulk-apply:disabled { opacity: .45; cursor: not-allowed; }
.bulk-teeth { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.bulk-teeth span { font-family: 'JetBrains Mono', monospace; font-size: .74rem; font-weight: 700; background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 6px; }
.bulk-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 14px; }
.bulk-quick .bulk-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; text-align: left; }
.bulk-quick .bulk-tx:hover { border-color: #0284c7; background: #f0f9ff; }
.bulk-quick b { font-size: .84rem; color: #0f172a; } .bulk-quick small { font-size: .7rem; color: #64748b; }
.bulk-results { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; border: 1px solid #f1f5f9; border-radius: 10px; margin-top: 8px; }
.bulk-footer-actions { margin-top: 14px; display: flex; justify-content: flex-end; }

/* Diş penceresi: işleme tıklayınca açılan küçük pencere */
.tx-picker { position: relative; }
.tx-pop { position: absolute; left: 12px; right: 12px; z-index: 30; background: #fff; border: 1px solid #bfdbfe; border-radius: 14px; box-shadow: 0 18px 40px rgba(15,23,42,.18); padding: 12px; display: flex; flex-direction: column; gap: 10px; animation: txPopIn .14s ease; }
@keyframes txPopIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tx-pop-head { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.tx-pop-head b { font-size: .88rem; color: #0f172a; }
.tx-pop-head small { grid-column: 1; font-size: .7rem; color: #64748b; }
.tx-pop-x { grid-row: 1 / span 2; grid-column: 2; border: none; background: #f1f5f9; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; color: #64748b; }
.tx-pop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tx-pop-actions button { border: none; border-radius: 10px; padding: 10px; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.tx-pop-add { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; }
.tx-pop-rad { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe !important; }
.tx-pop-radbox { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed #e2e8f0; padding-top: 10px; }
.tx-pop-types { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-pop-types button { border: 1px solid #ddd6fe; background: #faf5ff; color: #6d28d9; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.tx-pop-types button:hover { background: #6d28d9; color: #fff; }
.tx-pop-more, .tx-pop-note { font: inherit; font-size: .8rem; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; }

/* Tedavi aşaması rozetleri */
.tx-phase { border: 1px solid; border-radius: 999px; padding: 2px 9px; font: inherit; font-size: .66rem; font-weight: 800; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: transform .1s ease; }
.tx-phase:active { transform: scale(.95); }
.tx-phase.phase-planned { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
.tx-phase.phase-started { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tx-phase.phase-done { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.tx-chip { grid-template-columns: auto 1fr auto auto auto; }
.btn-change-doctor { margin-left: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 2px 10px; font: inherit; font-size: .7rem; font-weight: 700; cursor: pointer; }
.btn-change-doctor:hover { background: rgba(255,255,255,.25); }

/* SağlıkCell kelime logo */
.web-brand-wordmark { height: 44px; width: auto; display: block; }
@media (max-width: 760px) { .web-brand-wordmark { height: 34px; } }

/* Ayarlar alt sekmeleri (Klinik Ayarları / Hekimler / Danışmanlar) */
.settings-subtabs { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 2px 10px rgba(15,23,42,.04); max-width: 100%; overflow-x: auto; }
.settings-subtab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #475569; font: inherit; font-size: .86rem; font-weight: 700; padding: 9px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.settings-subtab svg { width: 17px; height: 17px; }
.settings-subtab:hover { background: #f1f5f9; color: #0f172a; }
.settings-subtab.active { background: #0f172a; color: #fff; }
@media (max-width: 760px) { .settings-subtabs { display: flex; } .settings-subtab { padding: 8px 12px; font-size: .8rem; } }

/* Plan tablosu: işlem hekimi ve elle fiyat */
.tx-doc-sel { margin-top: 5px; font: inherit; font-size: .72rem; font-weight: 600; color: #64748b; padding: 3px 8px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; max-width: 200px; cursor: pointer; }
.tx-doc-sel.set { color: #0369a1; border-style: solid; border-color: #bae6fd; background: #f0f9ff; }
.tx-price-in { width: 104px; text-align: right; font: inherit; font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: #0f172a; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.tx-price-in:hover, .tx-price-in:focus { border-color: #cbd5e1; background: #fff; outline: none; }
.tx-price-in.empty { border: 1px dashed #f59e0b; background: #fffbeb; }
.tx-price-in.empty::placeholder { color: #b45309; font-family: inherit; }
.tx-doc-default { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .76rem; font-weight: 700; color: #334155; margin: 2px 0 10px; }
.tx-doc-default small { font-weight: 500; color: #94a3b8; }
.tx-doc-default select { flex: 1; min-width: 160px; font: inherit; font-size: .8rem; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; }

/* Rol seçimli giriş */
.login-role-label { font-size: .74rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.login-roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 18px; }
.login-role { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid #e2e8f0; background: #fff; color: #475569; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; transition: all .15s ease; }
.login-role svg { width: 20px; height: 20px; }
.login-role:hover { border-color: #93c5fd; color: #0f172a; }
.login-role.active { border-color: #1d6fe0; background: #eff6ff; color: #1d4ed8; box-shadow: 0 4px 14px -6px rgba(29,111,224,.5); }
.login-role-title { font-size: 1.02rem; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.btn-demo-login.demo-one { width: 100%; margin-top: 10px; justify-content: center; padding: 11px; }
@media (max-width: 480px) { .login-roles { grid-template-columns: repeat(3, 1fr); } }

.demo-one-row { display: flex; gap: 8px; }
.demo-one-row .btn-demo-login.demo-one { flex: 1; }
.demo-one-row .btn-demo-login[hidden] { display: none; }
.login-roles { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 480px) { .login-roles { grid-template-columns: repeat(2, 1fr); } .demo-one-row { flex-direction: column; } }

/* Hamilelik seçimi (yeni hasta) */
.preg-row { align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 14px; padding: 10px 12px; border: 1px solid #fbcfe8; background: #fdf2f8; border-radius: 12px; }
.preg-label { font-size: 0.8rem; font-weight: 800; color: #9d174d; }
.preg-seg { display: inline-flex; background: #fff; border: 1px solid #f9a8d4; border-radius: 10px; padding: 3px; gap: 3px; }
.preg-opt { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 0.8rem; font-weight: 700; color: #9d174d; cursor: pointer; }
.preg-opt.on { background: #db2777; color: #fff; box-shadow: 0 4px 10px -4px rgba(219,39,119,.6); }
.preg-month { width: auto !important; min-width: 130px; margin: 0 !important; }
.preg-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fce7f3; color: #be185d; font-size: 0.72rem; font-weight: 800; }

/* Tüm tedaviler fiyat listesi */
.pl-card { border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; padding: 14px; }
.pl-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.pl-head b { display: block; font-size: .95rem; color: #0f172a; font-weight: 800; }
.pl-head small { display: block; font-size: .74rem; color: #64748b; margin-top: 2px; line-height: 1.45; }
.pl-stat { flex: none; font-size: .7rem; font-weight: 800; color: #0369a1; background: #e0f2fe; border-radius: 999px; padding: 3px 9px; }
.pl-stat:empty { display: none; }
.pl-search { position: relative; margin-bottom: 10px; }
.pl-search svg { position: absolute; left: 11px; top: 11px; color: #94a3b8; }
.pl-search input { width: 100%; box-sizing: border-box; padding: 9px 12px 9px 34px; border: 1.5px solid #e2e8f0; border-radius: 10px; font: inherit; font-size: .84rem; background: #fff; outline: none; }
.pl-search input:focus { border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2,132,199,.12); }
.pl-body { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.pl-cat { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
.pl-cat summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; cursor: pointer; font-weight: 800; font-size: .84rem; color: #0f172a; list-style: none; }
.pl-cat summary::-webkit-details-marker { display: none; }
.pl-cat summary em { font-style: normal; font-size: .7rem; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; }
.pl-cat[open] summary { border-bottom: 1px solid #f1f5f9; }
.pl-cat-body { padding: 4px 10px 10px; }
.pl-group { font-size: .68rem; font-weight: 800; color: #0284c7; text-transform: uppercase; letter-spacing: .03em; margin: 10px 2px 4px; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 5px 2px; border-bottom: 1px dashed #f1f5f9; }
.pl-name { flex: 1; min-width: 0; font-size: .8rem; color: #334155; }
.pl-inp { position: relative; flex: none; }
.pl-inp input { width: 110px; padding: 6px 22px 6px 8px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: .8rem; font-weight: 700; color: #0f172a; text-align: right; outline: none; }
.pl-inp input:focus { border-color: #0284c7; }
.pl-inp input:not(:placeholder-shown) { background: #f0f9ff; border-color: #7dd3fc; }
.pl-inp i { position: absolute; right: 8px; top: 7px; font-style: normal; font-size: .72rem; color: #94a3b8; }
.pl-empty { padding: 16px; text-align: center; color: #94a3b8; font-size: .8rem; }
.bulk-tree { display: flex; flex-direction: column; gap: 6px; }

/* Ajanda: haftalık / günlük görünüm */
.cal-view-seg { display: inline-flex; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 10px; padding: 3px; gap: 2px; }
.cal-view-btn { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font: inherit; font-size: .82rem; font-weight: 700; color: #475569; cursor: pointer; }
.cal-view-btn.on { background: #0284c7; color: #fff; box-shadow: 0 4px 10px -4px rgba(2,132,199,.6); }
.cal-day-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; max-height: 72vh; overflow-y: auto; }
.cal-day-grid { display: grid; min-width: max-content; }
.cal-day-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; border-left: 1px solid #f1f5f9; }
.cal-day-corner { justify-content: center; font-weight: 800; color: #475569; font-size: .8rem; left: 0; z-index: 3; border-left: 0; }
.cal-day-head b { display: block; font-size: .82rem; color: #0f172a; font-weight: 800; white-space: nowrap; }
.cal-day-head small { display: block; font-size: .68rem; color: #64748b; }
.cal-day-av { width: 30px; height: 30px; border-radius: 9px; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #0284c7, #0d9488); color: #fff; font-weight: 800; font-size: .8rem; }
.cal-day-av img { width: 100%; height: 100%; object-fit: cover; }
.cal-day-time { position: sticky; left: 0; z-index: 1; background: #fff; font-size: .7rem; font-weight: 800; color: #64748b; padding: 4px 8px; text-align: right; border-top: 1px solid #f1f5f9; min-height: 34px; box-sizing: border-box; }
.cal-day-time.now { color: #dc2626; }
.cal-day-cell { border-top: 1px solid #f1f5f9; border-left: 1px solid #f1f5f9; min-height: 34px; padding: 2px; box-sizing: border-box; }
.cal-day-cell.now { background: #fef2f2; }
.cal-day-cell.btn-cal-slot-book { cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-day-cell.btn-cal-slot-book span { color: transparent; font-weight: 800; }
.cal-day-cell.btn-cal-slot-book:hover { background: #f0f9ff; }
.cal-day-cell.btn-cal-slot-book:hover span { color: #0284c7; }
.cal-day-appt { border-left: 3px solid; border-radius: 6px; padding: 4px 7px; cursor: pointer; margin-bottom: 2px; }
.cal-day-appt b { display: block; font-size: .72rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day-appt small { display: block; font-size: .64rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Kayıt › Ödeme adımı */
.pay5 { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.pay5-head { text-align: center; }
.pay5-head h2 { font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em; margin: 0; }
.pay5-head p { font-size: .88rem; color: #64748b; margin: 6px 0 0; }
.pay5-plan { display: flex; justify-content: space-between; align-items: stretch; gap: 16px; padding: 20px 22px; border-radius: 18px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2563eb 0%, #1e40af 50%, #0f172a 100%); box-shadow: 0 18px 40px -22px rgba(30, 64, 175, .9); flex-wrap: wrap; }
.pay5-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #bfdbfe; }
.pay5-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; line-height: 1; }
.pay5-price small { font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .7); letter-spacing: 0; }
.pay5-desc { font-size: .8rem; color: rgba(255, 255, 255, .72); margin-top: 6px; }
.pay5-total { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .18); }
.pay5-total span { font-size: .72rem; color: rgba(255, 255, 255, .7); font-weight: 700; }
.pay5-total b { font-size: 1.45rem; font-weight: 800; margin: 2px 0; }
.pay5-total small { font-size: .7rem; color: #a7f3d0; font-weight: 700; }
.pay5-rows { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.pay5-rows div { background: #fff; padding: 10px 14px; min-width: 0; }
.pay5-rows dt { font-size: .68rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.pay5-rows dd { margin: 2px 0 0; font-size: .86rem; font-weight: 700; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay5-fields { display: flex; flex-direction: column; gap: 10px; }
.pay5-field { display: flex; flex-direction: column; gap: 6px; }
.pay5-field span { font-size: .8rem; font-weight: 700; color: #334155; }
.pay5-field em { font-style: normal; font-weight: 600; color: #94a3b8; margin-left: 4px; }
.pay5-field input, .pay5-promo input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; font: inherit; font-size: .95rem; color: #0f172a; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.pay5-field input:focus, .pay5-promo input:focus { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.pay5-field input::placeholder, .pay5-promo input::placeholder { color: #94a3b8; font-family: inherit; letter-spacing: 0; }
.pay5-promo summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: #2563eb; list-style: none; padding: 4px 0; }
.pay5-promo summary::-webkit-details-marker { display: none; }
.pay5-promo summary::before { content: '+ '; }
.pay5-promo[open] summary::before { content: '− '; }
.pay5-promo .prd-promo-row { display: flex; gap: 8px; margin-top: 8px; }
.pay5-consent { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; }
.pay5-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: #475569; line-height: 1.5; cursor: pointer; }
.pay5-consent input { margin-top: 2px; width: 17px; height: 17px; accent-color: #2563eb; flex: none; }
.pay5-consent a { color: #1d4ed8; font-weight: 700; }
.pay5-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: 14px; font: inherit; font-size: 1.05rem; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(180deg, #2563eb, #1e40af); box-shadow: 0 14px 28px -12px rgba(37, 99, 235, .8); transition: filter .15s, transform .15s; }
.pay5-btn:hover { filter: brightness(1.07); }
.pay5-btn:active { transform: scale(.99); }
.pay5-btn[disabled] { opacity: .7; }
.pay5-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .74rem; color: #64748b; margin-top: -6px; }
.pay5-logos { display: flex; justify-content: center; }
.pay5-logos img { height: 24px; width: auto; max-width: 100%; opacity: .9; }
.pay5-back { align-self: center; border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 700; color: #64748b; cursor: pointer; padding: 6px; }
.pay5-back:hover { color: #0f172a; }
.pay5 .prd-submit-error:not([hidden]) { display: block; }
@media (max-width: 560px) {
  .pay5-total { align-items: flex-start; text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 12px; width: 100%; }
  .pay5-rows { grid-template-columns: 1fr; }
}

/* Hasta dosyası: uygulama erişimi */
.pt-app-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #cbd5e1; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.pt-app-toggle.on { background: rgba(16,185,129,.2); border-color: rgba(52,211,153,.55); color: #6ee7b7; }
.pt-app-toggle:hover { filter: brightness(1.15); }
.aa-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.aa-seg label { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 12px; cursor: pointer; background: #fff; }
.aa-seg label.on { border-color: #2563eb; background: #eff6ff; }
.aa-seg input { position: absolute; opacity: 0; pointer-events: none; }
.aa-seg b { font-size: .86rem; color: #0f172a; }
.aa-seg small { font-size: .74rem; color: #64748b; }
@media (max-width: 640px) { .aa-seg { grid-template-columns: 1fr; } }

/* Paket seçimi */
.tier-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.tier-opt { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; cursor: pointer; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.tier-opt b { font-size: .95rem; color: #0f172a; } .tier-opt span { font-size: 1.15rem; font-weight: 800; color: #0284c7; } .tier-opt span small { font-size: .72rem; color: #64748b; font-weight: 600; }
.tier-opt > small { font-size: .7rem; color: #64748b; line-height: 1.35; }
.tier-opt em { position: absolute; top: -9px; right: 10px; font-style: normal; background: #0284c7; color: #fff; font-size: .6rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; }
.tier-opt:hover { border-color: #93c5fd; } .tier-opt.on { border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2,132,199,.14); background: #f0f9ff; }
.tier-opt[data-tier="ultra"] { background: linear-gradient(160deg, #0f172a, #1e3a8a); border-color: #1e3a8a; } .tier-opt[data-tier="ultra"] b { color: #fff; } .tier-opt[data-tier="ultra"] span { color: #fcd34d; } .tier-opt[data-tier="ultra"] > small { color: #cbd5e1; }
.tier-feats { margin: 0 0 18px; font-size: .8rem; color: #334155; } .tier-feats summary { cursor: pointer; font-weight: 700; color: #0284c7; }
.tier-feats ul { columns: 2; margin: 10px 0 0; padding-left: 18px; } .tier-feats li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 760px) { .tier-pick { grid-template-columns: 1fr 1fr; } .tier-feats ul { columns: 1; } }

/* ---- Hasta notu / uyarı (ör. otizm): hasta başlığı ve diş şeması ---- */
.pt-alert-row { margin-top: 8px; }
.pt-alert-note, .pt-alert-add { border: 0; cursor: pointer; font: inherit; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 4px 12px; max-width: 100%; text-align: left; }
.pt-alert-note { background: #fef3c7; color: #92400e; box-shadow: 0 0 0 1px #fcd34d inset; }
.pt-alert-add { background: rgba(255,255,255,.1); color: #cbd5e1; box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset; }
.pt-alert-add:hover { background: rgba(255,255,255,.18); color: #fff; }
.pt-alert-chart { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 0; cursor: pointer; font: inherit; font-size: 0.76rem; font-weight: 800; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 4px 10px; box-shadow: 0 0 0 1px #fcd34d inset; text-align: left; }

/* ---- Diş penceresi: sade düzen ---- */
.tz-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #334155; font-size: 1rem; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.tz-close:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.tz-3d-toggle { border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 0.76rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tooth-zoom-modal-card:not(.no-3d) .tz-3d-toggle { background: #0284c7; color: #fff; border-color: #0284c7; }
.tooth-zoom-modal-card.no-3d .tooth-zoom-left { display: none; }
.tooth-zoom-modal-card.no-3d .tooth-zoom-body { grid-template-columns: 1fr; }
.tooth-zoom-modal-card.no-3d { max-width: 760px; }
.tz-reset { width: 100%; justify-content: center; display: flex; align-items: center; gap: 6px; font-weight: 700; padding: 10px; margin-top: 6px; }
.tx-quick { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tx-item.tx-quick-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; min-height: 52px; padding: 8px 26px 8px 12px; border-radius: 12px; text-align: left; font-size: 0.8rem; line-height: 1.25; }
.tx-item.tx-quick-item b { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: #0284c7; font-weight: 700; }
.tx-item.tx-quick-item i { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 0.8rem; color: #16a34a; opacity: 0; }
.tx-item.tx-quick-item.added { background: #f0fdf4; border-color: #86efac; } .tx-item.tx-quick-item.added i { opacity: 1; }
.tx-item.just-added { animation: txAdded .7s ease; }
@keyframes txAdded { 0% { transform: scale(1); } 30% { transform: scale(.96); background: #dcfce7; } 100% { transform: scale(1); } }
.tx-search { margin: 0 14px 10px !important; }
.tx-search-x { border: 0; background: #e2e8f0; color: #475569; width: 22px; height: 22px; border-radius: 50%; font-size: .7rem; cursor: pointer; flex-shrink: 0; }
.tx-quick-head small { text-transform: none; letter-spacing: 0; font-weight: 600; color: #cbd5e1; margin-left: 6px; }

@media (max-width: 860px) {
  /* Tek kaydırma alanı: pencere kayar, iç listeler kendi içinde kaymaz (iOS'ta iç içe kaydırma takılıyordu) */
  .tooth-zoom-modal-card { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .tooth-zoom-right .tx-tree, .tx-tree { max-height: none !important; overflow: visible !important; contain: none; }
  .tooth-zoom-right .tx-picker { min-height: 0 !important; overflow: visible; }
  .tooth-zoom-right .tx-selected { max-height: none; overflow: visible; }
  .tx-search { position: sticky; top: -16px; z-index: 6; background: #fff; box-shadow: 0 6px 12px -10px rgba(15,23,42,.35); }
  .tx-quick { grid-template-columns: 1fr 1fr; padding: 0 10px 10px !important; }
  .tx-item.tx-quick-item { min-height: 56px; font-size: 0.82rem; }
  .tx-tree .tx-item { min-height: 44px; }
  .tx-cat > summary { padding: 13px 10px; }
  .tooth-zoom-modal-card > div:first-child h3 { font-size: 1.02rem !important; }
  .tooth-zoom-modal-card > div:first-child p { font-size: 0.72rem !important; }
}

.tz-reset-link { border: 0; background: none; color: #dc2626; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; padding: 2px 0; text-decoration: underline; }
.tx-tree [hidden], .tx-picker [hidden] { display: none !important; }
