/* ============================================
   Salon Randevu Sistemi - Ortak Stil
   ============================================ */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1f2430;
  --muted: #6b7280;
  --brand: #3b5bdb;
  --brand-soft: #eaeefc;
  --success: #2e7d4f;
  --warning: #b97a00;
  --danger: #c0392b;
  --info: #1e7491;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

/* ===== Genel Layout ===== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 1040;
  transition: transform 0.2s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.sidebar-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-section-title {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 10px 6px;
}

.sidebar a.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 2px;
}

.sidebar a.nav-link:hover {
  background: #f1f3f7;
}

.sidebar a.nav-link.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.sidebar a.nav-link .ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.8;
}

.main {
  flex: 1;
  margin-left: 240px;
  min-width: 0;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.content {
  padding: 24px;
}

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

.page-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.page-header .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 1035;
}

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.is-open { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .sidebar.is-open ~ .sidebar-backdrop { display: block; }
}

/* ===== Kartlar ===== */
.card-soft {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-soft .card-header,
.card-soft .card-body,
.card-soft .card-footer {
  border-color: var(--border);
}

.card-soft .card-header {
  background: transparent;
  font-weight: 600;
  padding: 14px 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat-card .delta {
  font-size: 12px;
  margin-top: 4px;
  color: var(--muted);
}

.stat-card .delta.up { color: var(--success); }
.stat-card .delta.down { color: var(--danger); }

/* ===== Tablolar ===== */
.table-soft {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.table-soft thead th {
  background: #f8f9fb;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.table-soft tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-soft tbody tr:last-child td { border-bottom: none; }
.table-soft tbody tr:hover { background: #fafbfd; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-wrap .table-soft {
  border: none;
  border-radius: 0;
}

/* ===== Rozetler / Status ===== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f3f7;
  color: var(--muted);
  border: 1px solid transparent;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.success { background: #e6f4ec; color: var(--success); }
.status-pill.warning { background: #fdf2dc; color: var(--warning); }
.status-pill.danger  { background: #fce8e6; color: var(--danger); }
.status-pill.info    { background: #e3f1f6; color: var(--info); }
.status-pill.brand   { background: var(--brand-soft); color: var(--brand); }

/* ===== Butonlar override ===== */
.btn {
  border-radius: 8px;
  font-weight: 500;
  font-size: 13.5px;
  padding: 7px 14px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover, .btn-primary:focus {
  background: #2f4ac4;
  border-color: #2f4ac4;
}

.btn-outline-secondary {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline-secondary:hover {
  background: #f1f3f7;
  color: var(--text);
  border-color: var(--border);
}

.btn-soft {
  background: #f1f3f7;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-soft:hover { background: #e7eaf0; }

/* ===== Form override ===== */
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.form-control, .form-select {
  border-radius: 8px;
  border-color: var(--border);
  font-size: 13.5px;
  padding: 8px 12px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.15);
}

.form-text { font-size: 12px; }

/* ===== Auth ekranı ===== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-aside {
  background: linear-gradient(160deg, #2a3a78 0%, #3b5bdb 100%);
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-aside .brand {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-aside .brand .brand-mark {
  background: #fff;
  color: var(--brand);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-aside h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 36px;
}

.auth-aside p { opacity: 0.85; font-size: 14px; max-width: 380px; }

.auth-aside .auth-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-aside .auth-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.auth-aside .auth-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.35);
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-form {
  width: 100%;
  max-width: 380px;
}

.auth-form h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-form .sub {
  color: var(--muted);
  margin-bottom: 24px;
}

.demo-credentials {
  background: #f8f9fb;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.demo-credentials strong { color: var(--text); }

.password-field { position: relative; }
.password-field .toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

@media (max-width: 767.98px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* ===== Takvim / Randevu ===== */
.appt-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.appt-grid .head {
  background: #f8f9fb;
  padding: 10px;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.appt-grid .head:last-child { border-right: none; }

.appt-grid .hour {
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.appt-grid .cell {
  min-height: 56px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4px;
  position: relative;
}
.appt-grid .cell:last-child { border-right: none; }

.appt-block {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  line-height: 1.3;
  cursor: pointer;
  margin-bottom: 2px;
}
.appt-block .who { font-weight: 600; color: var(--text); }
.appt-block .what { color: var(--muted); }

.appt-block.success { background: #e6f4ec; border-left-color: var(--success); }
.appt-block.warning { background: #fdf2dc; border-left-color: var(--warning); }
.appt-block.danger  { background: #fce8e6; border-left-color: var(--danger); }

/* ===== Wizard ===== */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
}

.wizard-steps li {
  flex: 1;
  position: relative;
  text-align: center;
}

.wizard-steps li .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f3f7;
  border: 2px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.wizard-steps li .label-text {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.wizard-steps li.active .dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.wizard-steps li.active .label-text { color: var(--brand); font-weight: 600; }

.wizard-steps li.done .dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.wizard-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.wizard-steps li.done:not(:last-child)::after { background: var(--success); }

/* ===== Müşteri sayfası (public) ===== */
.public-page {
  background: var(--bg);
  min-height: 100vh;
}

.public-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.salon-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.salon-hero .salon-name {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
}

.salon-hero .salon-meta {
  color: var(--muted);
  margin-bottom: 14px;
}

.salon-hero .salon-meta .dot { margin: 0 8px; }

.rating-stars {
  color: #d97706;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
}

.gallery-grid .photo {
  background: linear-gradient(135deg, #c3cfe2 0%, #d5dbe6 100%);
  border-radius: 8px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gallery-grid .photo.lg { grid-row: span 2; min-height: 288px; }

@media (max-width: 767.98px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .photo.lg { grid-column: span 2; grid-row: auto; min-height: 180px; }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.service-card .svc-name { font-weight: 600; }
.service-card .svc-desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.service-card .svc-price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.service-card .svc-duration { font-size: 12px; color: var(--muted); margin-top: 2px; text-align: right; }

.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.staff-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
}
.staff-card .staff-name { font-weight: 600; }
.staff-card .staff-role { color: var(--muted); font-size: 12.5px; }

/* ===== Hub / Index ===== */
.hub-page {
  background: var(--bg);
  min-height: 100vh;
  padding: 60px 0;
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hub-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.hub-card .desc {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.hub-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-card ul a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-card ul a:hover { background: #f1f3f7; color: var(--brand); }

.hub-card .hub-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== Toast (custom) ===== */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  min-width: 240px;
  max-width: 360px;
  pointer-events: auto;
  animation: toastIn 0.2s ease;
}

.toast-item.success { background: var(--success); }
.toast-item.danger { background: var(--danger); }
.toast-item.warning { background: var(--warning); }

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

/* ===== Wizard / Public small ===== */
.choice-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.choice-card:hover { border-color: var(--brand); }
.choice-card.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.choice-card .title { font-weight: 600; }
.choice-card .meta { color: var(--muted); font-size: 12.5px; }
.choice-card .check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: 700;
}
.choice-card.selected .check {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.time-slot {
  padding: 10px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.time-slot:hover { border-color: var(--brand); }
.time-slot.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.time-slot.disabled {
  background: #f1f3f7;
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: line-through;
}

.date-pill {
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  min-width: 64px;
}
.date-pill:hover { border-color: var(--brand); }
.date-pill.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.date-pill.disabled {
  background: #f1f3f7;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}
.date-pill.disabled .day-num { color: var(--muted); }
.date-pill .day-name { font-size: 11px; text-transform: uppercase; opacity: 0.7; }
.date-pill .day-num { font-size: 18px; font-weight: 700; }
.date-pill .month { font-size: 11px; opacity: 0.7; }

.summary-bar {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 24px;
}

/* ===== Avatar ===== */
.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* ===== Misc ===== */
.divider-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0;
}
.divider-text::before, .divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tab-pills {
  display: flex;
  gap: 6px;
  background: #f1f3f7;
  padding: 4px;
  border-radius: 10px;
}
.tab-pills button,
.tab-pills a {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.tab-pills button.active,
.tab-pills a.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.tab-pills a:hover { color: var(--text); }

/* ===== Hizmet sayfası foto kapak ===== */
.photo-tile {
  background: linear-gradient(135deg, #d0d7e2 25%, #e0e6ee 25%, #e0e6ee 50%, #d0d7e2 50%, #d0d7e2 75%, #e0e6ee 75%);
  background-size: 18px 18px;
  border-radius: 8px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6878;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  position: relative;
}
.photo-tile .cover-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.photo-tile .remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* helper text */
.text-muted-2 { color: var(--muted); }

/* Pagination */
.pagination .page-link {
  color: var(--text);
  border-color: var(--border);
}
.pagination .page-item.active .page-link {
  background: var(--brand);
  border-color: var(--brand);
}

/* ===== Mobil iyileştirmeler ===== */
@media (max-width: 767.98px) {
  /* Topbar daha kompakt */
  .topbar { padding: 10px 14px; }
  .topbar-title { font-size: 14px; }
  .content { padding: 14px; }

  /* Stat card daha küçük */
  .stat-card { padding: 12px; }
  .stat-card .value { font-size: 18px; }
  .stat-card .label { font-size: 10.5px; }
  .stat-card .delta { font-size: 11px; }

  /* Tablolar — yatay scroll, gerekirse zorla */
  .table-wrap, .table-responsive { overflow-x: auto; }
  .table-soft { font-size: 12.5px; min-width: 540px; }
  .table-soft thead th { padding: 9px 10px; font-size: 11px; }
  .table-soft tbody td { padding: 10px; }

  /* Filter bar — wrap, küçük input */
  .filter-bar { padding: 10px; gap: 6px; }
  .filter-bar .form-control, .filter-bar .form-select { max-width: 100% !important; flex: 1 1 140px; }

  /* Page header — başlık + button yığılsın */
  .page-header { gap: 8px; }
  .page-header h2 { font-size: 17px; }
  .page-header .sub { font-size: 12px; }
  .page-header > div + .btn,
  .page-header > div + .d-flex { width: 100%; }
  .page-header > div + .d-flex .tab-pills { overflow-x: auto; }
  .page-header > div + .d-flex .tab-pills::-webkit-scrollbar { display: none; }

  /* Topbar sağ avatar bilgisini sakla */
  .topbar-actions > .d-flex.align-items-center > div { display: none; }
  .topbar-actions .avatar-sm { margin-left: 0; }
  .topbar-actions .form-select,
  .topbar-actions .btn { font-size: 12px; padding: 5px 9px; }

  /* Salon (public) hero ufalt */
  .salon-hero { padding: 22px 0; }
  .salon-hero .salon-name { font-size: 22px; }
  .salon-hero .salon-meta { font-size: 12.5px; flex-wrap: wrap; }
  .salon-hero .salon-meta .dot { display: inline-block; }

  /* Galeri tek sütun olabilir */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .gallery-grid .photo { min-height: 110px; font-size: 11px; }
  .gallery-grid .photo.lg { min-height: 200px; }

  /* Service card mobilde sıkışmasın */
  .service-card { padding: 12px; }
  .service-card .svc-price { font-size: 14px; }

  /* Hub */
  .hub-page { padding: 28px 0; }
  .hub-card { padding: 18px; }

  /* Wizard — adım dot kompakt */
  .wizard-steps li .label-text { display: none; }
  .wizard-steps li .dot { width: 28px; height: 28px; font-size: 12px; margin-bottom: 0; }
  .wizard-steps li:not(:last-child)::after { top: 14px; }
  .wizard-steps { margin-bottom: 16px; }

  /* Choice card mobilde */
  .choice-card { padding: 12px; }
  .choice-card .title { font-size: 13.5px; }
  .choice-card .meta { font-size: 11.5px; }
  .choice-card .check { width: 18px; height: 18px; }

  /* Date pills yatayda scroll */
  #dateList { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 4px; }
  #dateList::-webkit-scrollbar { display: none; }
  .date-pill { min-width: 56px; padding: 8px 6px; flex-shrink: 0; }
  .date-pill .day-num { font-size: 16px; }

  /* Time slots — daha sık grid */
  #timeList .col-3 { flex: 0 0 25%; }
  .time-slot { padding: 8px 4px; font-size: 12px; }

  /* Summary bar mobilde sıkışmasın */
  .summary-bar { padding: 10px 0; }
  .summary-bar .container { padding: 0 14px; }
  #totalPrice { font-size: 16px !important; }
  .summary-bar .btn { padding: 8px 12px; font-size: 13px; }

  /* Modal padding küçült */
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; flex-wrap: wrap; gap: 6px; }
  .modal-footer .btn { flex: 1 1 auto; }

  /* Auth: zaten responsive */
  .auth-form-wrap { padding: 24px 16px; }

  /* Nav tabs scrollable */
  .nav-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tabs .nav-link { white-space: nowrap; font-size: 13px; }

  /* Form elemanları biraz daha büyük (dokunma hedefi) */
  .form-control, .form-select { font-size: 14px; min-height: 38px; }
  .btn { min-height: 38px; }

  /* Plan card mobilde */
  .plan-card { padding: 18px; }
  .plan-card .price { font-size: 28px; }

  /* Side panel başlıkları küçük */
  .card-soft .card-header { padding: 12px 14px; font-size: 13.5px; }
}

@media (max-width: 380px) {
  .wizard-steps li .dot { width: 24px; height: 24px; font-size: 11px; }
  .stat-card .value { font-size: 16px; }
}

/* ===== Marketing / Satış sayfaları ===== */
.mk-page { background: #fff; color: var(--text); }

.mk-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.mk-nav .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; }
.mk-nav .brand .brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--brand); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; }
.mk-nav a.nav-item { color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.mk-nav a.nav-item:hover { background: #f1f3f7; }
.mk-nav a.nav-item.active { color: var(--brand); }

.mk-hero {
  background: linear-gradient(180deg, #f5f7fc 0%, #ffffff 100%);
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mk-hero::before {
  content: "";
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(59,91,219,0.15) 0%, rgba(59,91,219,0) 70%);
  pointer-events: none;
}
.mk-hero .eyebrow {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.mk-hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
}
.mk-hero h1 .accent { color: var(--brand); }
.mk-hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
  position: relative;
}
.mk-hero .cta-row {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  position: relative;
}
.mk-hero .cta-row .btn { padding: 12px 22px; font-size: 15px; font-weight: 600; }
.mk-hero .trust {
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--muted);
}
.mk-hero .preview-shot {
  margin-top: 48px;
  max-width: 960px; margin-left: auto; margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  position: relative;
}
.mk-hero .preview-shot .browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8f9fb;
}
.mk-hero .preview-shot .browser-bar .dot {
  width: 11px; height: 11px; border-radius: 50%; background: #e5e7eb;
}
.mk-hero .preview-shot .browser-bar .url {
  margin-left: 8px;
  font-size: 11.5px; color: var(--muted);
  background: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: ui-monospace, Menlo, monospace;
}
.mk-hero .preview-shot .preview-content {
  background: linear-gradient(135deg, #eef2fb 0%, #f7f8fc 100%);
  min-height: 380px;
  padding: 20px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
}
.mk-hero .preview-shot .skel-sidebar { background: rgba(255,255,255,0.7); border-radius: 8px; height: 100%; padding: 12px; }
.mk-hero .preview-shot .skel-line { background: rgba(15,23,42,0.08); height: 10px; border-radius: 4px; margin-bottom: 8px; }
.mk-hero .preview-shot .skel-line.short { width: 60%; }
.mk-hero .preview-shot .skel-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-content: start; }
.mk-hero .preview-shot .skel-card { background: rgba(255,255,255,0.85); border-radius: 8px; padding: 16px; min-height: 80px; }

.mk-section { padding: 72px 0; }
.mk-section.alt { background: #f8f9fb; }
.mk-section h2 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 12px;
}
.mk-section .section-sub {
  font-size: 16px; color: var(--muted); text-align: center; max-width: 560px;
  margin: 0 auto 48px;
}
.mk-section .eyebrow {
  display: block; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 10px;
}

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(15,23,42,0.12); }
.feat-card .feat-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.feat-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feat-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }

.step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { text-align: center; padding: 20px; position: relative; }
.step-card .step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.testi-card .quote { font-size: 15px; line-height: 1.6; color: var(--text); }
.testi-card .quote::before { content: "“"; font-size: 36px; color: var(--brand); line-height: 0.3; vertical-align: -10px; margin-right: 4px; }
.testi-card .testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-card .testi-author .who { font-weight: 700; font-size: 14px; }
.testi-card .testi-author .role { font-size: 12px; color: var(--muted); }

.mk-cta {
  background: linear-gradient(135deg, #2a3a78 0%, #3b5bdb 100%);
  color: #fff; padding: 72px 0;
  text-align: center;
}
.mk-cta h2 { color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.mk-cta p { font-size: 17px; opacity: 0.85; max-width: 540px; margin: 0 auto 28px; }
.mk-cta .btn-light { background: #fff; color: var(--brand); border: none; font-weight: 700; }
.mk-cta .btn-light:hover { background: #f4f4f4; color: var(--brand); }
.mk-cta .btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.4); }

.mk-footer {
  background: #1f2430; color: #cbd5e1;
  padding: 56px 0 28px;
}
.mk-footer .col-title { font-weight: 700; color: #fff; margin-bottom: 14px; font-size: 14px; }
.mk-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-footer ul a { color: #94a3b8; text-decoration: none; font-size: 13.5px; }
.mk-footer ul a:hover { color: #fff; }
.mk-footer .bottom {
  border-top: 1px solid #2d3441;
  padding-top: 20px; margin-top: 36px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: #94a3b8;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
  position: relative;
}
.pricing-card.featured::before {
  content: "EN POPÜLER";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  padding: 4px 14px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
}
.pricing-card .plan-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pricing-card .plan-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; min-height: 38px; }
.pricing-card .plan-price { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.pricing-card .plan-price small { color: var(--muted); font-weight: 500; font-size: 15px; margin-left: 2px; }
.pricing-card .plan-frequency { font-size: 12px; color: var(--muted); margin-top: 4px; margin-bottom: 22px; }
.pricing-card ul.plan-features { list-style: none; padding: 0; margin: 0 0 26px; flex-grow: 1; }
.pricing-card ul.plan-features li {
  padding: 7px 0;
  font-size: 13.5px;
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-card ul.plan-features li::before {
  content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0;
}
.pricing-card ul.plan-features li.disabled { color: var(--muted); }
.pricing-card ul.plan-features li.disabled::before { content: "—"; color: var(--muted); }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  width: 20px; height: 20px; background: var(--brand-soft); color: var(--brand);
  border-radius: 50%; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 12px 0 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-block { text-align: center; padding: 24px 12px; }
.stat-block .num {
  font-size: 38px; font-weight: 800; color: var(--brand);
  letter-spacing: -0.02em; line-height: 1;
}
.stat-block .lbl { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

@media (max-width: 991.98px) {
  .feat-grid, .step-row, .testimonial-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .mk-hero h1 { font-size: 38px; }
  .mk-section h2, .mk-cta h2 { font-size: 28px; }
}
@media (max-width: 575.98px) {
  .feat-grid, .step-row, .testimonial-grid, .pricing-grid, .stat-row { grid-template-columns: 1fr; }
  .mk-hero { padding: 50px 0 36px; }
  .mk-hero h1 { font-size: 30px; }
  .mk-hero p.lead { font-size: 15px; }
  .mk-section { padding: 48px 0; }
  .mk-cta { padding: 48px 0; }
  .mk-hero .preview-shot .preview-content { grid-template-columns: 1fr; min-height: 200px; }
  .mk-hero .preview-shot .skel-sidebar { display: none; }
  .mk-hero .preview-shot .skel-content { grid-template-columns: 1fr 1fr; }
}
.cal-grid {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(110px, 1fr));
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: auto;
  max-height: 70vh;
}
.cal-grid .ch {
  background: #f8f9fb;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 3;
}
.cal-grid .ch:last-child { border-right: none; }
.cal-grid .ch.today { color: var(--brand); }
.cal-grid .rh {
  background: #fafbfd;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 8px;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  position: sticky;
  left: 0;
  z-index: 2;
}
.cal-grid .cl {
  min-height: 52px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3px;
  position: relative;
}
.cal-grid .cl:last-child { border-right: none; }
.cal-grid .cl.today { background: rgba(59,91,219,0.025); }
.cal-grid .cl.closed {
  background: repeating-linear-gradient(135deg, #fafbfd, #fafbfd 8px, #f1f3f7 8px, #f1f3f7 16px);
  pointer-events: none;
}
.cal-grid .ch.closed {
  background: #fdf2dc;
  color: #7a4e00;
}
.cal-grid .ch.closed .closed-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cal-grid .cl .blk {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.25;
  cursor: pointer;
  margin-bottom: 2px;
  overflow: hidden;
}
.cal-grid .cl .blk:hover { filter: brightness(0.96); }
.cal-grid .cl a.blk { text-decoration: none; color: inherit; display: block; }
.cal-grid .cl .blk .who { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-grid .cl .blk .meta { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-grid .cl .blk.success { background: #e6f4ec; border-left-color: var(--success); }
.cal-grid .cl .blk.warning { background: #fdf2dc; border-left-color: var(--warning); }
.cal-grid .cl .blk.danger  { background: #fce8e6; border-left-color: var(--danger); text-decoration: line-through; opacity: 0.7; }

@media (max-width: 767.98px) {
  .cal-grid { grid-template-columns: 52px repeat(7, minmax(96px, 1fr)); }
  .cal-grid .cl .blk { font-size: 10.5px; padding: 4px 5px; }
}
