/**
  arekros — Mobil Öncelikli Dermokozmetik Ürün Kataloğu & Danışmanlık Konsolu
  Tasarım: Apple Health, Notion & Sephora Temiz Klinik Estetik
 */

:root {
  /* Renk Paleti - Açık Mod */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-subtle: #f8fafc;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --brand-cyan: #0284c7;
  --brand-cyan-light: #e0f2fe;
  --brand-cyan-dark: #0369a1;
  --brand-accent: #0ea5e9;
  
  --badge-brand-bg: #eff6ff;
  --badge-brand-text: #1d4ed8;
  --badge-size-bg: #f1f5f9;
  --badge-size-text: #334155;
  --badge-routine-bg: #f0fdf4;
  --badge-routine-text: #15803d;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-modal: 0 20px 40px -8px rgba(0, 0, 0, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

[data-theme="dark"] {
  --bg-primary: #0a0d14;
  --bg-surface: #111827;
  --bg-card: #162032;
  --bg-secondary: #1e293b;
  --bg-subtle: #0f172a;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-light: #334155;
  --border-subtle: #1e293b;
  
  --brand-cyan: #38bdf8;
  --brand-cyan-light: #082f49;
  --brand-cyan-dark: #0284c7;
  --brand-accent: #38bdf8;
  
  --badge-brand-bg: #1e3a8a;
  --badge-brand-text: #93c5fd;
  --badge-size-bg: #1e293b;
  --badge-size-text: #cbd5e1;
  --badge-routine-bg: #14532d;
  --badge-routine-text: #86efac;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* ── Temel Sıfırlamalar ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 24px;
  }
}

/* ── 1. Üst Sabit Başlık (Sticky Header) ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 100%;
  overflow: hidden;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 10px;
  width: 100%;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-icon {
  font-size: 20px;
  color: var(--brand-cyan);
  line-height: 1;
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-count-pill {
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-cyan-light);
  color: var(--brand-cyan);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .desktop-only-btn {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .brand-title {
    font-size: 19px;
  }
  .desktop-only-btn {
    display: inline-flex !important;
  }
  .mobile-count-pill {
    display: none !important;
  }
}

.btn-primary-action {
  background: var(--brand-cyan);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
}

.btn-primary-action:active {
  transform: scale(0.95);
}

.icon-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.92);
}

.live-count-badge {
  font-size: 12px;
  font-weight: 700;
  background-color: var(--brand-cyan-light);
  color: var(--brand-cyan);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.theme-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.theme-btn:active {
  transform: scale(0.92);
}

/* ── 2. Arama ve Filtreleme Bölümü ── */
.toolbar-section {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px 12px;
  position: sticky;
  top: 57px;
  z-index: 80;
  box-shadow: 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  width: 100%;
}

.toolbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0 12px;
  transition: all 0.2s ease;
}

.search-bar-wrap:focus-within {
  border-color: var(--brand-cyan);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--brand-cyan-light);
}

.search-lens {
  font-size: 15px;
  color: var(--text-muted);
  margin-right: 8px;
}

.search-bar-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px;
  cursor: pointer;
}

/* Marka ve Rutin Kaydırılabilir Çipler */
.brand-chips-wrapper,
.routine-chips-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -16px;
  padding: 0 16px;
}

.brand-chips-wrapper::-webkit-scrollbar,
.routine-chips-wrapper::-webkit-scrollbar {
  display: none;
}

.chips-scroll-track,
.routine-scroll-track {
  display: flex;
  gap: 6px;
  align-items: center;
  width: max-content;
}

.filter-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 18px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.filter-chip:active {
  transform: scale(0.95);
}

.filter-chip.active {
  background: var(--brand-cyan);
  color: #ffffff;
  border-color: var(--brand-cyan);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.filter-chip .chip-count {
  font-size: 10px;
  opacity: 0.85;
}

/* ── 3. Ürün Kataloğu Izgarası (Product Grid) ── */
.catalog-main {
  padding: 14px 12px 60px;
}

.catalog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.filter-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
  gap: 10px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.reset-filter-btn {
  background: none;
  border: none;
  color: var(--brand-cyan);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Aktif Tıklanan Çip / Etiket Banner'ı */
.active-tag-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-bottom: 14px;
  gap: 10px;
  animation: fadeIn 0.2s ease-out;
}

[data-theme="dark"] .active-tag-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(99, 102, 241, 0.18));
  border-color: rgba(56, 189, 248, 0.45);
}

.tag-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}

.tag-banner-label {
  color: var(--text-muted);
}

.tag-banner-value {
  background: var(--brand-cyan);
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.tag-banner-count {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.btn-clear-active-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-clear-active-tag:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-clear-active-tag:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

/* 2 Sütunlu Mobil Izgara */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

/* Ürün Kartı */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.product-card:active {
  transform: scale(0.97);
}

.product-card:hover {
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Kart Görsel Alanı */
.card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .card-img-wrap {
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform 0.25s ease;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-brand-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--badge-brand-text);
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .card-brand-badge {
  background: rgba(17, 24, 39, 0.9);
  color: var(--badge-brand-text);
}

.card-size-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(241, 245, 249, 0.9);
  color: var(--badge-size-text);
  padding: 3px 6px;
  border-radius: 6px;
}

[data-theme="dark"] .card-size-badge {
  background: rgba(30, 41, 59, 0.9);
}

/* Kart İçeriği */
.card-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-routine-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-cyan);
  margin-bottom: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

.card-action-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-cyan);
}

/* Boş Durum */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  margin: 30px auto;
  max-width: 400px;
}

.empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-clear-all {
  background: var(--brand-cyan);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
}

/* ── 4. Ürün Detay Modalı / Bottom Sheet & Genel Modal Backdrop ── */
.detail-modal-backdrop,
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 95;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.detail-modal-backdrop.active,
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.detail-sheet {
  background: var(--bg-surface);
  width: 100%;
  max-height: calc(88vh - 65px);
  margin-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-modal);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .detail-sheet {
    margin-bottom: 0;
    max-height: 85vh;
  }
}

.detail-modal-backdrop.active .detail-sheet,
.modal-backdrop.active .detail-sheet {
  transform: translateY(0);
}

/* Masaüstü Modalı */
@media (min-width: 768px) {
  .detail-modal-backdrop,
  .modal-backdrop {
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .detail-sheet {
    max-width: 620px;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .detail-modal-backdrop.active .detail-sheet,
  .modal-backdrop.active .detail-sheet {
    transform: scale(1);
  }

  .sheet-handle-bar {
    display: none;
  }
}

.sheet-handle-bar {
  padding: 10px 0 4px;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.sheet-handle {
  width: 40px;
  height: 5px;
  background-color: var(--border-light);
  border-radius: 3px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}

.modal-close-btn:active {
  transform: scale(0.9);
}

/* Modal Kaydırılabilir Gövde */
.sheet-scroll-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 20px calc(30px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Modal Üst Görsel Alanı */
.modal-hero-visual {
  display: flex;
  justify-content: center;
}

.modal-img-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  background-color: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

[data-theme="dark"] .modal-img-frame {
  background-color: #1e293b;
}

.modal-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.modal-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* Modal Başlık Bloğu */
.modal-title-block {
  text-align: left;
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.badge-brand {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--badge-brand-bg);
  color: var(--badge-brand-text);
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-size {
  font-size: 11px;
  font-weight: 700;
  background: var(--badge-size-bg);
  color: var(--badge-size-text);
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-routine {
  font-size: 11px;
  font-weight: 700;
  background: var(--badge-routine-bg);
  color: var(--badge-routine-text);
  padding: 3px 8px;
  border-radius: 6px;
}

.modal-product-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.modal-subcat-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-chip {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  line-height: normal;
  text-decoration: none;
}

.quick-chip.tag-clickable {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast), border-color var(--transition-fast);
  user-select: none;
}

.quick-chip.tag-clickable:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  filter: brightness(0.97);
}

.quick-chip.tag-clickable:active {
  transform: scale(0.95);
}

.quick-chip.age-ref-chip {
  cursor: pointer;
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.quick-chip.age-ref-chip:hover {
  background: #fde68a;
  transform: translateY(-1px);
}

/* Saç ve Saç Derisi Çipi */
.quick-chip.hair-chip {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

[data-theme="dark"] .quick-chip.hair-chip {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}

/* Gıda Takviyesi & Hedef Sistem Çipi */
.quick-chip.supplement-chip {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

[data-theme="dark"] .quick-chip.supplement-chip {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

/* Cilt Bakımı Çipi */
.quick-chip.skin-chip {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

[data-theme="dark"] .quick-chip.skin-chip {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}

.chip-action-hint {
  font-size: 10px;
  background: #f59e0b;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 700;
}


/* Ürün Düzenleme Aksiyon Butonu */
.modal-action-bar {
  width: 100%;
  display: flex;
}

.btn-edit-product {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-edit-product:hover {
  background: var(--bg-card);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  box-shadow: var(--shadow-sm);
}

.btn-edit-product:active {
  transform: scale(0.98);
}

/* Klinik Detay Blokları */
.modal-details-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
}

.detail-block.complaint-block {
  background: #f0fdfa;
  border-color: #99f6e4;
}

[data-theme="dark"] .detail-block.complaint-block {
  background: #042f2e;
  border-color: #115e59;
}

.detail-block.warning-block {
  background: #fffbeb;
  border-color: #fde68a;
}

[data-theme="dark"] .detail-block.warning-block {
  background: #451a03;
  border-color: #78350f;
}

.block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.block-icon {
  font-size: 16px;
}

.block-header h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.complaint-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.complaint-item {
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

[data-theme="dark"] .complaint-item {
  color: #5eead4;
}

.block-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
}

.warning-text {
  color: #b45309;
  font-weight: 600;
  white-space: pre-line;
  line-height: 1.5;
}

[data-theme="dark"] .warning-text {
  color: #fde68a;
}

.actives-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-tag {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--brand-cyan);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.active-tag.tag-clickable {
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.active-tag.tag-clickable:hover {
  background: var(--brand-cyan);
  color: #ffffff;
  border-color: var(--brand-cyan);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.active-tag.tag-clickable:active {
  transform: scale(0.95);
}

/* ── 5. Lightbox & Toast ── */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-caption {
  margin-top: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Toast Bildirimi */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 200;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  color: #4ade80;
  font-size: 16px;
}

/* ── 6. Ürün Ekle / Düzenle Modalı (Editor) Stilleri ── */
.editor-sheet, .settings-sheet {
  max-height: 92vh;
}

.editor-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.editor-header {
  padding: 10px 20px 12px;
  border-bottom: 1px solid var(--border-light);
}

.editor-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.editor-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.editor-scroll-body {
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-label .required {
  color: #ef4444;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px; /* iOS Safari zoom engelleyici */
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-textarea {
  resize: vertical;
  line-height: 1.4;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Fotoğraf Yükleme / Kamera Dropzone */
.photo-dropzone {
  width: 100%;
  min-height: 120px;
  background-color: var(--bg-secondary);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.photo-dropzone:active {
  background-color: var(--brand-cyan-light);
  border-color: var(--brand-cyan);
}

.photo-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  width: 100%;
}

.photo-action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.btn-photo-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-photo-pick:hover {
  background-color: var(--brand-cyan-light);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.btn-photo-pick:active {
  transform: scale(0.97);
}

.photo-btn-icon {
  font-size: 17px;
  line-height: 1;
}

.photo-btn-label {
  font-weight: 600;
  font-size: 13px;
}

.photo-prompt-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.photo-preview-wrap {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  position: relative;
}

.photo-preview-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.btn-remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Editör Aksiyon Çubuğu */
.editor-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  gap: 10px;
}

.actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-save {
  background: var(--brand-cyan);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-save:active {
  transform: scale(0.96);
}

.btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger-outline {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger-outline:active {
  background: rgba(239, 68, 68, 0.1);
}

/* ── 7. Ayarlar & Senkronizasyon Kartları ── */
.settings-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.settings-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-card.danger-card {
  border-color: #fecaca;
  background-color: #fff5f5;
}

[data-theme="dark"] .settings-card.danger-card {
  border-color: #7f1d1d;
  background-color: #2a1215;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.settings-card-icon {
  font-size: 22px;
  line-height: 1;
}

.settings-card-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-card-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.btn-sync-github {
  background: linear-gradient(135deg, #24292e 0%, #161b22 100%);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-sync-github:active {
  transform: scale(0.98);
}

.sync-status-msg {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
  min-height: 20px;
}

.sync-status-msg.success {
  color: #16a34a;
}

.sync-status-msg.error {
  color: #dc2626;
}

.sync-status-msg.loading {
  color: var(--brand-cyan);
}

.settings-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-setting-action {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-setting-action:active {
  transform: scale(0.96);
}

/* ── 8. Yaş-Kilo Butonu & Klinik Takviye Blokları ── */
.btn-weight-ref {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
  transition: all 0.15s ease;
}

.btn-weight-ref:active {
  transform: scale(0.95);
}

/* SGK Karşılaştırma & Niş Eczacılık Kartı */
.detail-block.sgk-compare-block {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .detail-block.sgk-compare-block {
  background: linear-gradient(135deg, #2a1b05 0%, #1c1303 100%);
  border-color: #d97706;
}

.sgk-compare-block h4 {
  color: #b45309;
  font-weight: 800;
}

[data-theme="dark"] .sgk-compare-block h4 {
  color: #fbbf24;
}

.sgk-text {
  color: #78350f;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
}

[data-theme="dark"] .sgk-text {
  color: #fde68a;
}

/* Ne İşe Yarar (Fizyolojik Etki) */
.detail-block.benefit-block {
  background: #f0fdf4;
  border-color: #86efac;
}

[data-theme="dark"] .detail-block.benefit-block {
  background: #052e16;
  border-color: #166534;
}

/* Kimler İçebilir */
.detail-block.who-can-block {
  background: #eff6ff;
  border-color: #93c5fd;
}

[data-theme="dark"] .detail-block.who-can-block {
  background: #172554;
  border-color: #1e40af;
}

.weight-norm-callout {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(2, 132, 199, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--brand-cyan-dark);
  font-weight: 700;
}

[data-theme="dark"] .weight-norm-callout {
  background: rgba(56, 189, 248, 0.15);
  color: var(--brand-cyan);
}

/* Kimler İçemez (Kontrendikasyon) */
.detail-block.contraindication-block {
  background: #fef2f2;
  border-color: #fecaca;
}

[data-theme="dark"] .detail-block.contraindication-block {
  background: #450a0a;
  border-color: #991b1b;
}

/* Yaş & Kilo Persantil Tablosu & Hesaplayıcı */
.weight-ref-sheet {
  max-height: calc(90vh - 65px);
}

.weight-ref-scroll-body {
  padding: 14px 18px calc(30px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.weight-ref-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.weight-ref-title-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-cyan);
  letter-spacing: 0.5px;
}

.weight-ref-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.weight-ref-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* İnteraktif Dozaj & Persantil Hesaplayıcı Kartı */
.calculator-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.calc-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-title-icon {
  font-size: 16px;
}

.calc-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.calc-age-input-wrap {
  display: flex;
  gap: 6px;
}

.calc-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.calc-input:focus {
  border-color: var(--brand-cyan);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--brand-cyan-light);
}

.calc-select-unit {
  padding: 10px 8px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
}

.calc-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

.calc-select:focus {
  border-color: var(--brand-cyan);
}

/* Hızlı Çipler */
.calc-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.calc-chips-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-calc-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-calc-chip.active {
  background: var(--brand-cyan);
  color: #ffffff;
  border-color: var(--brand-cyan);
}

.btn-calc-chip:active {
  transform: scale(0.94);
}

/* Canlı Hesaplama Sonuç Kartı */
.calc-result-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(14, 165, 233, 0.03) 100%);
  border: 1.5px solid var(--brand-cyan-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

[data-theme="dark"] .calc-result-box {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.25);
}

.calc-res-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-dose-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-dose-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-cyan);
  letter-spacing: 0.3px;
}

.calc-dose-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.calc-norm-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.calc-norm-pill.normal {
  background: #dcfce7;
  color: #15803d;
}

.calc-norm-pill.overweight {
  background: #fef3c7;
  color: #b45309;
}

.calc-norm-pill.underweight {
  background: #fee2e2;
  color: #b91c1c;
}

.calc-res-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
}

.calc-detail-line {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.calc-detail-line strong {
  color: var(--text-primary);
}

.table-section-header {
  margin-top: 8px;
}

.table-section-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.table-section-header p {
  font-size: 11px;
  color: var(--text-muted);
}

.rules-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
}

.rule-item {
  font-size: 13px;
  line-height: 1.45;
}

.rule-badge {
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 4px;
  display: inline-block;
}

.rule-badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.rule-badge.warning {
  background: #fef3c7;
  color: #b45309;
}

.rule-badge.info {
  background: #e0f2fe;
  color: #0369a1;
}

.persantil-search-box {
  margin-top: 6px;
}

.persantil-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-top: 6px;
}

.persantil-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.persantil-table th {
  background: var(--bg-secondary);
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.persantil-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.persantil-table tr:last-child td {
  border-bottom: none;
}

.persantil-table tr.highlight-row {
  background: rgba(245, 158, 11, 0.15);
  font-weight: 700;
}

.table-age-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-age-cell small {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.table-range-badge {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.table-form-badge {
  display: inline-block;
  padding: 2px 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  font-weight: 600;
  color: #166534;
}

.weight-norm-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.btn-callout-link {
  background: none;
  border: none;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  white-space: nowrap;
}

/* ── 8. Mobil Alt Gezinme Çubuğu (Bottom Navigation Bar) ── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="dark"] .mobile-bottom-nav {
  background-color: rgba(17, 24, 39, 0.95);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 4px 0;
}

.nav-tab-icon {
  font-size: 19px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.nav-tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.nav-tab.active {
  color: var(--brand-cyan);
}

.nav-tab.active .nav-tab-icon {
  transform: translateY(-2px) scale(1.1);
}

.nav-tab:active {
  transform: scale(0.92);
}

/* Ortadaki Yuvarlak Vurgulu Ekle Butonu */
.nav-tab-action {
  position: relative;
  overflow: visible;
}

.nav-action-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-cyan-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  margin-top: -16px;
  border: 3px solid var(--bg-surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-action-icon {
  font-size: 20px;
  color: #ffffff;
  line-height: 1;
}

.nav-tab-action:active .nav-action-circle {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.nav-tab-action .nav-tab-label {
  margin-top: 2px;
  font-weight: 700;
  color: var(--brand-cyan);
}



