/* VuBerber — Components & Layout */

/* ─── Reset / Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}

body.no-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

input, textarea, select { font-family: inherit; color: inherit; }

/* Focus ring — erişilebilirlik */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--text); color: var(--text-on-cta); }

/* Scrollbar — minimal */
::-webkit-scrollbar { width: 0; height: 0; }

/* ─── Typography helpers ─────────────────────────── */
.h1 { font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: -0.6px; line-height: var(--lh-tight); margin: 0; }
.h2 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.5px; line-height: var(--lh-tight); margin: 0; }
.h3 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-tight); line-height: var(--lh-snug); margin: 0; }
.h4 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: -0.2px; line-height: var(--lh-snug); margin: 0; }
.body { font-size: var(--fs-base); line-height: var(--lh-normal); }
.body-sm { font-size: var(--fs-sm); line-height: var(--lh-normal); }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.caption { font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: var(--tracking-wide); text-transform: uppercase; }

/* ─── Layout helpers ─────────────────────────────── */
.row { display: flex; align-items: center; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.col { display: flex; flex-direction: column; gap: var(--s-3); }
.stack-2 { display: flex; flex-direction: column; gap: var(--s-2); }
.stack-3 { display: flex; flex-direction: column; gap: var(--s-3); }
.stack-4 { display: flex; flex-direction: column; gap: var(--s-4); }
.stack-6 { display: flex; flex-direction: column; gap: var(--s-6); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

.section { padding: 0 var(--s-4); }
.section + .section { margin-top: var(--s-7); }

.divider { height: 1px; background: var(--border); margin: var(--s-4) 0; }

/* ─── App layout ─────────────────────────────────── */
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
}
.app-main.no-top { }

/* ─── Top Bar ────────────────────────────────────── */
.top-bar {
  position: sticky;
  top: 0;
  min-height: var(--top-bar-h);
  padding: env(safe-area-inset-top) var(--s-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  z-index: var(--z-top-bar);
  transition: border-color var(--dur-base) var(--ease-out);
  box-sizing: border-box;
}
.top-bar.scrolled { border-bottom-color: var(--border); }
.top-bar > .top-bar__title { flex: 1; text-align: center; }

.top-bar__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
}

.top-bar__action {
  width: var(--touch-min);
  height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: transparent;
  border: 0;
  color: var(--text);
  margin: 0 calc(var(--s-2) * -1);
  transition: background var(--dur-fast) var(--ease-out);
}
.top-bar__action:hover { background: var(--surface-2); }
.top-bar__action:active { background: var(--surface-3); }

/* ─── Bottom Nav ─────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: var(--z-bottom-nav);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.1px;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
  text-decoration: none;
  min-height: var(--touch-min);
}

.bottom-nav__item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.bottom-nav__item.is-active { color: var(--text); }

.bottom-nav__item--accent {
  position: relative;
}
.bottom-nav__item--accent .accent-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--cta-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-soft);
  margin-top: -6px;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.bottom-nav__item--accent .accent-circle svg { width: 20px; height: 20px; }
.bottom-nav__item--accent:hover .accent-circle { transform: scale(1.05); }
.bottom-nav__item--accent:active .accent-circle { transform: scale(0.95); }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  border: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.2px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
  min-width: 44px;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { background: var(--cta-bg-hover); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }

.btn--block { width: 100%; }
.btn--lg { height: 48px; padding: 0 var(--s-6); font-size: var(--fs-base); }
.btn--sm { height: 32px; padding: 0 var(--s-3); font-size: var(--fs-xs); }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--secondary:hover { background: var(--surface); border-color: var(--text-muted); }

.btn--ghost {
  background: transparent;
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--icon {
  width: var(--touch-min);
  padding: 0;
}

.btn svg { width: 18px; height: 18px; }

/* ─── Card ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.card.is-tappable { cursor: pointer; }
.card.is-tappable:hover { background: var(--surface-2); border-color: var(--border-strong); }
.card.is-tappable:active { transform: scale(0.99); }

.card--lg { padding: var(--s-5); border-radius: var(--r-xl); }
.card--flat { background: transparent; border: 1px solid var(--border); }

/* ─── Chip ───────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { background: var(--surface-2); border-color: var(--border-strong); }
.chip.is-active { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }

.chip-row {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding: var(--s-2) var(--s-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chip-row::-webkit-scrollbar { display: none; }

/* ─── Input ──────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--s-2); }

.label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
}

.input,
.textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  padding: 11px 13px;
  font-size: var(--fs-sm);
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  min-height: 42px;
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--text);
  background: var(--surface-2);
}
.input.is-error { border-color: var(--danger); }

.helper { font-size: var(--fs-sm); color: var(--text-muted); }
.error  { font-size: var(--fs-sm); color: var(--danger); }

/* ─── Checkbox ───────────────────────────────────── */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  cursor: pointer;
  padding: var(--s-2) 0;
  user-select: none;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.check__box svg { width: 14px; height: 14px; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); color: var(--cta-fg); }
.check input:checked ~ .check__box { background: var(--cta-bg); border-color: var(--cta-bg); }
.check input:checked ~ .check__box svg { opacity: 1; }
.check__label { font-size: var(--fs-sm); line-height: var(--lh-normal); color: var(--text); flex: 1; }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--text); outline-offset: 2px; }

/* ─── Radio (list row) ───────────────────────────── */
.radio-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 12px var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
  transition: all var(--dur-fast) var(--ease-out);
}
.radio-row__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cta-fg);
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.radio-row input:checked ~ .radio-row__dot { background: var(--cta-bg); border-color: var(--cta-bg); }
.radio-row input:checked ~ .radio-row__dot::after { transform: scale(1); }
.radio-row:has(input:checked) { border-color: var(--text); background: var(--surface-2); }

/* ─── Toggle ─────────────────────────────────────── */
.toggle {
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out);
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform var(--dur-base) var(--ease-spring);
}
.toggle:has(input:checked) { background: var(--cta-bg); }
.toggle:has(input:checked)::after { background: var(--cta-fg); transform: translateX(18px); }

/* ─── Avatar ─────────────────────────────────────── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.avatar--lg { width: 64px; height: 64px; font-size: var(--fs-lg); }
.avatar--sm { width: 28px; height: 28px; font-size: var(--fs-xs); }

/* ─── Badge / Tag ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.2px;
}
.badge--success { background: rgba(74, 222, 128, 0.12); color: var(--success); }
.badge--warning { background: rgba(251, 191, 36, 0.12); color: var(--warning); }
.badge--danger  { background: rgba(255, 85, 71, 0.12);  color: var(--danger); }

/* ─── Skeleton ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Hero AI Card ───────────────────────────────── */
.hero-ai {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(120% 90% at 0% 100%, rgba(255,255,255,0.04), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  overflow: hidden;
  min-height: 170px;
}

.hero-ai__sparkle {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  color: var(--text);
  opacity: 0.85;
}
.hero-ai__sparkle svg { width: 32px; height: 32px; }
.hero-ai__title { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: -0.5px; line-height: 1.15; }
.hero-ai__sub   { color: var(--text-muted); font-size: var(--fs-xs); }

/* ─── Carousel (horizontal scroll) ────────────────── */
.h-scroll {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  padding-inline: var(--s-4);
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--s-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex-shrink: 0; }
/* Safari/iOS: sondaki padding scroll-content'te kaybolmasın */
.h-scroll::after {
  content: '';
  flex: 0 0 0;
  inline-size: 0;
}

/* Style card for carousel/grid */
.style-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  position: relative;
}
.style-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.style-card:active { transform: scale(0.98); }
.style-card__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-subtle);
  font-size: 11px;
  position: relative;
  overflow: hidden;
}
.style-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.style-card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: 4px; }
.style-card__title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.style-card__meta  { font-size: var(--fs-xs); color: var(--text-muted); }

.style-card--carousel { width: 138px; }
.style-card__body { padding: 10px; }
.style-card__title { font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.style-card__meta  { font-size: 10px; color: var(--text-muted); }

.style-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--cta-fg);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.style-card.is-selected .style-card__check { display: flex; }
.style-card.is-selected { border-color: var(--text); }
.style-card.is-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  border: 2px solid var(--text);
  pointer-events: none;
}

/* ─── Sticky bottom action ───────────────────────── */
.sticky-bottom {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0;
  right: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, rgba(0,0,0,0));
  z-index: var(--z-sticky);
}
.sticky-bottom.no-nav-offset { bottom: 0; }

/* ─── Modal / Bottom Sheet ───────────────────────── */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--surface);
  border-top-left-radius: var(--r-2xl);
  border-top-right-radius: var(--r-2xl);
  padding: var(--s-4) var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom));
  z-index: calc(var(--z-modal) + 1);
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  max-height: 85dvh;
  overflow-y: auto;
}
.sheet.is-open { transform: translateY(0); }
.sheet__handle {
  width: 36px;
  height: 4px;
  background: var(--border-strong);
  border-radius: var(--r-pill);
  margin: 0 auto var(--s-4);
}

/* ─── Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top) + var(--s-4));
  left: var(--s-4);
  right: var(--s-4);
  max-width: calc(var(--container-max) - var(--s-7));
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  transform: translateY(-120%);
  transition: transform var(--dur-base) var(--ease-spring);
}
.toast.is-open { transform: translateY(0); }

/* ─── Step indicator ─────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}
.step-indicator__bar {
  width: 80px;
  height: 3px;
  background: var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.step-indicator__bar > span {
  display: block;
  height: 100%;
  background: var(--text);
  transition: width var(--dur-slow) var(--ease-out);
}

/* ─── Photo upload area ──────────────────────────── */
.upload {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  color: var(--text-muted);
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(255,255,255,0.03), transparent 70%),
    var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.upload:hover { border-color: var(--text-muted); }
.upload__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ─── Before/After slider ────────────────────────── */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  user-select: none;
  touch-action: none;
}
.ba-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider__after { clip-path: inset(0 0 0 50%); transition: clip-path var(--dur-fast) var(--ease-out); }
.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--text);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-slider__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--cta-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  font-weight: var(--fw-semibold);
}
.ba-slider__label {
  position: absolute;
  top: var(--s-3);
  padding: 4px 10px;
  background: rgba(0,0,0,0.6);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.ba-slider__label--before { left: var(--s-3); }
.ba-slider__label--after  { right: var(--s-3); }

/* ─── Calendar (horizontal day picker) ───────────── */
.day-row {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding: 0 var(--s-4);
  scrollbar-width: none;
}
.day-row::-webkit-scrollbar { display: none; }

.day-pill {
  flex-shrink: 0;
  width: 50px;
  height: 66px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.day-pill__weekday { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.day-pill__num     { font-size: var(--fs-base); font-weight: var(--fw-semibold); }
.day-pill.is-active {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-fg);
}
.day-pill.is-active .day-pill__weekday { color: var(--cta-fg); opacity: 0.7; }
.day-pill.is-disabled { opacity: 0.35; cursor: not-allowed; }

/* ─── Time grid ──────────────────────────────────── */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.time-slot {
  height: 40px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.time-slot:hover:not(.is-disabled) { border-color: var(--border-strong); }
.time-slot.is-active {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-fg);
}
.time-slot.is-disabled {
  color: var(--text-subtle);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}
.time-slot.is-taken {
  background: rgba(255,85,71,0.08);
  border-color: rgba(255,85,71,0.3);
  color: rgba(255,85,71,0.7);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
  position: relative;
}
.time-slot.is-taken::after {
  content: 'dolu';
  position: absolute;
  bottom: 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
}

/* ─── Tab strip ──────────────────────────────────── */
.tabs {
  display: flex;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px;
}
.tabs__btn {
  flex: 1;
  height: 32px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.tabs__btn.is-active {
  background: var(--text);
  color: var(--cta-fg);
}

/* ─── List row ───────────────────────────────────── */
.list-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 12px var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-fast) var(--ease-out);
  min-height: var(--touch-min);
}
.list-row:hover { background: var(--surface-2); }
.list-row__main { flex: 1; min-width: 0; }
.list-row__title { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.list-row__sub   { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }

/* ─── Loading dots / sparkle anim ────────────────── */
@keyframes pulse-soft {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.pulse { animation: pulse-soft 1.6s var(--ease-in-out) infinite; }

@keyframes sparkle-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.sparkle-rotate { animation: sparkle-rotate 6s linear infinite; transform-origin: center; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up var(--dur-slow) var(--ease-out) both; }

/* ─── Visually hidden (a11y) ─────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Empty state / Error state ──────────────────── */
.empty-state {
  max-width: 320px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-3);
}
.empty-state__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255,255,255,0.06), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: var(--s-2);
}
.empty-state__icon svg { width: 32px; height: 32px; }
.empty-state__icon--danger  { color: var(--danger); }
.empty-state__icon--warning { color: var(--warning); }
.empty-state__icon--success { color: var(--success); }
.empty-state__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
.empty-state__sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  margin: 0;
}
.empty-state__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: 100%;
  margin-top: var(--s-3);
}

/* ─── OTP input (6 digit) ────────────────────────── */
.otp-input {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
}
.otp-input input {
  width: 44px;
  height: 56px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 22px;
  font-weight: var(--fw-semibold);
  text-align: center;
  font-family: 'SFMono-Regular', ui-monospace, monospace;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.otp-input input:focus {
  outline: none;
  border-color: var(--text);
  background: var(--surface-2);
}
.otp-input input.is-filled { border-color: var(--text-muted); }

/* ─── Banner (in-page info/warning/error bar) ───── */
.banner {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 12px var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
}
.banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.banner__main { flex: 1; }
.banner__main strong { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-bottom: 2px; }
.banner__close { background: none; border: 0; color: var(--text-muted); padding: 0; margin: -2px; cursor: pointer; }
.banner--info    { border-color: var(--border-strong); }
.banner--warning { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.06); }
.banner--warning svg { color: var(--warning); }
.banner--error   { border-color: rgba(255,85,71,0.3); background: rgba(255,85,71,0.06); }
.banner--error svg { color: var(--danger); }
.banner--success { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.06); }
.banner--success svg { color: var(--success); }

/* ─── Legal prose (KVKK gibi uzun metinler) ──────── */
.legal-prose { color: var(--text); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.legal-prose h2 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); margin: var(--s-6) 0 var(--s-2); letter-spacing: -0.2px; }
.legal-prose h3 { font-size: var(--fs-base); font-weight: var(--fw-semibold); margin: var(--s-5) 0 var(--s-2); }
.legal-prose p  { margin: 0 0 var(--s-3); color: var(--text); }
.legal-prose p.lead { color: var(--text-muted); }
.legal-prose ul { padding-left: 18px; margin: 0 0 var(--s-3); }
.legal-prose ul li { margin-bottom: 6px; color: var(--text-muted); }
.legal-prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose .updated { font-size: var(--fs-xs); color: var(--text-subtle); }

/* ─── Share card (square / portrait social card) ── */
.share-card {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(120% 80% at 0% 100%, rgba(255,255,255,0.04), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.share-card__brand {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
}
.share-card__brand .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--cta-bg); color: var(--cta-fg); display:inline-flex; align-items:center; justify-content:center; font-size: 9px; }
.share-card__body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.share-card__title { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: -0.5px; line-height: 1.1; }
.share-card__sub   { font-size: var(--fs-xs); color: var(--text-muted); }

/* ─── Action sheet rows ──────────────────────────── */
.action-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px var(--s-4);
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.action-row:hover { background: var(--surface-2); }
.action-row svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.action-row--danger { color: var(--danger); }
.action-row--danger svg { color: var(--danger); }

/* ─── Pull-to-refresh indicator ──────────────────── */
.ptr {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.ptr.is-active { opacity: 1; }
.ptr svg { width: 18px; height: 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Image placeholders (when no real photo) ───── */
.ph {
  background:
    repeating-linear-gradient(
      45deg,
      var(--surface) 0,
      var(--surface) 8px,
      var(--surface-2) 8px,
      var(--surface-2) 16px
    );
  display: flex; align-items: center; justify-content: center;
  color: var(--text-subtle); font-size: 11px;
}
