/* ==========================================================================
   Furry — Yeni tasarım dili (Mor + Mercan)
   Baloo 2 (başlık) + Quicksand (metin), yumuşak yuvarlak kartlar, çizgi ikonlar
   ========================================================================== */

:root {
  --indigo: #494CA2;
  --indigo-deep: #3A3D82;
  --indigo-soft: #EDEDF9;
  --indigo-mist: #DCDEF6;
  --lilac: #C7C8EA;
  --coral: #EA8261;
  --coral-deep: #C6603B;
  --peach: #F3B183;
  --ground: #F7F6FB;
  --surface: #FFFFFF;
  --ink: #2A2640;
  --muted: #706B88;
  --line: #ECEAF5;
  --green: #3F8A55;
  --green-soft: #E3F3E8;
  --amber: #A86A0C;
  --amber-soft: #FBEEDC;
  --red: #B3412A;
  --red-soft: #FBE5DF;

  --grad-indigo: linear-gradient(160deg, #494CA2 0%, #3A3D82 100%);
  --grad-coral: linear-gradient(135deg, #EA8261, #C6603B);

  --shadow-card: 0 10px 26px rgba(46, 38, 34, 0.10);
  --shadow-row: 0 6px 18px rgba(46, 38, 34, 0.06);
  --shadow-float: 0 18px 40px rgba(58, 61, 130, 0.30);
  --shadow-coral: 0 14px 26px rgba(198, 96, 59, 0.32);

  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font-display: 'Baloo 2', 'Quicksand', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 20px;
  --appbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0; font-weight: 700; }

p { margin: 0 0 12px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }

.icon { flex-shrink: 0; display: block; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App bar ---------- */

.appbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--indigo);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.appbar__inner { height: var(--appbar-h); display: flex; align-items: center; gap: 24px; }
.brand img { height: 38px; width: auto; }
.appbar__nav { display: flex; gap: 6px; margin-left: 12px; }
.appbar__link {
  color: rgba(255, 255, 255, 0.72); font-weight: 700; font-size: 15px;
  padding: 9px 16px; border-radius: 20px; transition: background .15s, color .15s;
}
.appbar__link:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }
.appbar__link.is-active { color: var(--indigo); background: #fff; }
.appbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.appbar__profile {
  display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700;
  padding: 5px 14px 5px 5px; border-radius: 26px; background: rgba(255, 255, 255, 0.14);
}
.appbar__profile:hover, .appbar__profile.is-active { color: #fff; background: rgba(255, 255, 255, 0.24); }

/* ---------- Mobil alt menü (tasarımdaki yüzen sekme çubuğu) ---------- */

.tabbar {
  display: none;
  position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  height: 72px; padding: 0 8px; border-radius: 36px;
  background: linear-gradient(135deg, #494CA2, #3A3D82);
  box-shadow: 0 18px 40px rgba(58, 61, 130, 0.45);
  align-items: center; justify-content: space-evenly;
}
.tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; color: rgba(255, 255, 255, 0.62); }
.tabbar__item:hover { color: #fff; }
.tabbar__icon { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.tabbar__label { font-size: 11px; font-weight: 700; }
.tabbar__item.is-active { color: #fff; }
.tabbar__item.is-active .tabbar__icon { background: #fff; color: var(--indigo); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }

/* ---------- Hero (mor başlık bloğu, alt köşeler yuvarlak) ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--grad-indigo);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 34px 0 40px;
  color: #fff;
}
.hero__orb { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.hero__orb--1 { width: 260px; height: 260px; right: -70px; top: -90px; }
.hero__orb--2 { width: 140px; height: 140px; right: 18%; bottom: -60px; background: rgba(255, 255, 255, 0.05); }
.hero__inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow {
  margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral);
}
.hero__title { color: #fff; font-size: clamp(26px, 4vw, 38px); margin-top: 6px; }
.hero__sub { color: var(--lilac); font-weight: 600; margin: 6px 0 0; font-size: 14.5px; }
.hero--tight { padding-bottom: 28px; }

/* Ana sayfa büyük hero */
.landing-hero { padding: 56px 0 72px; }
.landing-hero .hero__inner { align-items: center; }
.landing-hero__text { flex: 1 1 420px; max-width: 580px; }
.landing-hero__title { color: #fff; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; margin-top: 10px; font-weight: 800; }
.landing-hero__lead { color: var(--lilac); font-size: 16.5px; font-weight: 600; margin: 16px 0 26px; max-width: 520px; }
.landing-hero__aside { flex: 1 1 320px; max-width: 420px; display: grid; gap: 14px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 20px 8px 16px; border-radius: 26px;
  background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 700; font-size: 15px; line-height: 1.1;
}
.store-btn small { display: block; font-size: 11px; font-weight: 600; color: var(--lilac); }
.store-btn:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.store-buttons--compact .store-btn { min-height: 46px; font-size: 14px; }

.stat-tile {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg); color: #fff; backdrop-filter: blur(4px);
}
.stat-tile__icon { width: 50px; height: 50px; border-radius: 25px; background: #fff; color: var(--indigo); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-tile__icon--coral { background: var(--coral); color: #fff; }
.stat-tile__value { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; }
.stat-tile__label { color: var(--lilac); font-size: 13px; font-weight: 700; margin-top: 4px; }

/* ---------- Bölümler ---------- */

.section { padding: 48px 0; }
.section--tight { padding: 28px 0; }
.section--white { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.section-head__eyebrow { color: var(--coral-deep); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--coral-deep); font-size: 14px; }
.link-more:hover { color: var(--coral); }

.page-body { padding-top: 26px; padding-bottom: 56px; }

/* ---------- Grid ---------- */

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }

/* ---------- Kartlar ---------- */

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 22px; }
.card--flat { box-shadow: var(--shadow-row); }
.card__title { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

.pet-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden; color: inherit; transition: transform .18s, box-shadow .18s;
}
a.pet-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(46, 38, 34, 0.14); color: inherit; }
.pet-card__media { position: relative; }
.pet-card__media .pet-media { height: 190px; }
.pet-card__badge {
  position: absolute; top: 12px; left: 12px; background: var(--coral-deep); color: #fff;
  font-weight: 700; font-size: 11.5px; padding: 5px 11px; border-radius: 14px;
}
.pet-card__fav {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.94); color: var(--coral); display: flex; align-items: center; justify-content: center;
}
.pet-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pet-card__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1.2; }
.pet-card__meta { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.pet-card__actions { display: flex; gap: 10px; margin-top: 12px; }

.pet-media {
  position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: rgba(255, 255, 255, 0.88);
}
.pet-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tone-coral { background: linear-gradient(135deg, #EA8261, #C6603B); }
.tone-indigo { background: linear-gradient(135deg, #6669C9, #494CA2); }
.tone-peach { background: linear-gradient(135deg, #F3B183, #EA8261); }

/* ---------- Liste satırları (klinikler, aşılar, menü) ---------- */

.row-list { display: flex; flex-direction: column; gap: 12px; }
.row-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-row); color: inherit;
  transition: transform .15s, box-shadow .15s;
}
a.row-item:hover { color: inherit; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(46, 38, 34, 0.10); }
.row-item__icon {
  width: 46px; height: 46px; border-radius: 23px; background: var(--indigo-soft); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.row-item__icon--coral { background: #FCE6DE; color: var(--coral-deep); }
.row-item__icon--green { background: var(--green-soft); color: var(--green); }
.row-item__icon--amber { background: var(--amber-soft); color: var(--amber); }
.row-item__icon--red { background: var(--red-soft); color: var(--red); }
.row-item__body { flex: 1; min-width: 0; }
.row-item__title { font-weight: 700; font-size: 15px; color: var(--ink); }
.row-item__meta { font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.row-item__chev { color: var(--muted); }
.row-item__side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.status { font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 12px; white-space: nowrap; }
.status--done { color: var(--green); background: var(--green-soft); }
.status--soon { color: var(--amber); background: var(--amber-soft); }
.status--new { color: #fff; background: var(--coral-deep); }

.year-label { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 18px 0 10px; }
.year-label:first-child { margin-top: 0; }

/* ---------- Chip'ler ---------- */

.chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 13.5px; color: var(--muted); min-height: 40px;
}
.chip:hover { color: var(--indigo); border-color: var(--lilac); }
.chip.is-active { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; background: var(--indigo-soft);
  padding: 8px 14px; border-radius: 16px; font-weight: 700; font-size: 13px; color: var(--ink);
}
.tag .icon { color: var(--indigo); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 28px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; font-size: 16px; padding: 0 28px; }
.btn--sm { min-height: 40px; font-size: 14px; padding: 0 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad-coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn--primary:hover { color: #fff; box-shadow: 0 16px 30px rgba(198, 96, 59, 0.45); }
.btn--indigo { background: var(--indigo); color: #fff; box-shadow: 0 10px 22px rgba(73, 76, 162, 0.28); }
.btn--indigo:hover { background: var(--indigo-deep); color: #fff; }
.btn--soft { background: var(--indigo-soft); color: var(--indigo); }
.btn--soft:hover { background: var(--indigo-mist); color: var(--indigo-deep); }
.btn--ghost-light { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.btn--danger { background: var(--red-soft); color: var(--red); }
.btn--danger:hover { background: #F7D3C9; color: var(--red); }
.btn--icon { width: 44px; min-height: 44px; padding: 0; border-radius: 22px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 21px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(46, 38, 34, 0.08); border: 0; cursor: pointer;
}
.icon-btn:hover { color: var(--indigo); }

.inline-form { display: inline; margin: 0; }

/* ---------- Form ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field__label { display: block; font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.field__hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.field__control {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px;
  background: var(--surface); border-radius: var(--r-md); border: 1.5px solid var(--line);
  box-shadow: 0 8px 20px rgba(58, 61, 130, 0.06); color: var(--indigo);
  transition: border-color .15s, box-shadow .15s;
}
.field__control:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(73, 76, 162, 0.14); }
.field__control input, .field__control select, .field__control textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink); padding: 14px 0;
}
.field__control select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23706B88' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; }
.field__control textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field__control--area { align-items: flex-start; }
.field__control--area .icon { margin-top: 16px; }
.field__control input::placeholder, .field__control textarea::placeholder { color: #9A96AE; font-weight: 500; }
.field__control input:disabled { color: var(--muted); }
.field__control--readonly { background: var(--ground); }

.file-drop {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r-md);
  border: 1.5px dashed var(--lilac); background: var(--surface); cursor: pointer;
}
.file-drop:hover { border-color: var(--indigo); }
.file-drop__preview { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex-shrink: 0; }
.file-drop__preview .pet-media { width: 72px; height: 72px; }
.file-drop__preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file-drop__preview .avatar { width: 100%; height: 100%; margin: 0; border: 0; box-shadow: none; }
.file-drop__text { font-weight: 700; font-size: 14px; }
.inline-icon { display: inline-block; vertical-align: -2px; }
.file-drop__text small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.file-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

/* ---------- Uyarılar ---------- */

.alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md);
  font-weight: 600; font-size: 14px; margin-bottom: 16px;
}
.alert .icon { margin-top: 1px; }
.alert > div { flex: 1; }
.alert a { font-weight: 700; text-decoration: underline; color: inherit; }
.alert--success { background: var(--green-soft); color: #245C35; }
.alert--warning { background: var(--amber-soft); color: #7A4C05; }
.alert--error { background: var(--red-soft); color: #8C2F1C; }
.alert--info { background: var(--indigo-soft); color: var(--indigo-deep); }
/* ---------- Bildirimler (toast) ---------- */

.toast-region {
  position: fixed; z-index: 70; top: calc(var(--appbar-h) + 16px); right: 20px;
  width: min(380px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px 16px 14px;
  background: var(--surface); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(42, 38, 64, 0.18), 0 2px 6px rgba(42, 38, 64, 0.06);
  animation: toast-in .38s cubic-bezier(.2, .9, .3, 1.2) backwards;
  transition: transform .3s ease, opacity .3s ease, margin .3s ease, max-height .3s ease;
  max-height: 200px;
}
.toast.is-leaving { transform: translateX(calc(100% + 24px)); opacity: 0; max-height: 0; margin-top: -10px; padding-top: 0; padding-bottom: 0; }
.toast__icon { width: 36px; height: 36px; border-radius: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.toast__body { flex: 1; min-width: 0; padding-top: 1px; }
.toast__title { margin: 0; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.toast__msg { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.45; }
.toast__close {
  width: 32px; height: 32px; border-radius: 16px; border: 0; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; margin: -2px -2px 0 0;
}
.toast__close:hover { background: var(--ground); color: var(--ink); }
.toast__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform-origin: left center;
  animation: toast-timer var(--toast-time, 5000ms) linear forwards;
}
.toast.is-paused .toast__progress { animation-play-state: paused; }

.toast--success .toast__icon { background: var(--green-soft); color: var(--green); }
.toast--success .toast__progress { background: var(--green); }
.toast--info .toast__icon { background: var(--indigo-soft); color: var(--indigo); }
.toast--info .toast__progress { background: var(--indigo); }
.toast--warning .toast__icon { background: var(--amber-soft); color: var(--amber); }
.toast--warning .toast__progress { background: #D9902A; }
.toast--error .toast__icon { background: var(--red-soft); color: var(--red); }
.toast--error .toast__progress { background: var(--red); }

@keyframes toast-in { from { transform: translateX(calc(100% + 24px)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 600px) {
  .toast-region { left: 16px; right: 16px; width: auto; top: calc(var(--appbar-h) + 10px); }
  .toast.is-leaving { transform: translateY(-16px); }
  @keyframes toast-in { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .toast.is-leaving { transform: none; }
}

.empty { text-align: center; padding: 36px 20px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-row); }
.empty__icon { width: 60px; height: 60px; border-radius: 30px; background: var(--indigo-soft); color: var(--indigo); display: inline-flex; align-items: center; justify-content: center; }
.empty__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 12px 0 4px; }
.empty__text { color: var(--muted); margin: 0 auto 16px; max-width: 420px; }

/* ---------- Avatar ---------- */

.avatar {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%; background: var(--grad-coral); color: #fff; overflow: hidden;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 34px; height: 34px; }
.avatar--md { width: 52px; height: 52px; }
.avatar--lg { width: 88px; height: 88px; box-shadow: 0 10px 22px rgba(198, 96, 59, 0.32); border: 4px solid #fff; }

/* ---------- Kimlik doğrulama sayfaları (mor zemin) ---------- */

.auth { background: var(--indigo); padding: 40px 0 72px; flex: 1; }
.auth__card { max-width: 440px; margin: 0 auto; }
.auth__head { text-align: center; color: #fff; margin-bottom: 28px; }
.auth__mark { width: 64px; height: 64px; border-radius: 32px; background: rgba(255, 255, 255, 0.14); display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 18px; }
.auth__title { color: #fff; font-size: 28px; font-weight: 800; }
.auth__sub { color: var(--lilac); margin: 8px 0 0; font-weight: 600; }
.auth .field label { color: #fff; }
.auth .field__hint { color: var(--lilac); }
.auth .field__control { border-color: transparent; box-shadow: 0 8px 20px rgba(26, 28, 80, 0.22); }
.auth .field__control:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(234, 130, 97, 0.28); }
.auth__links { text-align: center; color: var(--lilac); font-weight: 600; margin-top: 22px; font-size: 14px; }
.auth__links a { color: #FFB59C; font-weight: 700; }
.auth__links a:hover { color: #fff; }
.auth__forgot { display: block; text-align: right; color: var(--lilac); font-weight: 700; font-size: 13.5px; margin-top: -4px; }
.auth__forgot:hover { color: #fff; }
.auth .alert { box-shadow: 0 8px 20px rgba(26, 28, 80, 0.2); }

/* ---------- Profil ---------- */

.profile-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.profile-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--appbar-h) + 18px); }
.profile-card { text-align: center; padding: 26px 20px 20px; margin-top: 38px; }
.profile-card .avatar--lg { margin-top: -70px; }
.profile-card__name { font-family: var(--font-display); font-weight: 800; font-size: 21px; margin-top: 10px; }
.profile-card__mail { color: var(--muted); font-size: 13.5px; font-weight: 600; word-break: break-all; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.profile-stat { background: var(--ground); border-radius: 16px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--indigo); }
.profile-stat b { font-family: var(--font-display); font-size: 18px; color: var(--ink); line-height: 1; }
.profile-stat span { font-size: 11.5px; color: var(--muted); font-weight: 700; }

.menu-group__title { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 4px 10px; }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-list .row-item { padding: 10px 12px; border-radius: 18px; }
.menu-list .row-item__icon { width: 40px; height: 40px; }
.menu-list .row-item.is-active { background: var(--indigo); box-shadow: 0 10px 22px rgba(73, 76, 162, 0.28); }
.menu-list .row-item.is-active .row-item__title { color: #fff; }
.menu-list .row-item.is-active .row-item__meta { color: var(--lilac); }
.menu-list .row-item.is-active .row-item__icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.menu-list .row-item.is-active .row-item__chev { color: #fff; }

.subhead { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.subhead h2 { font-size: 24px; flex: 1; }
.subhead__back { display: none; }

.pets-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.pets-strip::-webkit-scrollbar { display: none; }
.pet-bubble { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; flex-shrink: 0; color: var(--ink); font-weight: 700; font-size: 13px; text-align: center; }
.pet-bubble__img { width: 70px; height: 70px; border-radius: 35px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(46, 38, 34, 0.12); }
.pet-bubble__img .pet-media { width: 100%; height: 100%; }
.pet-bubble__img .pet-media .icon { width: 30px; height: 30px; }
.pet-bubble--add .pet-bubble__img { border: 2px dashed var(--lilac); background: var(--surface); box-shadow: none; display: flex; align-items: center; justify-content: center; color: var(--indigo); }
.pet-bubble span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-row); color: var(--ink);
  font-weight: 700; font-size: 13px; text-align: center;
}
.quick-action:hover { color: var(--indigo); transform: translateY(-2px); }
.quick-action__icon { width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: var(--indigo-soft); color: var(--indigo); }
.quick-action:nth-child(2n) .quick-action__icon { background: #FCE6DE; color: var(--coral-deep); }

.welcome {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-card); margin-top: -26px; position: relative;
}
.welcome__text { flex: 1; min-width: 0; }
.welcome__text small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.welcome__text strong { font-family: var(--font-display); font-size: 20px; }

/* ---------- Detay sayfaları ---------- */

.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.detail__media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; }
.detail__media .pet-media .icon { width: 96px; height: 96px; }
.detail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail__name { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.detail__about h3 { font-size: 17px; margin: 24px 0 8px; font-family: var(--font-body); font-weight: 700; }
.detail__about p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.map {
  position: relative; height: 320px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, #EDEDF9, #DCDEF6); box-shadow: var(--shadow-card); z-index: 0;
}
.map::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px); background-size: 22px 22px;
}
.map__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--indigo); font-weight: 700; text-align: center; padding: 20px; }
.map-pin {
  width: 38px; height: 38px; border-radius: 19px; background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(198, 96, 59, 0.4); border: 3px solid #fff;
}
.map-me {
  display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--indigo);
  border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(73, 76, 162, 0.25), 0 4px 10px rgba(0, 0, 0, 0.25);
}
.clinic-status { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--indigo); margin: 0 0 12px; }
#clinic-list[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
.leaflet-container { font-family: var(--font-body) !important; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; }
.leaflet-popup-content { font-weight: 600; margin: 12px 16px !important; }
.leaflet-popup-content a { font-weight: 700; }

.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 14px; align-items: end; padding: 18px; }
.filter-bar .field__control { min-height: 48px; box-shadow: none; }
.filter-bar .field__control select { padding: 11px 22px 11px 0; }
.filter-bar > * { min-width: 0; }
.filter-bar__actions { display: flex; gap: 10px; }
[hidden] { display: none !important; }

.search-bar { display: flex; gap: 10px; }
.search-bar .field__control { flex: 1; }

.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--amber); }
.rating .icon { fill: currentColor; }

.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment:first-child { border-top: 0; padding-top: 0; }
.comment__head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.comment p { color: var(--muted); margin: 6px 0 0; }

.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { cursor: pointer; color: #D5D2E3; margin: 0; padding: 2px; }
.stars-input label .icon { width: 30px; height: 30px; fill: currentColor; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #E0A23B; }
.stars-input input:focus-visible + label { outline: 3px solid var(--coral); border-radius: 8px; }

/* ---------- Ana sayfa parçaları ---------- */

.feature { display: flex; flex-direction: column; gap: 12px; }
.feature__icon { width: 54px; height: 54px; border-radius: 27px; display: flex; align-items: center; justify-content: center; background: var(--indigo-soft); color: var(--indigo); }
.feature:nth-child(2n) .feature__icon { background: #FCE6DE; color: var(--coral-deep); }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); margin: 0; }

.about-media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 5 / 4; background: var(--indigo-soft); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.prose { color: #4A4560; font-size: 15.5px; line-height: 1.7; }
.prose h2, .prose h3, .prose h4, .prose h5 { margin: 22px 0 8px; font-size: 19px; }
.prose p { margin: 0 0 14px; }
.prose a { text-decoration: underline; }

/* Kaydırma kabı kartların gölgesini kesip arkada gri bir şerit bırakıyordu; düz ızgara kullanılır */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(46, 38, 34, 0.07); }
.testimonial__quote { color: var(--coral); }
.testimonial p { color: #4A4560; margin: 0; flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: 12px; font-weight: 700; }

.cta-band {
  position: relative; overflow: hidden; background: var(--grad-indigo); color: #fff; border-radius: var(--r-xl);
  padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 28px); }
.cta-band p { color: var(--lilac); margin: 8px 0 0; font-weight: 600; }
.cta-band .alert { margin: 0 0 12px; }
.subscribe { display: flex; gap: 10px; }
.subscribe .field__control { flex: 1; border-color: transparent; }

.contact-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- Footer ---------- */

.footer { background: #2A2640; color: #CFCDE0; padding: 48px 0 24px; margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 14px; }
.footer__brand p { max-width: 360px; color: #B9B6CF; }
.footer__title { color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer__links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: #CFCDE0; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer__links a:hover { color: #fff; }
.footer__address { display: flex; gap: 8px; align-items: flex-start; }
.footer__address .icon { margin-top: 3px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 21px; background: rgba(255, 255, 255, 0.08); color: #fff; display: flex; align-items: center; justify-content: center; }
.social a:hover { background: var(--coral-deep); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 32px; padding-top: 20px; font-size: 13.5px; color: #9F9BB8; }
.footer__bottom p { margin: 0; }

/* ---------- Bakım sayfası ---------- */

.maintenance { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--grad-indigo); color: #fff; text-align: center; padding: 24px; }
.maintenance h1 { color: #fff; font-size: 32px; margin: 26px 0 8px; }
.maintenance p { color: var(--lilac); font-weight: 600; max-width: 440px; margin: 0 auto 24px; }
.maintenance img { height: 54px; width: auto; margin: 0 auto; }
.maintenance .store-buttons { justify-content: center; }

/* ---------- Yardımcılar ---------- */

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.text-center { text-align: center; }
.hide-lg { display: none; }

/* ---------- Duyarlı düzen ---------- */

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar__actions { grid-column: 1 / -1; }
  .profile-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --appbar-h: 64px; }
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .appbar__nav { display: none; }
  .tabbar { display: flex; }
  .brand img { height: 32px; }
  .appbar__profile span { display: none; }
  .appbar__profile { padding: 4px; }
  .hide-sm { display: none !important; }
  .hide-lg { display: initial; }

  .split, .detail, .cta-band { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .contact-tiles { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .profile-layout.is-sub .profile-side { display: none; }
  .subhead__back { display: inline-flex; }
  .landing-hero { padding: 36px 0 52px; }
  .landing-hero__aside { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .landing-hero__aside .stat-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .landing-hero__aside .stat-tile__icon { width: 40px; height: 40px; }
  .landing-hero__aside .stat-tile__value { font-size: 22px; }
  .detail__media { border-radius: var(--r-lg); }
  .footer { padding-bottom: 24px; }
  .cta-band { padding: 26px 22px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .grid--2, .grid--4, .form-row { grid-template-columns: 1fr; }
  .grid--cards { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 24px 0 30px; }
  .section { padding: 36px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .subscribe, .search-bar { flex-direction: column; }
  .landing-hero__aside { grid-template-columns: 1fr; }
  .landing-hero__aside .stat-tile { flex-direction: row; align-items: center; }
  .tabbar__item { min-width: 0; flex: 1; }
  .appbar .btn--sm { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
