/* ==========================================================================
   Yiwu Promosyon — Ana stil dosyası
   Tasarım dili: beyaz zemin, indigo/mor vurgu, orta ölçekli animasyon
   ========================================================================== */

/* ---------- 1. Tokenlar ---------- */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --font: "Outfit", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Mercan kırmızısı — düz, gradyansız */
  --brand-1: #e8474e;
  --brand-2: #f26a70;
  --brand-grad: linear-gradient(135deg, #ee5259, #f5868a);
  --brand-soft: #fdeef0;
  --brand-soft-2: #fef6f6;

  --ink: #16181d;
  --ink-2: #3d424b;
  --muted: #7b818c;
  --muted-2: #a9aeb7;

  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --line: #ececef;
  --line-2: #f5f5f7;
  --line-box: #e9e9ec;   /* kutu/kart kenarlığı — ince ve açık */

  --ok: #1f9d63;
  --ok-soft: #eaf7f0;
  --warn: #a4760c;
  --warn-soft: #fdf4e0;
  --bad: #d93a3a;
  --bad-soft: #fdecec;
  --info: #2f6fe4;
  --info-soft: #edf3fe;

  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --sh-1: 0 1px 2px rgba(16, 18, 22, .04);
  --sh-2: 0 2px 10px rgba(16, 18, 22, .06);
  --sh-3: 0 10px 30px rgba(16, 18, 22, .10);
  --sh-brand: none;

  --head-h: 68px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--brand-soft); color: var(--brand-1); }

:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
  border-radius: 4px;
}

/* İnce scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 20px; border: 3px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* ---------- 3. Tipografi ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 16px; }

.lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; }
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-sm { padding: 44px 0; }
.section-soft { background: var(--bg-soft); }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.col { flex-direction: column; }
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-10 { margin-bottom: 10px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.full { width: 100%; }
.tar { text-align: right; }
.tac { text-align: center; }

.section-head { margin-bottom: 34px; }
.section-head h2 { margin-bottom: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-soft); color: var(--brand-1);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow svg { width: 14px; height: 14px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--sh-2); }

.header-inner {
  height: var(--head-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 26px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: var(--sh-brand);
  transition: transform .3s var(--ease-out);
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand-name span { color: var(--brand-1); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--brand-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.main-nav a:hover { color: var(--brand-1); background: var(--brand-soft); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--brand-1); font-weight: 600; }

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

.lang-switch {
  display: flex; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang-switch button, .lang-switch a {
  border: 0; background: transparent; cursor: pointer; text-decoration: none;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 4px 11px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang-switch button.active, .lang-switch a.active { background: #fff; color: var(--brand-1); box-shadow: var(--sh-1); }

.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 13px 5px 5px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.user-chip:hover { border-color: var(--brand-1); box-shadow: var(--sh-1); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  flex-shrink: 0;
}
.avatar.lg { width: 62px; height: 62px; font-size: 22px; }
.avatar-holder { position: relative; overflow: visible; }
.avatar-badge {
  position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px;
  padding: 0 4px; font-size: 10px; border: 2px solid #fff;
}

.burger {
  display: none; width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; cursor: pointer; place-items: center;
}
.burger svg { width: 20px; height: 20px; }

/* Duyuru şeridi */
.announce {
  background: var(--brand-grad); color: #fff;
  overflow: hidden; position: relative;
  font-size: 13.5px; font-weight: 500;
}
.announce-track {
  display: flex; gap: 60px; white-space: nowrap;
  padding: 9px 0; width: max-content;
  animation: marquee 34s linear infinite;
}
.announce:hover .announce-track { animation-play-state: paused; }
.announce-track span { display: inline-flex; align-items: center; gap: 9px; }
.announce-track svg { width: 15px; height: 15px; opacity: .9; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 6. Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), box-shadow .22s var(--ease),
              background .2s, color .2s, border-color .2s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 32px rgba(79, 70, 229, .38); transform: translateY(-2px); }

.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand-1); color: var(--brand-1); background: var(--brand-soft); }

.btn-soft { background: var(--brand-soft); color: var(--brand-1); }
.btn-soft:hover:not(:disabled) { background: #e0e7ff; }

.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; transform: translateY(-2px); }

.btn-danger-soft { background: var(--bad-soft); color: var(--bad); border-color: #fecaca; }
.btn-danger-soft:hover:not(:disabled) { background: #fee2e2; }

.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: var(--r); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-icon { padding: 9px; width: 38px; height: 38px; }
.btn-block { width: 100%; }

/* ---------- 7. Kart ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease-out), border-color .3s;
}
.card-pad { padding: 24px; }
.card-hover:hover { box-shadow: var(--sh-3); transform: translateY(-4px); border-color: #dbe1ea; }
.card-head {
  padding: 18px 24px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.card-head h3 { font-size: 17px; }
.card-body { padding: 24px; }
.card-foot { padding: 16px 24px; border-top: 1px solid var(--line-2); background: var(--bg-soft); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Özellik kartı */
.feature { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; height: 100%; }
.feature-ico {
  width: 50px; height: 50px; border-radius: 15px;
  background: var(--brand-soft); color: var(--brand-1);
  display: grid; place-items: center; margin-bottom: 18px;
  transition: transform .35s var(--ease-out), background .3s;
}
.feature-ico svg { width: 24px; height: 24px; }
.feature:hover .feature-ico { transform: scale(1.1) rotate(-6deg); background: var(--brand-grad); color: #fff; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* İstatistik */
.stat { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.stat-val { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 8. Formlar ---------- */
.field { margin-bottom: 17px; }
.field > label, .lbl {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px;
}
.req { color: var(--bad); }

.input, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="date"], input[type="time"], input[type="number"],
input[type="search"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font-size: 14.5px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 38px;
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--brand-1);
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, .13);
}
.input.err, input.err, select.err, textarea.err { border-color: var(--bad); box-shadow: 0 0 0 3.5px rgba(220, 38, 38, .1); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err-text { font-size: 12.5px; color: var(--bad); margin-top: 6px; display: none; }
.err-text.show { display: block; }

.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.check input[type="checkbox"], .check input[type="radio"] {
  width: 17px; height: 17px; accent-color: var(--brand-1); margin-top: 2px; cursor: pointer; flex-shrink: 0;
}

/* Seçilebilir kutu (radio/checkbox kart) */
.pick {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: #fff; transition: border-color .2s, background .2s, box-shadow .2s;
  font-size: 14.5px; font-weight: 500;
}
.pick:hover { border-color: var(--brand-1); background: var(--brand-soft); }
.pick input { accent-color: var(--brand-1); width: 17px; height: 17px; cursor: pointer; }
.pick.on { border-color: var(--brand-1); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(79, 70, 229, .09); }
.pick svg { width: 19px; height: 19px; color: var(--brand-1); }

/* Anahtar (switch) */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px;
  cursor: pointer; transition: background .28s var(--ease);
}
.switch .slider::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; box-shadow: var(--sh-1);
  transition: transform .28s var(--ease-out);
}
.switch input:checked + .slider { background: var(--brand-1); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------- 9. Rozet / durum ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }

.b-gray  { background: #f1f5f9; color: #475569; }
.b-green { background: var(--ok-soft); color: var(--ok); }
.b-red   { background: var(--bad-soft); color: var(--bad); }
.b-amber { background: var(--warn-soft); color: var(--warn); }
.b-blue  { background: var(--info-soft); color: var(--info); }
.b-brand { background: var(--brand-soft); color: var(--brand-1); }

/* Durum kenarlıklı randevu kartı */
.rec { border-left: 4px solid var(--line); }
.rec.s-gray  { border-left-color: #94a3b8; }
.rec.s-green { border-left-color: var(--ok); }
.rec.s-red   { border-left-color: var(--bad); }
.rec.s-amber { border-left-color: var(--warn); }
.rec.s-blue  { border-left-color: var(--info); }

/* Bildirim sayacı */
.dot-count {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.dot-count.brand { background: var(--brand-1); }

/* ---------- 10. Tablo ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 620px; }
table.tbl th {
  text-align: right; font-size: 12.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
  padding: 13px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl th:first-child, table.tbl td:first-child { text-align: left; }
table.tbl th:not(:first-child), table.tbl td:not(:first-child) { text-align: left; }
table.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: 13px; vertical-align: middle; }
table.tbl tbody tr { transition: background .18s; }
table.tbl tbody tr:hover { background: var(--bg-soft); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr.ct-row { cursor: pointer; }
table.tbl tbody tr.ct-row:focus-visible { outline: 2px solid var(--brand-1); outline-offset: -2px; }

/* ---------- Kayıt detay pop-up (telefon/e-posta/adres) ---------- */
.cd-row { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.cd-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cd-row:first-child { padding-top: 0; }
.cd-lbl { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cd-val { font-size: 14.5px; color: var(--ink); line-height: 1.4; word-break: break-word; }

/* ---------- 11. Filtre çubuğu ---------- */
.filters {
  display: flex; gap: 11px; flex-wrap: wrap; align-items: center;
  padding: 16px 20px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 22px;
}
.filters .search { position: relative; flex: 1 1 240px; min-width: 190px; }
.filters .search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted-2); pointer-events: none;
}
.filters .search input { padding-left: 40px; }
.filters select { width: auto; min-width: 150px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--brand-1); color: var(--brand-1); }
.chip.on { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: var(--sh-brand); }

/* ---------- 12. Sayfalama ---------- */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; cursor: pointer; font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.pager button:hover:not(:disabled) { border-color: var(--brand-1); color: var(--brand-1); }
.pager button.on { background: var(--brand-grad); color: #fff; border-color: transparent; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 13. Uyarı kutuları ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 17px; border-radius: var(--r); font-size: 14px;
  border: 1px solid transparent; margin-bottom: 18px;
}
.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.a-ok   { background: var(--ok-soft); color: #065f46; border-color: #a7f3d0; }
.a-bad  { background: var(--bad-soft); color: #991b1b; border-color: #fecaca; }
.a-warn { background: var(--warn-soft); color: #92400e; border-color: #fde68a; }
.a-info { background: var(--info-soft); color: #1e40af; border-color: #bfdbfe; }

/* ---------- 14. Kullanıcı paneli (navigation) ----------
   Yan panel her ekran boyutunda soldan kayan tam bir overlay'dir —
   yalnızca profil rozetine tıklanınca açılır, sayfa akışında yer kaplamaz. */
.shell { display: block; padding: 28px 0 60px; }
.sidenav {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 160;
  width: min(300px, 86vw); flex-shrink: 0;
  background: #fff; border: 0; border-right: 1px solid var(--line); border-radius: 0;
  padding: 16px 16px 26px; box-shadow: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
  visibility: hidden; transform: translateX(-100%);
  transition: transform .32s var(--ease-out), visibility 0s linear .32s;
}
.sidenav.open {
  visibility: visible; transform: none; box-shadow: var(--sh-3);
  transition: transform .32s var(--ease-out), visibility 0s;
}
.sidenav-user { display: flex; align-items: center; gap: 11px; padding: 8px 42px 16px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.sidenav-user > span:last-child { min-width: 0; }
.sidenav-user .nm { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.sidenav-user .em { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidenav a, .sidenav button.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: var(--r-sm); border: 0; background: transparent;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease-out);
  text-align: left; margin-bottom: 2px;
}
.sidenav a svg, .sidenav button.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: color .2s; }
.sidenav a:hover, .sidenav button.nav-item:hover { background: var(--brand-soft); color: var(--brand-1); transform: translateX(3px); }
.sidenav a:hover svg, .sidenav button.nav-item:hover svg { color: var(--brand-1); }
.sidenav a.active { background: var(--brand-grad); color: #fff; box-shadow: var(--sh-brand); }
.sidenav a.active svg { color: #fff; }
.sidenav .sub {
  position: relative; padding-left: 28px; margin-bottom: 4px;
  overflow: hidden; max-height: 0; transition: max-height .35s var(--ease);
}
.sidenav .sub.open { max-height: 280px; }
.sidenav .sub::before {
  content: ""; position: absolute; left: 17px; top: 5px; bottom: 7px;
  width: 2px; border-radius: 2px; background: var(--line);
}
.sidenav .sub a { font-size: 13.5px; padding: 8px 12px; }
.sidenav .sep { height: 1px; background: var(--line-2); margin: 10px 4px; }
.sidenav .danger { color: var(--bad); }
.sidenav .danger svg { color: var(--bad); }
.sidenav .danger:hover { background: var(--bad-soft); color: var(--bad); }

/* Kapat butonu ve perde */
.sidenav-close {
  display: flex; position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; padding: 0; margin: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink-2); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.sidenav-close svg { width: 18px; height: 18px; }
.sidenav-close:hover { background: var(--bad-soft); color: var(--bad); border-color: #fecaca; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 155;
  background: rgba(15, 23, 42, .42); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.nav-backdrop.on { opacity: 1; pointer-events: auto; }

/* Sidenav'ı olmayan sayfalarda profil rozetinin küçük açılır menüsü */
.chip-dd {
  position: fixed; z-index: 160; min-width: 200px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 8px; opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity .18s, transform .18s;
}
.chip-dd.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chip-dd a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; color: var(--ink); }
.chip-dd a:hover { background: var(--bg-soft); }
.chip-dd a svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.chip-dd .sep { height: 1px; background: var(--line-2); margin: 6px 4px; }

.pane { flex: 1; min-width: 0; }
.pane-head { margin-bottom: 24px; }
.pane-head h1 { font-size: clamp(23px, 3vw, 30px); margin-bottom: 5px; }

/* ---------- 15. Ürün kartı ---------- */
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease-out); position: relative; }
.p-card:hover { box-shadow: var(--sh-3); transform: translateY(-5px); }
.p-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.p-thumb img, .p-thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.p-card:hover .p-thumb img, .p-card:hover .p-thumb .ph { transform: scale(1.07); }
.p-thumb .ph { display: grid; place-items: center; background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: var(--brand-1); }
.p-thumb .ph svg { width: 46px; height: 46px; opacity: .5; }
.p-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: 11.5px; font-weight: 600; color: var(--brand-1); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.p-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-price { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.p-price small { font-size: 12px; font-weight: 600; color: var(--muted); }

.fav {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  width: 35px; height: 35px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .93); backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--sh-2); transition: transform .22s var(--ease-out), background .2s;
}
.fav svg { width: 18px; height: 18px; color: var(--muted); fill: none; transition: color .2s, fill .2s; }
.fav:hover { transform: scale(1.13); }
.fav.on svg { color: #f59e0b; fill: #f59e0b; }
.fav.pop { animation: pop .4s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

.p-flag {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--brand-grad); color: #fff; box-shadow: var(--sh-2);
}
.p-flag.out { background: #475569; }

/* ---------- 16. Mesajlaşma ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--head-h) - 190px); min-height: 560px; max-height: calc(100vh - var(--head-h) - 90px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat-head { padding: 13px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: #fff; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 16px 18px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 5px; }
.msg { max-width: 78%; display: flex; flex-direction: column; animation: msgIn .32s var(--ease-out) both; }
.msg + .msg { margin-top: 3px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.msg.me { align-self: flex-end; align-items: flex-end; margin-left: auto; }
.msg.them { align-self: flex-start; }
.bubble { padding: 9px 13px; border-radius: 15px; font-size: 14.5px; line-height: 1.45; word-break: break-word; white-space: pre-wrap; box-shadow: var(--sh-1); }
.msg.me .bubble { background: var(--brand-grad); color: #fff; border-bottom-right-radius: 5px; }
.msg.them .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-meta { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 2px; padding: 0 4px; }
.msg-meta svg { width: 15px; height: 15px; }
.tick-read { color: var(--info); }
.quote {
  border-left: 3px solid rgba(255, 255, 255, .55); padding: 5px 10px; margin-bottom: 7px;
  font-size: 12.5px; opacity: .88; border-radius: 4px; background: rgba(255, 255, 255, .14);
}
.msg.them .quote { border-left-color: var(--brand-1); background: var(--brand-soft); color: var(--ink-2); opacity: 1; }
.chat-attach { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.16); margin-bottom: 6px; font-size: 13px; }
.msg.them .chat-attach { background: var(--bg-soft); }
.chat-attach svg { width: 20px; height: 20px; flex-shrink: 0; }
.chat-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.chat-input { display: flex; gap: 9px; align-items: flex-end; }
.chat-input textarea { min-height: 44px; max-height: 130px; resize: none; border-radius: var(--r); padding: 11px 14px; }
.typing { display: flex; gap: 3px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-1); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* ---------- 17. Bildirim satırı ---------- */
.notif {
  display: flex; gap: 14px; padding: 17px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 11px;
  cursor: pointer; transition: box-shadow .25s, transform .25s var(--ease-out), border-color .2s;
  border-left-width: 4px;
}
.notif:hover { box-shadow: var(--sh-2); transform: translateX(4px); }
.notif.unread { background: linear-gradient(90deg, var(--brand-soft), #fff 40%); }
.notif-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.notif-ico svg { width: 19px; height: 19px; }
.notif h4 { font-size: 14.5px; margin-bottom: 3px; }
.notif p { font-size: 13.5px; color: var(--muted); }
.notif time { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.barrier { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.barrier::before, .barrier::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 17b. Randevu kartı (bilet görünümü) ---------- */
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr 216px;
  background: #fff; border: 1.5px solid var(--line-box); border-left-width: 6px;
  border-radius: 16px; overflow: hidden; margin-bottom: 14px;
  transition: box-shadow .28s var(--ease), transform .28s var(--ease-out);
}
.ticket:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.ticket.s-gray  { border-left-color: #94a3b8; }
.ticket.s-green { border-left-color: var(--ok); }
.ticket.s-red   { border-left-color: var(--bad); }
.ticket.s-amber { border-left-color: var(--warn); }
.ticket.s-blue  { border-left-color: var(--info); }

.tk-main { padding: 18px 22px; min-width: 0; }
.tk-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; padding-right: 92px; }
/* Durum rozeti kartın en sağ üst köşesine sabitlenir — akıştan bağımsız, her zaman aynı yerde. */
.tk-status-corner { position: absolute; top: 12px; right: 12px; z-index: 2; }
@media (max-width: 560px) { .tk-top { padding-right: 78px; } }
.tk-code {
  margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tk-title { font-size: 17px; letter-spacing: -.02em; margin-bottom: 18px; }

.tk-route { display: flex; align-items: center; gap: 14px; }
.tk-pt { min-width: 0; }
.tk-pt b { display: block; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.tk-pt span { font-size: 11.5px; color: var(--muted); }
.tk-pt.end { text-align: right; }
.tk-line { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 54px; }
.tk-line .bar {
  flex: 1; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #cbd5e1 0 6px, transparent 6px 11px);
}
.tk-line .mid {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-1); display: grid; place-items: center;
}
.tk-line .mid svg { width: 15px; height: 15px; }

.tk-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.tk-meta span { display: flex; align-items: center; gap: 6px; }
.tk-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Çin + kullanıcının ülke saatinin tek blokta, alt alta gösterimi.
   Çin saati öncelikli/vurgulu (kalın, marka rengi); ülke saati ikincil (ince, gri, küçük) — karışmasın diye. */
.tk-time-dual { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.tk-time-dual div { display: flex; align-items: center; gap: 6px; }
.tk-time-dual svg { width: 14px; height: 14px; flex-shrink: 0; }
.tk-time-dual .tk-cn { font-size: 13.5px; font-weight: 700; color: var(--brand-1); }
.tk-time-dual .tk-local { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.tk-time-dual .tk-cn svg { color: var(--brand-1); }
.tk-time-dual .tk-local svg { width: 12px; height: 12px; }

/* Sade güzergah/tarih satırı (eski dashed "uçak bileti" çizgisinin yerine).
   Tek satırda kalır; sığmazsa taşmak yerine kayan yazı (marquee) olur. */
.tk-route-sade { overflow: hidden; font-size: 13px; color: var(--ink); }
.tk-route-inner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tk-route-sade span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tk-route-sade svg { width: 13px; height: 13px; color: var(--muted-2); flex-shrink: 0; }
.tk-route-arrow { color: var(--muted-2); }
.tk-route-sade.mq-active .tk-route-inner { animation: tkMarquee var(--mq-dur, 6s) ease-in-out infinite alternate; padding-right: 18px; }
@keyframes tkMarquee {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--mq-dist, 0)); }
}
.tk-route-count { font-size: 11.5px; font-weight: 600; color: var(--brand-1); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* Genel amaçlı tek-satır kaydırma (marquee) sarmalayıcısı — güzergah dışındaki taşan metinler için de kullanılır. */
.mq-wrap { overflow-x: auto; overflow-y: hidden; min-width: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mq-wrap::-webkit-scrollbar { display: none; }
.mq-inner { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mq-wrap.mq-active .mq-inner { animation: tkMarquee var(--mq-dur, 6s) ease-in-out infinite alternate; padding-right: 18px; }
.mq-wrap.mq-user-scrolling .mq-inner { animation: none; }

/* Eşya Durumu butonu: metin taşarsa kayar, ok ikonu sabit kalır */
#esyaBtn { display: flex; align-items: center; gap: 8px; overflow: hidden; }
#esyaBtn .mq-wrap { flex: 1; text-align: left; }
#esyaBtn svg:last-child { flex-shrink: 0; }

.tk-stub {
  border-left: 1px solid var(--line-2); background: var(--bg-soft);
  padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.tk-price { font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--ok); }
.tk-price.tk-price-pending { font-size: 14px; color: var(--warn); line-height: 1.35; }
.tk-bar {
  height: 28px; border-radius: 2px; opacity: .7;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px,
              var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 10px, transparent 10px 13px);
}
/* Masaüstü/tablet: tk-stub dar bir sütun olduğu için butonlar alt alta ve eşit tam genişlikte durur. */
.tk-acts { display: flex; flex-direction: column; gap: 6px; }
.tk-acts .btn { width: 100%; justify-content: center; padding: 6px 10px; font-size: 11.5px; }
.tk-acts .btn svg { width: 12px; height: 12px; }

@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .tk-stub {
    border-left: 0; border-top: 1px solid var(--line-2);
    flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap;
  }
  .tk-bar { display: none; }
  /* Mobilde tk-stub yatay bir şerit olduğu için butonlar da tekrar yan yana, doğal genişlikte gösterilir. */
  .tk-acts { flex-direction: row; flex-wrap: wrap; }
  .tk-acts .btn { width: auto; }
}

@media (max-width: 560px) {
  .ticket { border-radius: 12px; margin-bottom: 10px; }
  .tk-main { padding: 13px 14px; }
  .tk-top { margin-bottom: 7px; gap: 6px; }
  .tk-title { font-size: 14.5px; margin-bottom: 9px; }
  .tk-route-sade { font-size: 12px; margin-bottom: 2px; }
  .tk-meta { gap: 5px 12px; margin-top: 9px; font-size: 11.5px; }
  .tk-stub { padding: 12px 14px; }
  .tk-price { font-size: 19px; }
  .tk-price.tk-price-pending { font-size: 13px; }
}

/* ---------- 18. Zaman çizelgesi (program) ---------- */
.tl { position: relative; padding-left: 30px; }
.tl::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand-1);
}
.tl-item.done::before { background: var(--ok); border-color: var(--ok); }
.tl-item.past::before { background: var(--muted-2); border-color: var(--muted-2); }
.tl-day-sep {
  position: relative; margin: 4px 0 14px -30px; padding-left: 30px; display: flex; align-items: center; gap: 10px;
}
.tl-day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tl-day-sep span {
  font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  background: var(--bg-soft); padding: 3px 10px; border-radius: 999px; flex-shrink: 0;
}
.tl-day-sep:first-child { margin-top: 0; }

/* ---------- 19. Modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(3px); z-index: 100;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 540px;
  max-height: 88vh; overflow-y: auto; box-shadow: var(--sh-3);
  transform: translateY(18px) scale(.97); transition: transform .3s var(--ease-out);
}
.modal-bg.open .modal { transform: none; }
.modal-head { padding: 22px 26px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-body { padding: 18px 26px 26px; }
.modal-foot { padding: 16px 26px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x-btn { border: 0; background: var(--bg-soft); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; flex-shrink: 0; }
.x-btn:hover { background: var(--bad-soft); color: var(--bad); }
.x-btn svg { width: 17px; height: 17px; }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px; padding: 13px 18px;
  background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: var(--sh-3);
  font-size: 14px; font-weight: 500; animation: toastIn .35s var(--ease-out) both; max-width: 340px;
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.ok svg { color: #34d399; }
.toast.bad svg { color: #f87171; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- 19a. İletişim kayıt satırları ---------- */
.ct {
  border: 1px solid #d7dfea; border-radius: var(--r);
  background: #fff; padding: 15px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  transition: border-color .2s, box-shadow .2s;
  animation: ctIn .3s var(--ease-out) both;
}
.ct:last-child { margin-bottom: 0; }
.ct:hover { border-color: #b9c6da; box-shadow: 0 3px 10px rgba(15, 23, 42, .07); }
.ct:focus-within { border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
@keyframes ctIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.ct-top { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.ct-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.ct-no { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line-2); border-radius: 6px; padding: 2px 8px; }
.ct .field { margin-bottom: 11px; }
.ct .field:last-child { margin-bottom: 0; }

.tel-row { display: flex; gap: 10px; }
.tel-row select { width: 148px; flex-shrink: 0; font-size: 15px; }
.tel-row input { flex: 1; min-width: 0; }

.ct-empty {
  text-align: center; padding: 34px 20px; border: 1px dashed #cbd5e1;
  border-radius: var(--r); color: var(--muted); font-size: 14px; background: #fff;
}
.ct-empty svg { margin: 0 auto; color: var(--muted-2); opacity: .7; }

.ct-wrap { border: 1px solid #dbe2ec; border-radius: var(--r-lg); background: var(--bg-soft); padding: 16px; }

.row-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Kart içinde kenarlıksız tablo (çift çerçeve olmasın) */
.plain-table { overflow-x: auto; }
.plain-table table.tbl { min-width: 0; }
.plain-table table.tbl th {
  background: transparent; border-bottom: 1.5px solid var(--line);
  padding: 14px 24px; font-size: 12px; color: var(--ink-2); font-weight: 700;
}
.plain-table table.tbl td { padding: 16px 24px; }

/* ---- İletişim listesi (telefon/e-posta/adres) başlığı ---- */
.ct-page-head { flex-wrap: nowrap; gap: 10px; }
.ct-page-head .ct-title-wrap { min-width: 0; overflow: hidden; }
.ct-page-head h3 { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-page-head .ct-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ct-page-head .ct-actions .badge { font-size: 12px; font-weight: 700; padding: 5px 11px; }
.ct-page-head .ct-actions .btn-sm { padding: 6px 12px; font-size: 12.5px; }
.ct-page-head .ct-actions .btn-sm svg { width: 13px; height: 13px; }

@media (max-width: 480px) {
  .ct-page-head { gap: 6px; }
  .ct-page-head h3 { font-size: 14px; }
  .ct-page-head .ct-actions { gap: 6px; }
  .ct-page-head .ct-actions .badge { padding: 4px 8px; font-size: 11px; }
  .ct-page-head .ct-actions .btn-sm { padding: 6px 9px; font-size: 11.5px; }
  .ct-page-head .ct-actions .btn-sm .btn-label { display: none; }
}
.plain-table table.tbl tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 560px) {
  .tel-row { flex-wrap: wrap; }
  .tel-row select { width: 100%; }
}

/* ---------- 19b. Sabit WhatsApp butonu ---------- */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 0;
  padding: 14px; border-radius: 999px;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .42);
  transition: transform .28s var(--ease-out), box-shadow .28s;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 40px rgba(37, 211, 102, .55); }
.wa-fab:active { transform: translateY(0) scale(.98); }
.wa-fab svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.wa-fab .wa-txt {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; position: relative; z-index: 1;
  transition: max-width .38s var(--ease-out), margin .38s var(--ease-out);
}
.wa-fab:hover .wa-txt { max-width: 200px; margin: 0 6px 0 10px; }
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  animation: waPulse 2.6s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
body.has-wa .toast-wrap { bottom: 104px; }

@media (max-width: 720px) {
  .wa-fab { right: 16px; bottom: 16px; padding: 13px; }
  .wa-fab .wa-txt, .wa-fab:hover .wa-txt { display: none; }
  body.has-wa .toast-wrap { bottom: 88px; }
}

/* ---------- 20. Footer ---------- */
.site-footer { background: #0b1120; color: #cbd5e1; padding: 58px 0 0; margin-top: 60px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.site-footer p { font-size: 14px; color: #94a3b8; line-height: 1.75; }
.site-footer a { font-size: 14px; color: #94a3b8; transition: color .2s, transform .2s; display: inline-block; }
.site-footer a:hover { color: #fff; transform: translateX(3px); }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; color: #fff; font-weight: 700; font-size: 17px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .07);
  display: grid; place-items: center; transition: background .25s, transform .25s var(--ease-out);
}
.social a:hover { background: var(--brand-grad); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .09); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: #64748b;
}
.clock-cn { display: flex; align-items: center; gap: 7px; }
.clock-cn svg { width: 15px; height: 15px; }

/* ---------- 21. Hero & dekor ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; z-index: 0; }
.blob-1 { width: 460px; height: 460px; background: #c7d2fe; top: -170px; right: -130px; animation: float 18s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; background: #ddd6fe; bottom: -190px; left: -120px; animation: float 22s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(28px, -34px); } }
.hero > .container { position: relative; z-index: 1; }

.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); padding: 26px;
}
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-3); padding: 13px 17px;
  display: flex; align-items: center; gap: 11px; font-size: 13.5px; font-weight: 600;
  animation: bob 5s ease-in-out infinite;
}
.float-card svg { width: 20px; height: 20px; color: var(--brand-1); }
.fc-1 { top: -22px; left: -26px; }
.fc-2 { bottom: -22px; right: -22px; animation-delay: 1.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* Görsel yer tutucu */
.ph-img {
  display: grid; place-items: center; gap: 8px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: var(--brand-1); border-radius: var(--r); min-height: 180px; font-size: 13px; font-weight: 600;
}
.ph-img svg { width: 34px; height: 34px; opacity: .55; }

/* ---------- 22. Giriş animasyonları ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 22b. Sade tasarım katmanı ---------- */
/* Kutular: ince, açık kenarlık — gölge neredeyse yok */
.card, .table-wrap, .filters, .ct-wrap, .feature, .stat, .p-card,
.sidenav, .hero-card, .float-card, .notif, .kpi-card, .leg, .ct, .drop {
  border-width: 1px;
  border-color: var(--line-box);
}
.card, .sidenav, .kpi-card, .p-card, .feature, .stat { box-shadow: none; }
.card-hover:hover, .ct:hover { border-color: #d6d6da; }
.card-hover:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.rec { border-left-width: 4px; }
.table-wrap table.tbl th { border-bottom-color: var(--line); }
.modal { border: 1px solid var(--line-box); }

/* Düz butonlar — gradyan ve ağır gölge yok */
.btn { border-radius: var(--r); }
.btn-primary { background: var(--brand-1); box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: #d63c43; box-shadow: 0 4px 14px rgba(232, 71, 78, .22); transform: none; }
.btn-ghost:hover:not(:disabled) { background: var(--bg-soft); border-color: #d6d6da; color: var(--ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-1); }
.btn-soft:hover:not(:disabled) { background: #fbdfe1; }
.btn-danger { background: var(--bad); }
.btn-danger:hover:not(:disabled) { background: #c22f2f; transform: none; }

/* Rozetler: köşeli-yumuşak, noktasız */
.badge { border-radius: 7px; padding: 5px 10px; font-weight: 600; }
.badge::before { display: none; }

/* Vurgulu yazı düz renk */
.grad-text {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--brand-1); -webkit-text-fill-color: currentColor;
}

/* Yan menü: aktif öğe koyu dolgu */
.sidenav { padding: 14px; }
.sidenav a, .sidenav button.nav-item { padding: 11px 13px; border-radius: 10px; }
.sidenav a:hover, .sidenav button.nav-item:hover { background: var(--bg-soft); color: var(--ink); transform: none; }
.sidenav a:hover svg, .sidenav button.nav-item:hover svg { color: var(--ink-2); }
.sidenav a.active { background: var(--ink); color: #fff; box-shadow: none; }
.sidenav a.active svg { color: #fff; }
.sidenav .sub::before { background: var(--line); }

/* Üst menü: sade */
.main-nav a:hover { background: transparent; color: var(--brand-1); }
.main-nav a.active { color: var(--ink); }
.main-nav a::after { background: var(--brand-1); }

/* Sekmeler */
.tabs button.on { border-bottom-color: var(--brand-1); color: var(--brand-1); }
.chip.on { background: var(--brand-1); box-shadow: none; }

/* Girdiler */
.input, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="date"], input[type="time"], input[type="number"],
input[type="search"], input[type="datetime-local"], select, textarea { border-radius: 10px; }
.input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(232, 71, 78, .12);
}
.pick.on, .pick:hover { border-color: var(--brand-1); background: var(--brand-soft); }
.switch input:checked + .slider { background: var(--brand-1); }
.check input[type="checkbox"], .check input[type="radio"] { accent-color: var(--brand-1); }

/* Sayfa zemini biraz kırık beyaz, kartlar bembeyaz */
body { background: #fbfbfc; }
.section-soft { background: #f5f5f7; }

/* Bilet kartı da düzleşir */
.ticket { border-width: 1px; border-left-width: 5px; border-radius: var(--r-lg); }
.ticket:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }

/* ---------- 23. Boş durum ---------- */
.empty { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty svg { width: 52px; height: 52px; margin: 0 auto 16px; color: var(--muted-2); opacity: .7; }
.empty h3 { font-size: 17px; margin-bottom: 6px; color: var(--ink-2); }

/* ---------- 24. Sekmeler ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  padding: 11px 17px; border: 0; background: transparent; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.tabs button:hover { color: var(--brand-1); }
.tabs button.on { color: var(--brand-1); font-weight: 600; border-bottom-color: var(--brand-1); }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 9px 10px; font-size: 14px; }
  .g4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  .burger { display: grid; }
  /* main-nav mobilde konumu absolute olup akıştan çıkınca margin-left:auto işini kaybediyor;
     header-actions'ı (profil dahil) sağa yaslamayı burada devralıyoruz. */
  .header-actions { margin-left: auto; }
  /* Açılır menü, duyuru şeridi dahil header'ın tamamının altına konumlanır */
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 5;
    flex-direction: column; align-items: stretch; gap: 3px;
    background: #fff; border-bottom: 2px solid var(--line-box);
    padding: 14px 18px 20px; box-shadow: var(--sh-3);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease-out);
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; font-size: 15px; }
  .main-nav a::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
}

body.nav-open { overflow: hidden; }

@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 16px; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 60px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .brand-name { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-pad, .card-body { padding: 18px; }
  .card-head { padding: 16px 18px; }
  .float-card { display: none; }
  .msg { max-width: 88%; }
  .toast-wrap { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
  .lang-switch button, .lang-switch a { padding: 4px 9px; }
}

@media (max-width: 620px) {
  .brand-name { display: none; }
  .user-chip .small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { gap: 6px; }
  .header-inner { gap: 8px; }
}

@media (max-width: 420px) {
  .header-actions .btn { padding: 9px 11px; font-size: 13px; }
  .header-actions .btn svg { display: none; }
  .lang-switch button, .lang-switch a { padding: 4px 8px; font-size: 12px; }
}

@media (max-width: 600px) {
  .input, input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="date"], input[type="time"], input[type="number"],
  input[type="search"], input[type="datetime-local"], select, textarea {
    padding: 9px 12px; font-size: 14px;
  }
  textarea { min-height: 90px; }
  .field { margin-bottom: 13px; }
  .field > label, .lbl { font-size: 12.5px; margin-bottom: 5px; }
  .card-pad, .card-body { padding: 15px; }
  .card-head { padding: 13px 15px; }
  .card-head h3 { font-size: 15px; }
  .pane-head { margin-bottom: 16px; }
  .pane-head h1 { font-size: 20px; }
  .pane-head .lead { font-size: 13px; line-height: 1.45; }

  h3 { font-size: 15.5px; }
  .small { font-size: 12px; }

  .pref { padding: 12px 0; gap: 10px; }
  .pref .gap-12 { gap: 10px; }
  .pref .ico { width: 32px; height: 32px; border-radius: 9px; }
  .pref .ico svg { width: 15px; height: 15px; }
  .pref b { font-size: 13.5px; }
  .pref .small { font-size: 11.5px; line-height: 1.35; }
  .switch { width: 38px; height: 22px; }
  .switch .slider::before { width: 16px; height: 16px; }
  .switch input:checked + .slider::before { transform: translateX(16px); }
}

/* --------------------------------------------------------------------------
   Mesajlaşma — mobil düzen
   Dar ekranda sohbet ekranın tamamını kullansın: kenar boşlukları ve yuvarlak
   köşeler kalkar, giriş alanı klavye açılınca da görünür kalır (dvh), yazı
   boyutu 16px'in altına düşmez (iOS aksi halde sayfayı yakınlaştırıyor).
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .chat {
    height: calc(100dvh - var(--head-h) - 8px);
    min-height: 0;
    max-height: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin-left: -16px;
    margin-right: -16px;
  }
  .chat-body { padding: 10px 12px; }
  .chat .msg { max-width: 88%; }
  .chat-tools { padding: 6px 10px 0; gap: 4px; }
  .chat-tools .tool-btn { width: 34px; height: 34px; }
  .chat-input { padding: 8px 10px 10px; gap: 6px; align-items: flex-end; }
  .chat-input textarea {
    font-size: 16px;
    max-height: 96px;
    padding: 9px 12px;
  }
  .chat-input .btn { padding: 0 14px; height: 40px; flex-shrink: 0; }
  .chat-input .mic-yan { width: 40px; height: 40px; }
  /* Sohbet listesi ile pencere arasındaki geçiş: liste üstte, sohbet altta. */
  .chat-shell { gap: 10px; }
}

/* Koçandaki tutar: "ödenen | toplam" biçiminde okunur.
   Ödenen vurgulu, toplam ikincil — 0 | 2000 gibi tek bakışta anlaşılsın. */
.tk-price-alt { font-size: .68em; font-weight: 600; color: var(--muted); white-space: nowrap; }
