/* Hizmet-İş Yönetim Paneli
   Renkler logodan ve mobil uygulamadan alınmıştır: kurumsal mavi, altın çerçeve, logo kırmızısı.
   Tüm renk ve ölçüler aşağıdaki değişkenlerden yönetilir. */

:root {
  /* Marka */
  --brand: #2d4e9d;          /* mobil uygulamanın zemin mavisi */
  --brand-strong: #243f82;   /* üzerine gelince / basılı */
  --brand-deep: #182b5e;     /* başlıklar */
  --brand-tint: #e7ecf7;
  --brand-wash: #f3f5fb;
  --sky: #4983c3;            /* mobil alt çubuğun açık mavisi */
  --gold: #d7b047;           /* mobil kartların altın çerçevesi */
  --gold-soft: #ead9a4;
  --gold-tint: #fbf4df;
  --gold-deep: #7a5a0c;

  /* Yüzeyler ve yazı */
  --ink: #1c2540;
  --muted: #5d6781;
  --canvas: #f6f8fb;
  --surface: #ffffff;
  --line: #dae0ee;
  --line-strong: #c3cbdf;

  /* Durum renkleri */
  --success: #1c7a45;
  --success-tint: #e3f3ea;
  --danger: #be1e2d;         /* logodaki kırmızı */
  --danger-strong: #9f1724;
  --danger-tint: #fce9ea;
  --warning: var(--gold-deep);
  --warning-tint: var(--gold-tint);

  --font-head: "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;

  --radius-card: 20px;
  --radius-panel: 12px;
  --radius-input: 8px;
  --shadow-card: 0 1px 2px rgba(24, 43, 94, 0.06), 0 8px 22px rgba(24, 43, 94, 0.07);
  --shadow-pop: 0 4px 10px rgba(24, 43, 94, 0.08), 0 18px 44px rgba(24, 43, 94, 0.2);
  --focus-ring: 0 0 0 3px rgba(73, 131, 195, 0.4);

  --sidebar-width: 260px;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: var(--brand);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid rgba(73, 131, 195, 0.55);
  outline-offset: 2px;
}

.icon {
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Kabuk ---------------------------------------------------------------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--surface);
  border-inline-end: 1px solid var(--line);
  padding-bottom: 24px;
}

/* Logo: img/logo.png varsa o gösterilir, yoksa yazılı marka. */
.brand {
  display: grid;
  gap: 6px;
  padding: 20px 24px 18px;
  text-decoration: none;
  color: var(--ink);
}

.brand__logo {
  display: block;
  width: 100%;
  max-width: 214px;
  height: auto;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  color: var(--brand-deep);
}

.brand__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.brand__sub::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

/* Menü: etkin satır kenara dayalı dolu mavi bloktur; solundaki altın çizgi mobil uygulamadaki çerçeveyi anımsatır. */
.nav {
  display: grid;
  margin: 12px;
  gap: 3px;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: none;
  text-align: start;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.nav__item > .icon:first-child {
  color: var(--muted);
}

.nav__label {
  flex: 1;
}

.nav__item:hover {
  background: var(--brand-wash);
}

.nav__item.is-active {
  background: var(--brand);
  color: #fff;
}

.nav__item--site {
  margin-top: 14px;
  border: 1px solid rgba(198, 155, 42, 0.45);
  background: linear-gradient(135deg, rgba(198, 155, 42, 0.11), rgba(45, 82, 166, 0.06));
  color: var(--brand-deep);
  font-weight: 700;
}

.nav__item--site:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
}

.nav__item.is-active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gold);
}

.nav__item.is-active > .icon:first-child {
  color: #fff;
}

.nav__item--group > .icon:last-child {
  transition: transform 0.18s ease;
}

.nav__item--group[aria-expanded="true"] > .icon:last-child {
  transform: rotate(180deg);
}

.nav__item--nested {
  min-height: 42px;
  padding-inline-start: 66px;
  font-size: 15px;
  font-weight: 400;
}

.nav__item--nested.is-active {
  font-weight: 500;
}

.shell__main {
  min-width: 0;
  padding: 0 clamp(20px, 3vw, 48px) 48px;
}

.shell__scrim {
  display: none;
}

/* ---- Üst çubuk ------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 90px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.icon-btn.topbar__menu {
  display: none;
}

.topbar__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
  white-space: nowrap;
}

.topbar__gap {
  flex: 1;
}

.search {
  position: relative;
  flex: 1;
  min-width: 0;
  color: var(--muted);
}

.search__input {
  width: 100%;
  height: 42px;
  padding-block: 0;
  padding-inline: 14px 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.search__input::placeholder {
  color: #8b93a8;
}

.search__input:focus {
  border-color: var(--sky);
  outline: 0;
  box-shadow: var(--focus-ring);
}

.search > .icon {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.user {
  position: relative;
  flex: none;
}

.user__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 5px;
  padding-inline: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.user__toggle:hover {
  border-color: var(--line-strong);
}

.user__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
}

.user__text {
  display: grid;
  text-align: start;
  line-height: 1.2;
}

.user__name {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}

.user__role {
  font-size: 12px;
  color: var(--muted);
}

.user__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 20;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  animation: pop-in 0.14s ease-out;
}

.user__action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: start;
}

.user__action:hover {
  background: var(--brand-wash);
}

.user__action > .icon {
  color: var(--muted);
}

/* ---- İçerik alanı --------------------------------------------------------- */

.content {
  padding-top: 26px;
}

.content__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.content__lead {
  color: var(--muted);
  max-width: 60ch;
}

.content__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stack {
  display: grid;
  gap: 16px;
}

/* ---- Modül kartları -------------------------------------------------------
   Yerleşim referans tasarımdan: üstte soluk resim alanı, altında başlık ve açıklama,
   sağ altta yuvarlak ok. Altın çerçeveli beyaz kutu ve mavi simge mobil uygulamadan. */

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 256px;
  border: 1.5px solid var(--gold-soft);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 2px 4px rgba(24, 43, 94, 0.08), 0 14px 30px rgba(24, 43, 94, 0.14);
}

.card__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 132px;
  background: linear-gradient(140deg, #ffffff 0%, var(--brand-wash) 55%, var(--brand-tint) 100%);
}

.card__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold);
  border-radius: 22px;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(24, 43, 94, 0.14);
  transition: transform 0.2s ease;
}

.card__tile--back {
  position: absolute;
  border-color: transparent;
  background: var(--brand);
  box-shadow: none;
  transform: translate(13px, -7px) rotate(12deg);
}

.card:hover .card__tile:not(.card__tile--back) {
  transform: translate(-3px, 2px) rotate(-4deg);
}

.card__count {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-deep);
}

.card__count:empty {
  display: none;
}

.card__text {
  padding: 16px 16px 0;
}

.card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--brand-deep);
}

.card__desc {
  margin-top: 4px;
  padding-inline-end: 34px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.card__go {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 10px rgba(45, 78, 157, 0.35);
}

/* ---- Paneller ve tablo ---------------------------------------------------- */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.panel.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.panel--form {
  max-width: 820px;
  padding: 26px 28px 28px;
  overflow: visible;
}

.table-wrap {
  overflow-x: auto;
}

.list-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(24, 43, 94, 0.035);
  overflow: hidden;
}

.list-panel > .panel { border: 0; border-radius: 0; box-shadow: none; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.list-toolbar__heading { display: flex; align-items: center; gap: 12px; }
.list-toolbar h2 { font-size: 16px; font-weight: 650; }
.list-toolbar__count { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.list-toolbar__icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--brand); background: var(--brand-wash); }

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 19px 20px;
  text-align: start;
  vertical-align: middle;
  border-bottom: 1px solid #e9edf6;
}

.table thead th {
  padding-top: 14px;
  padding-bottom: 12px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom-color: var(--line);
}

.table thead th:first-child,
.table tbody th {
  padding-inline-start: 22px;
}

.table tbody tr:last-child > * {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: #f8f9fd;
}

.table .is-num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.table .is-mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.table .is-empty {
  color: #a3aabd;
}

.table .is-actions {
  width: 1%;
  padding-inline-end: 14px;
  white-space: nowrap;
  text-align: end;
}

.table .is-primary { width: 44%; }
.row-edit { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; margin-inline-end: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink); }
.row-edit:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); }
.table .icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; }

.table .is-link a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 260px;
  text-decoration: none;
}

.table .is-link a:hover {
  text-decoration: underline;
}

.table tbody th {
  font-weight: 400;
}

.cell-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.cell-main__text {
  display: grid;
  min-width: 0;
}

.cell-main__title {
  font-weight: 600;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.cell-main__sub {
  max-width: 52ch;
  overflow: hidden;
  font-size: 13px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--brand-wash);
  overflow: hidden;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 3px;
  padding-inline: 9px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

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

.pill--on {
  background: var(--success-tint);
  color: var(--success);
}

.pill--off {
  background: var(--warning-tint);
  color: var(--warning);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fcfdff;
  flex-wrap: wrap;
}

.pager .pager__size { width: auto; height: 34px; padding: 0 9px; font-size: 12px; }
.pager__page { margin: 0 10px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.pager .btn { height: 34px; padding: 0 12px; font-size: 12px; }

.pager__info {
  margin-inline-end: auto;
  font-size: 14px;
  color: var(--muted);
}

/* Yüklenirken gösterilen iskelet satırlar */
.skeleton {
  display: grid;
  padding: 6px 0;
}

.skeleton__row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 0.6fr;
  gap: 24px;
  padding: 18px 22px;
  border-bottom: 1px solid #e9edf6;
}

.skeleton__row:last-child {
  border-bottom: 0;
}

.skeleton__bar {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--brand-tint) 25%, var(--brand-wash) 50%, var(--brand-tint) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

.skeleton__bar:first-child {
  width: 70%;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---- Boş durumlar --------------------------------------------------------- */

.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  text-align: center;
}

.empty--inline {
  padding: 40px 0;
  color: var(--muted);
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border: 2px solid var(--gold);
  border-radius: 20px;
  background: var(--surface);
  color: var(--brand);
}

.empty--error .empty__icon {
  border-color: transparent;
  background: var(--danger-tint);
  color: var(--danger);
}

.empty__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--brand-deep);
}

.empty__text {
  max-width: 46ch;
  color: var(--muted);
}

.empty .btn {
  margin-top: 10px;
}

/* ---- Düğmeler ------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:disabled {
  opacity: 0.6;
}

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

.btn--primary:hover:not(:disabled) {
  background: var(--brand-strong);
}

.btn--soft {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.btn--soft:hover:not(:disabled) {
  background: #d8e0f2;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--brand-wash);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--danger:hover:not(:disabled) {
  background: var(--danger-strong);
}

.btn--block {
  width: 100%;
  height: 46px;
}

/* İşlem sürerken: yazının önünde dönen halka çıkar. */
.btn.is-busy {
  opacity: 0.85;
  pointer-events: none;
}

.btn.is-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-busy > .icon {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
}

.icon-btn:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.icon-btn--danger:hover {
  background: var(--danger-tint);
  color: var(--danger);
}

/* ---- Uyarı kutusu (form hataları, bilgilendirme) --------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.alert > .icon {
  margin-top: 1px;
}

.alert--error {
  border-color: #f3c3c7;
  background: var(--danger-tint);
  color: #8c1320;
}

.alert--info {
  border-color: #cfd9ee;
  background: var(--brand-wash);
  color: var(--brand-deep);
}

.alert--warning {
  border-color: var(--gold-soft);
  background: var(--gold-tint);
  color: #5f4608;
}

/* ---- Formlar -------------------------------------------------------------- */

.form__alert {
  margin-bottom: 18px;
}

.form__grid {
  display: grid;
  /* 12 sütunluk satır: alanlar genişliklerine göre (field--w3, --w4, --w6 …) yan yana dizilir. */
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.form-section + .form-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section__head { margin-bottom: 18px; }
.form-section__head h3 { margin: 0 0 5px; font-size: 16px; font-weight: 650; color: var(--brand-deep); }
.form-section__head p { font-size: 13px; color: var(--muted); }

.field {
  grid-column: span 12;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field--w2 { grid-column: span 2; }
.field--w3 { grid-column: span 3; }
.field--w4 { grid-column: span 4; }
.field--w5 { grid-column: span 5; }
.field--w6, .field--half { grid-column: span 6; }
.field--w7 { grid-column: span 7; }
.field--w8 { grid-column: span 8; }
.field--w9 { grid-column: span 9; }
.field--w10 { grid-column: span 10; }
.field--w12 { grid-column: span 12; }

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  line-height: 1.3;
  font-weight: 500;
  font-size: 14px;
}

.field__optional {
  flex: none;
  white-space: nowrap;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
}

.field__hint {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.field__problem {
  font-size: 13px;
  font-weight: 500;
  color: var(--danger);
}

.input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  background: var(--surface);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.input::placeholder {
  color: #959db1;
}

.input:hover {
  border-color: #a9b3cc;
}

.input:focus {
  border-color: var(--sky);
  outline: 0;
  box-shadow: var(--focus-ring);
}

.input--area {
  height: auto;
  padding: 10px 13px;
  line-height: 1.55;
  resize: vertical;
}

.input--select {
  appearance: none;
  padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6781' stroke-width='2' stroke-linecap='round' stroke-linejoin='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: 18px;
}

/* SEO anahtar kelime etiketleri */
.keywords {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.keywords:hover { border-color: #9eacc7; }
.keywords:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 82, 166, 0.12);
}

.keywords__value {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.keywords__list { display: contents; }
.keywords__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 30px;
  padding-block: 4px;
  padding-inline: 10px 5px;
  border: 1px solid #c8d5ef;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 650;
}

.keywords__tag > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keywords__remove {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #61749d;
  cursor: pointer;
}

.keywords__remove:hover { background: #d9e5fb; color: var(--danger); }
.keywords__input {
  flex: 1 1 180px;
  min-width: 150px;
  height: 30px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.keywords__input::placeholder { color: var(--muted-soft); }
.field.is-invalid .keywords { border-color: var(--danger); }

.is-invalid .input {
  border-color: var(--danger);
}

.is-invalid .input:focus {
  box-shadow: 0 0 0 3px rgba(190, 30, 45, 0.2);
}

.form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form__note {
  margin-inline-end: auto;
  font-size: 13.5px;
  color: var(--muted);
}

/* Aç/kapa anahtarı */
.field--switch {
  align-content: start;
  gap: 4px;
  min-height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  cursor: pointer;
}

.switch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch__track {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #bcc4d6;
  transition: background-color 0.15s ease;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.switch__input:checked + .switch__track {
  background: var(--brand);
}

.switch__input:checked + .switch__track::after {
  transform: translateX(18px);
}

.switch__input:focus-visible + .switch__track {
  box-shadow: var(--focus-ring);
}

.switch__label {
  font-weight: 500;
}

.field--switch .field__hint {
  padding-inline-start: 0;
}

/* Dosya yükleme alanı */
.upload {
  display: grid;
  gap: 10px;
}

.upload__row {
  display: flex;
  gap: 8px;
}

.upload__row .input {
  flex: 1;
}

.upload__preview:empty {
  display: none;
}

.upload__preview img {
  display: block;
  max-width: 220px;
  max-height: 140px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
}

.upload__file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: none;
}

/* Yerel CKEditor 5: panel tasarımıyla bütünleşen profesyonel haber editörü */
.rich-editor {
  position: relative;
  min-height: 340px;
  --ck-color-base-border: var(--line-strong);
  --ck-color-toolbar-background: #f7f9fc;
  --ck-color-base-background: #fff;
  --ck-color-button-default-hover-background: #e9eef9;
  --ck-color-button-on-background: #dce6fb;
  --ck-color-button-on-color: var(--brand-deep);
  --ck-color-focus-border: var(--sky);
  --ck-focus-ring: 1px solid var(--sky);
  --ck-border-radius: 8px;
}

.rich-editor .ck.ck-editor {
  width: 100%;
}

.rich-editor .ck.ck-toolbar {
  padding: 7px 9px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 1px 0 rgba(24, 43, 94, 0.02);
}

.rich-editor .ck.ck-toolbar .ck-toolbar__separator {
  margin: 0 7px;
  background: #d9dfeb;
}

.rich-editor .ck.ck-button {
  min-height: 34px;
  border-radius: 6px;
}

.rich-editor .ck.ck-editor__main > .ck-editor__editable {
  min-height: 290px;
  max-height: 520px;
  padding: 20px 24px;
  overflow-y: auto;
  border-radius: 0 0 10px 10px;
  font-size: 15px;
  line-height: 1.72;
}

.rich-editor .ck-content h2 { margin: 22px 0 10px; color: var(--brand-deep); font-size: 23px; }
.rich-editor .ck-content h3 { margin: 20px 0 8px; color: var(--brand-deep); font-size: 19px; }
.rich-editor .ck-content blockquote { border-inline-start-color: var(--gold); background: var(--gold-tint); }
.rich-editor .ck-content a { color: var(--brand); }

.rich-editor__source[contenteditable="true"] {
  min-height: 290px;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  outline: 0;
}

.rich-editor__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(248, 250, 254, 0.94);
  color: var(--muted);
  font-size: 13px;
}

.rich-editor--loading .rich-editor__loading { display: grid; }
.rich-editor__spinner { width: 24px; height: 24px; border: 2px solid #cbd4e6; border-top-color: var(--brand); border-radius: 50%; animation: spin 0.75s linear infinite; }
.rich-editor--failed { min-height: 290px; }

/* Çoklu haber galerisi */
.gallery { display: grid; gap: 12px; }

.gallery__dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 148px;
  padding: 20px;
  border: 1.5px dashed #aab7d2;
  border-radius: 12px;
  background: #f8faff;
  color: var(--muted);
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gallery__dropzone strong { color: var(--brand-deep); font-size: 14px; }
.gallery__dropzone > span { font-size: 12.5px; }
.gallery__dropzone .btn { height: 36px; margin-top: 5px; padding: 0 14px; }
.gallery__drop-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e8eefb; color: var(--brand); }
.gallery__dropzone.is-dragover { border-color: var(--brand); background: var(--brand-wash); }
.gallery__dropzone.is-uploading { opacity: 0.72; pointer-events: none; }

.gallery__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.gallery__counter { font-weight: 650; color: var(--brand-deep); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery__grid:empty { display: none; }

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #eef1f6;
  cursor: grab;
}

.gallery__item.is-dragover { outline: 3px solid rgba(73, 131, 195, 0.42); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__order { position: absolute; inset-inline-start: 7px; bottom: 7px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(16, 35, 79, 0.84); color: #fff; font-size: 11px; font-weight: 700; }
.gallery__remove { position: absolute; top: 6px; inset-inline-end: 6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--danger); box-shadow: 0 2px 8px rgba(15, 32, 70, 0.2); }
.gallery__remove:hover { background: var(--danger); color: #fff; }

/* Onay kutusu */
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check__input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

/* ---- Pencereler (modal) --------------------------------------------------- */

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(21, 32, 66, 0.45);
  animation: fade-in 0.18s ease-out;
}

.dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.dialog[open] {
  animation: pop-in 0.18s ease-out;
}

.dialog--wide {
  width: min(580px, calc(100vw - 32px));
}

.dialog__main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 26px 26px 22px;
}

.dialog__badge {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
}

.dialog--danger .dialog__badge {
  background: var(--danger-tint);
  color: var(--danger);
}

.dialog--warning .dialog__badge {
  background: var(--gold-tint);
  color: var(--gold-deep);
}

.dialog--success .dialog__badge {
  background: var(--success-tint);
  color: var(--success);
}

.dialog__title {
  align-self: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--brand-deep);
}

.dialog__text {
  grid-column: 2;
  color: var(--muted);
}

.dialog__body {
  grid-column: 1 / -1;
  margin-top: 14px;
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: var(--brand-wash);
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
}

.summary__row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.summary dt {
  font-size: 13px;
  color: var(--muted);
}

.summary dd {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--brand-deep);
}

.summary__errors {
  max-height: 200px;
  margin: 14px 0 0;
  padding-block: 12px;
  padding-inline: 30px 14px;
  overflow-y: auto;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  background: var(--gold-tint);
  font-size: 13.5px;
  color: #5f4608;
}

/* Geniş, ortalanmış içerik düzenleme popup'ı */
.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px 28px;
  background: rgba(21, 32, 66, 0.45);
  animation: fade-in 0.18s ease-out;
}

.drawer {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100vw - 56px));
  max-width: 1120px;
  height: min(900px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(174, 184, 207, 0.78);
  border-radius: 18px;
  background: #f5f7fb;
  box-shadow: 0 28px 90px rgba(17, 31, 70, 0.34), 0 4px 18px rgba(17, 31, 70, 0.14);
  overflow: hidden;
}

body:has(.drawer-layer) { overflow: hidden; }
.drawer__head, .drawer__foot { flex-shrink: 0; }

.drawer {
  animation: editor-modal-in 0.2s ease-out;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding-block: 15px;
  padding-inline: 28px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.drawer__heading { display: grid; gap: 3px; }
.drawer__eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }

.drawer__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  color: var(--brand-deep);
}

.drawer__head > .icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); background: #f8faff; }
.drawer__head > .icon-btn:hover { border-color: var(--line-strong); background: var(--brand-wash); }

.drawer__body {
  flex: 1;
  min-height: 0;
  padding: 24px 28px 32px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.drawer__body > .alert {
  margin-bottom: 20px;
}

.drawer__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  min-height: 68px;
  padding: 12px 28px;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -8px 24px rgba(24, 43, 94, 0.05);
}

@keyframes editor-modal-in {
  from {
    transform: translateY(14px) scale(0.985);
    opacity: 0;
  }
}

.drawer .form { display: grid; gap: 14px; }
.drawer .form-section {
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(24, 43, 94, 0.035);
}
.drawer .form-section + .form-section { margin-top: 0; padding-top: 24px; }
.drawer .form-section__head { display: grid; grid-template-columns: minmax(170px, 0.55fr) 1fr; align-items: baseline; gap: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #edf0f6; }
.drawer .form-section__head h3 { margin: 0; font-size: 15px; }
.drawer .form-section__head p { text-align: end; }
.drawer__foot .btn { height: 40px; }

@keyframes pop-in {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ---- Bildirimler (toast) --------------------------------------------------- */

/* Açık bir pencerenin üstünde de görünsün diye popover olarak açılır. */
.toasts {
  position: fixed;
  inset: 20px 24px auto auto;
  z-index: 100;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}

.toasts:not(:popover-open):empty {
  display: none;
}

.toast {
  --toast-accent: var(--success);
  --toast-tint: var(--success-tint);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  padding-block: 16px 18px;
  padding-inline: 16px 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--toast-accent) 22%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--toast-tint) 70%, transparent), transparent 55%),
    var(--surface);
  box-shadow: 0 2px 6px rgba(24, 43, 94, 0.06), 0 18px 40px rgba(24, 43, 94, 0.18);
  animation: toast-in 0.42s cubic-bezier(0.21, 1.02, 0.73, 1);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

/* Sol kenardaki renk şeridi */
.toast::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: var(--toast-accent);
}

.toast__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--toast-tint);
  color: var(--toast-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--toast-accent) 25%, transparent);
  animation: toast-badge 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}

/* Rozetin etrafında bir kez yayılan halka */
.toast__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--toast-accent);
  opacity: 0;
  animation: toast-ring 0.9s ease-out 0.15s;
}

.toast__text {
  align-self: center;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.toast__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.toast__message {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.toast__close {
  width: 30px;
  height: 30px;
  color: var(--muted);
}

/* Kalan süre çubuğu; fare üzerindeyken durur. */
.toast__progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--toast-accent);
  opacity: 0.55;
  transform-origin: left center;
  animation: toast-progress linear forwards;
}

[dir="rtl"] .toast__progress {
  transform-origin: right center;
}

.toast.is-paused .toast__progress {
  animation-play-state: paused;
}

.toast--create  { --toast-accent: var(--success); --toast-tint: var(--success-tint); }
.toast--success { --toast-accent: var(--success); --toast-tint: var(--success-tint); }
.toast--update  { --toast-accent: var(--brand);   --toast-tint: var(--brand-tint); }
.toast--info    { --toast-accent: var(--sky);     --toast-tint: var(--brand-wash); }
.toast--delete  { --toast-accent: var(--danger);  --toast-tint: var(--danger-tint); }
.toast--error   { --toast-accent: var(--danger);  --toast-tint: var(--danger-tint); }
.toast--warning { --toast-accent: var(--gold-deep); --toast-tint: var(--gold-tint); }

.toast--error {
  animation: toast-in 0.42s cubic-bezier(0.21, 1.02, 0.73, 1), toast-shake 0.45s ease-in-out 0.42s;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(24px) scale(0.98);
}

@keyframes toast-in {
  from {
    transform: translateX(32px) scale(0.96);
    opacity: 0;
  }
}

@keyframes toast-badge {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

@keyframes toast-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes toast-shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Üst çubuktaki ses düğmesi */
.sound-toggle {
  color: var(--brand);
}

.sound-toggle.is-off {
  color: var(--muted);
}

/* ---- Giriş ---------------------------------------------------------------- */
/* Sol: lacivert kurumsal tanıtım alanı. Sağ: sade, beyaz giriş kartı. */

.auth {
  --auth-navy: #0f1d44;
  --auth-navy-2: #182b5e;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(460px, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
}

/* Tanıtım alanı */
.auth__hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 40px clamp(36px, 5.5vw, 88px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, var(--auth-navy-2) 0%, var(--auth-navy) 58%, #0a1433 100%);
}

.auth__hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.auth__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 0% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 0% 0%, #000 20%, transparent 75%);
}

.auth__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.auth__orb--gold {
  width: 420px;
  height: 420px;
  inset-inline-end: -140px;
  bottom: -120px;
  background: rgba(215, 176, 71, 0.38);
}

.auth__orb--sky {
  width: 460px;
  height: 460px;
  inset-inline-start: -160px;
  top: -180px;
  background: rgba(73, 131, 195, 0.45);
}

.auth__hero-top {
  display: flex;
}

.auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth__badge > .icon {
  color: var(--gold);
}

.auth__hero-body {
  max-width: 560px;
}

.auth__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.auth__eyebrow::before {
  content: "";
  flex: none;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.auth__headline {
  margin: 22px 0 0;
  font-family: var(--font-head);
  font-size: clamp(36px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.auth__headline em {
  font-style: normal;
  background: linear-gradient(90deg, #f3dc95, var(--gold) 60%, #c9962a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth__features {
  display: grid;
  gap: 14px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.auth__feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(6px);
}

.auth__feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(215, 176, 71, 0.28), rgba(215, 176, 71, 0.08));
  box-shadow: inset 0 0 0 1px rgba(215, 176, 71, 0.4);
  color: #f1d488;
}

.auth__feature-text {
  display: grid;
  gap: 2px;
}

.auth__feature-text strong {
  font-size: 15.5px;
  font-weight: 600;
}

.auth__feature-text span {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.66);
}

.auth__hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.auth__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* Giriş alanı */
.auth__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px clamp(24px, 4vw, 56px) 28px;
  background:
    radial-gradient(80% 50% at 100% 100%, var(--brand-wash), transparent 70%),
    var(--surface);
}

.auth__panel-top {
  display: flex;
  justify-content: flex-end;
}

.auth__card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  animation: auth-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes auth-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.auth__brand {
  display: flex;
  margin-bottom: 36px;
}

.auth__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 72px;
  object-fit: contain;
}

.auth__logo-text {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
}

.auth__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.auth__title {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.auth__lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.auth__form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.auth__form.is-shaking {
  animation: auth-shake 0.42s ease;
}

@keyframes auth-shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.auth__messages:empty {
  display: none;
}

.auth__field {
  display: grid;
  gap: 8px;
}

.auth__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.auth__control {
  position: relative;
  display: flex;
  align-items: center;
}

.auth__lead-icon {
  position: absolute;
  inset-inline-start: 16px;
  display: grid;
  color: #8b94ab;
  pointer-events: none;
  transition: color 0.15s ease;
}

.auth__input {
  width: 100%;
  height: 54px;
  padding-inline: 48px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth__input[type="email"] {
  padding-inline: 48px;
}

.auth__control:has(.auth__reveal) .auth__input {
  padding-inline-end: 52px;
}

.auth__input::placeholder {
  color: #a3abbe;
}

.auth__input:hover {
  border-color: var(--line-strong);
}

.auth__input:focus {
  outline: 0;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(45, 78, 157, 0.12);
}

.auth__control:focus-within .auth__lead-icon {
  color: var(--brand);
}

.auth__reveal {
  position: absolute;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8b94ab;
}

.auth__reveal:hover {
  background: var(--brand-wash);
  color: var(--brand);
}

.auth__reveal:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.auth__caps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}

.auth__check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.auth__check-input {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
}

.auth__check-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.auth__check-box > .icon {
  stroke-width: 2.6;
}

.auth__check-input:checked + .auth__check-box {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.auth__check-input:focus-visible + .auth__check-box {
  box-shadow: var(--focus-ring);
}

.auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #3559ad 0%, var(--brand) 55%, var(--brand-strong) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px rgba(45, 78, 157, 0.32);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth__submit > .icon {
  transition: transform 0.15s ease;
}

[dir="rtl"] .auth__submit > .icon {
  transform: scaleX(-1);
}

.auth__submit:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 14px 30px rgba(45, 78, 157, 0.4);
}

.auth__submit:hover:not(:disabled) > .icon {
  transform: translateX(3px);
}

[dir="rtl"] .auth__submit:hover:not(:disabled) > .icon {
  transform: scaleX(-1) translateX(3px);
}

.auth__submit:active:not(:disabled) {
  transform: translateY(1px);
}

.auth__submit:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(45, 78, 157, 0.3), 0 10px 24px rgba(45, 78, 157, 0.32);
}

.auth__submit:disabled {
  opacity: 0.75;
  cursor: progress;
}

.auth__submit.is-busy::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth__secure {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-wash);
  font-size: 13.5px;
  color: var(--muted);
}

.auth__secure > .icon {
  color: var(--success);
}

.auth__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth__hero {
    display: none;
  }

  .auth__panel {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

@media (max-width: 480px) {
  .auth__panel {
    padding: 18px 18px 22px;
  }

  .auth__brand {
    margin-bottom: 28px;
  }

  .auth__logo {
    height: 52px;
  }

  .auth__title {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth__card,
  .auth__form.is-shaking,
  .auth__submit.is-busy::before {
    animation: none;
  }
}

/* Giriş ekranı — kurumsal, sakin ve uzun ömürlü görsel dil */
.auth {
  grid-template-columns: minmax(460px, 42%) minmax(0, 1fr);
  background: #fff;
}

.auth__hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(44px, 5vw, 76px) clamp(44px, 6vw, 96px);
  overflow: hidden;
  background: #0b2856;
  color: #fff;
}

.auth__hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #d7b047 0 18%, #fff 18% 22%, #bf2532 22% 25%, transparent 25%);
}

.auth__hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: clamp(32px, 4vw, 64px);
  width: 1px;
  background: rgba(255, 255, 255, .08);
}

.auth__hero-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 10px;
}

.auth__system-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}

.auth__system-type {
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

.auth__hero-body {
  width: min(100%, 590px);
  max-width: none;
  margin-block: auto;
  padding-block: 64px;
}

.auth__eyebrow {
  display: block;
  color: #d7b047;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.auth__eyebrow::before { display: none; }

.auth__headline {
  max-width: 10ch;
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: clamp(42px, 4.2vw, 68px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.auth__hero-copy {
  max-width: 500px;
  margin-top: 28px;
  color: rgba(255, 255, 255, .7);
  font-size: 17px;
  line-height: 1.7;
}

.auth__scope {
  margin-top: clamp(44px, 7vh, 72px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.auth__scope-label {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth__scope-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-weight: 600;
}

.auth__scope-items span + span {
  margin-inline-start: 16px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid rgba(255, 255, 255, .22);
}

.auth__hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .48);
  font-size: 12.5px;
}

.auth__panel {
  min-height: 100vh;
  min-height: 100dvh;
  gap: 0;
  padding: 34px clamp(30px, 5vw, 76px) 30px;
  background: #fff;
}

.auth__panel-top { min-height: 42px; }

.auth__card {
  max-width: 430px;
  animation: none;
}

.auth__brand { margin-bottom: clamp(42px, 7vh, 70px); }
.auth__logo { height: 64px; }

.auth__kicker {
  color: #31558f;
  font-size: 12px;
  letter-spacing: .12em;
}

.auth__title {
  margin-top: 10px;
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -.035em;
}

.auth__lead {
  max-width: 390px;
  margin-top: 13px;
  font-size: 15px;
  line-height: 1.6;
}

.auth__form { gap: 21px; margin-top: 38px; }
.auth__field { gap: 8px; }
.auth__label { font-size: 14px; font-weight: 650; }

.auth__input {
  height: 52px;
  border-width: 1px;
  border-radius: 7px;
  background: #fff;
  font-size: 15px;
}

.auth__input:hover { border-color: #aeb9ce; }
.auth__input:focus { border-color: #315b9b; box-shadow: 0 0 0 3px rgba(49, 91, 155, .13); }

.auth__reveal { border-radius: 5px; }
.auth__check { font-size: 14px; }
.auth__check-box { border-radius: 4px; }

.auth__submit {
  height: 52px;
  margin-top: 5px;
  border-radius: 7px;
  background: #163c78;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}

.auth__submit:hover:not(:disabled) {
  background: #0d2e62;
  box-shadow: 0 8px 20px rgba(22, 60, 120, .18);
  filter: none;
}

.auth__secure {
  margin-top: 30px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 13px;
}

.auth__secure > .icon { color: #315b9b; }
.auth__foot { color: #7a8397; font-size: 12.5px; }

@media (max-width: 1080px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__hero { display: none; }
  .auth__panel { min-height: 100vh; min-height: 100dvh; }
}

@media (max-width: 480px) {
  .auth__panel { padding: 20px 20px 24px; }
  .auth__panel-top { min-height: 38px; }
  .auth__brand { margin-bottom: 38px; }
  .auth__logo { height: 54px; }
  .auth__title { font-size: 31px; }
  .auth__form { margin-top: 30px; }
}

/* Kurumsal portal girişi: tanıtım alanı yerine tek, odaklı erişim ekranı. */
.auth.auth--portal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(to bottom, #0d315f 0 248px, #f3f5f8 248px 100%);
}

.auth__masthead {
  color: #fff;
}

.auth__masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 48px));
  min-height: 90px;
  margin-inline: auto;
}

.auth__wordmark {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.auth__wordmark strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .09em;
}

.auth__wordmark span {
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.auth__masthead .lang__trigger {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.auth__masthead .lang__trigger:hover,
.auth__masthead .lang.is-open .lang__trigger {
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .16);
}

.auth__masthead .lang__trigger .icon { color: rgba(255, 255, 255, .75); }

.auth__stage {
  display: grid;
  place-items: start center;
  padding: 30px 24px 44px;
}

.auth--portal .auth__card {
  width: min(100%, 500px);
  max-width: none;
  margin: 0;
  padding: 42px 46px 38px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(17, 38, 70, .13);
}

.auth--portal .auth__brand {
  justify-content: center;
  margin-bottom: 34px;
}

.auth--portal .auth__logo { height: 66px; }

.auth--portal .auth__heading {
  text-align: center;
}

.auth--portal .auth__title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.auth--portal .auth__lead {
  max-width: none;
  margin-top: 10px;
  font-size: 14.5px;
}

.auth--portal .auth__form {
  gap: 19px;
  margin-top: 32px;
}

.auth--portal .auth__input {
  height: 50px;
  background: #fff;
}

.auth--portal .auth__submit {
  height: 50px;
  background: #173e75;
}

.auth--portal .auth__secure {
  margin-top: 27px;
  padding-top: 15px;
}

.auth--portal .auth__foot {
  margin-top: 17px;
  justify-content: flex-start;
}

.auth__portal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  padding: 0 0 24px;
  color: #697386;
  font-size: 12.5px;
}

@media (max-width: 620px) {
  .auth.auth--portal {
    background: linear-gradient(to bottom, #0d315f 0 150px, #f3f5f8 150px 100%);
  }

  .auth__masthead-inner {
    width: calc(100% - 32px);
    min-height: 72px;
  }

  .auth__wordmark span { display: none; }

  .auth__stage { padding: 14px 14px 28px; }

  .auth--portal .auth__card {
    padding: 32px 24px 28px;
    border-radius: 10px;
  }

  .auth--portal .auth__brand { margin-bottom: 28px; }
  .auth--portal .auth__logo { height: 56px; }
  .auth--portal .auth__title { font-size: 26px; }
  .auth--portal .auth__form { margin-top: 28px; }

  .auth__portal-foot {
    justify-content: center;
    width: calc(100% - 32px);
    padding-bottom: 18px;
    text-align: center;
  }

  .auth__portal-foot span:last-child { display: none; }
}

/* ---- Dar ekranlar --------------------------------------------------------- */

@media (max-width: 960px) {
  .drawer {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }

  .drawer .form-section__head {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .drawer .form-section__head p { text-align: start; }

  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(var(--sidebar-width), 86vw);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .menu-open .sidebar {
    transform: none;
    box-shadow: var(--shadow-pop);
  }

  .menu-open .shell__scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(21, 32, 66, 0.5);
  }

  .shell__main {
    padding: 0 16px 40px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .icon-btn.topbar__menu {
    display: inline-grid;
  }

  .topbar__title {
    flex: 1;
    font-size: 21px;
    white-space: normal;
  }

  .search {
    order: 5;
    flex-basis: 100%;
  }

  .user__text,
  .user__toggle > .icon {
    display: none;
  }

  .user__toggle {
    padding: 4px;
  }

}

@media (max-width: 560px) {
  .drawer {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .drawer .form-section { padding: 18px; }

  .card {
    min-height: 0;
    padding-bottom: 18px;
  }

  .card__art {
    height: 104px;
  }

  .form__grid .field { grid-column: span 12; }
  .list-toolbar { padding: 16px; }
  .list-toolbar > .btn { padding: 0 12px; }
  .pager { padding: 14px 16px; }
  .table { min-width: 700px; }

  .upload__row {
    flex-direction: column;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary {
    grid-template-columns: 1fr 1fr;
  }

  .drawer__body,
  .drawer__foot {
    padding-inline-start: 18px;
    padding-inline-end: 18px;
  }

  .dialog__actions {
    flex-direction: column-reverse;
  }

  .dialog__actions .btn {
    width: 100%;
  }

  .toasts {
    inset: 12px 16px auto auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Kart görünümü (views.js, module.cards) --------------------------------
   Görseli olan içerikler tablo yerine kart ızgarasında listelenir: satırda 4 kart, sayfada 12. */

.rcards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 4px 24px 24px;
  list-style: none;
}

.rcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rcard:hover,
.rcard:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.rcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--brand-wash);
  border-bottom: 1px solid var(--line);
}

/* Dikey kapaklar (dergi): kapak kırpılmadan, ortalanmış gösterilir. */
.rcards--portrait .rcard__media {
  aspect-ratio: 4 / 5;
}

.rcards--portrait .rcard__media img {
  object-fit: contain;
  padding: 12px;
}

/* Görsel alanın oranını bozmasın diye akıştan çıkarılır. */
.rcard__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rcard__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #b3bdd6;
}

.rcard__status {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  box-shadow: 0 1px 4px rgba(24, 43, 94, 0.18);
}

.rcard__flag {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(24, 43, 94, 0.82);
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
}

.rcard__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 14px 16px 12px;
}

.rcard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
  margin: 0;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.rcard__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-tint);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-deep);
  white-space: nowrap;
}

.rcard__title {
  display: -webkit-box;
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--brand-deep);
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.rcard__text {
  display: -webkit-box;
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.rcard__channels {
  display: flex;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 6px;
}

.rcard__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-block: 10px;
  padding-inline: 12px 10px;
  border-top: 1px solid #eef1f8;
  background: #fcfdff;
}

.rcard__channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #a3aabd;
  text-decoration: line-through;
}

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

.rcard__channel.is-on {
  color: var(--success);
  text-decoration: none;
}

.rcard__edit {
  flex: 1;
  margin: 0;
}

/* Sayfa numaraları */
.pager__numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pager__number {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.pager__number:hover {
  border-color: var(--line-strong);
  background: var(--brand-wash);
}

.pager__number.is-current {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.pager__gap {
  width: 22px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .rcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rcards {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 16px 16px;
  }
}

/* ---- İletişim ekranı (contact.js) -----------------------------------------
   Sayfa özet gösterir: üstte genel merkez ve sosyal medya kartları yan yana, altta şube listesi.
   Düzenleme pencerede yapılır (.drawer). */

.contact {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.contact__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
}

.contact__error {
  grid-column: 1 / -1;
}

/* Özet kartı */
.ccard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(24, 43, 94, 0.035);
}

.ccard__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.ccard__title {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-inline-end: auto;
}

.ccard__title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.ccard__title span {
  font-size: 13px;
  color: var(--muted);
}

.ccard__head .btn {
  height: 38px;
  padding: 0 16px;
}

.ccard__body {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 22px 24px 24px;
}

.ccard > .empty {
  flex: 1;
  align-content: center;
}

.ccard__lead h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

.ccard__lead p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ccard__note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* Etiket + değer ızgarası */
.info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
}

.info__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
}

.info__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
}

.info__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.info dt {
  font-size: 12px;
  color: var(--muted);
}

.info dd {
  margin: 0;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.info dd a {
  color: var(--brand);
  text-decoration: none;
}

.info dd a:hover {
  text-decoration: underline;
}

.info__item.is-empty .info__icon {
  background: var(--surface);
  border: 1px solid var(--line);
  color: #a3aabd;
}

.info__item.is-empty dd {
  font-weight: 400;
  color: #a3aabd;
}

/* Kayıtlı sosyal medya hesapları */
.accounts {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.accounts__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef1f8;
}

.accounts__row:first-child {
  padding-top: 0;
}

.accounts__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.accounts__text {
  display: grid;
  gap: 1px;
  min-width: 0;
  margin-inline-end: auto;
}

.accounts__name {
  font-weight: 600;
}

.accounts__url {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accounts__url:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Şube listesi */
.contact__branch-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.contact__search {
  max-width: 340px;
  height: 42px;
}

.contact__branches .table .is-primary {
  width: 30%;
}

/* Düzenleme pencereleri: içerik kadar yükseklik, daha dar genişlik */
.drawer.drawer--fit {
  width: min(880px, calc(100vw - 56px));
  height: fit-content;
}

.contact__map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}

.contact__map-link:hover {
  text-decoration: underline;
}

/* Sosyal medya satırları */
.social {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__row {
  display: grid;
  grid-template-columns: auto auto 118px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  padding-inline: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.social__row:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 2px 10px rgba(24, 43, 94, 0.07);
}

.social__row.is-empty {
  background: #fafbfd;
}

.social__row.is-dragging {
  opacity: 0.45;
}

.social__grip {
  display: grid;
  place-items: center;
  width: 26px;
  height: 36px;
  border-radius: 6px;
  color: #a3aabd;
  cursor: grab;
}

.social__grip:hover {
  background: var(--brand-wash);
  color: var(--brand);
}

.social__grip:active {
  cursor: grabbing;
}

.social__grip .icon {
  stroke-width: 2.6;
}

.social__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--brand-wash);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand);
}

.social__row.is-empty .social__mark {
  background: var(--surface);
  color: #a3aabd;
}

.social__name {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.social__name label {
  font-weight: 600;
}

.social__status {
  font-size: 12.5px;
  color: var(--muted);
}

.social__status.is-live {
  color: var(--success);
}

.social__url {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.social__switch .switch__label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

/* Adres yokken yayın anahtarının anlamı yok: yer tutar ama görünmez. */
.social__row.is-empty .social__switch {
  visibility: hidden;
}

.social__move {
  display: flex;
}

.social__move .icon-btn {
  width: 32px;
  height: 32px;
}

.social__move .icon-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .contact__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .ccard__head {
    padding: 16px;
  }

  .ccard__body {
    padding: 16px;
  }

  .drawer.drawer--fit {
    width: calc(100vw - 16px);
  }

  .social__row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    row-gap: 10px;
  }

  .social__url {
    grid-column: 1 / -1;
    order: 5;
  }

  .social__switch {
    grid-column: 1 / 4;
    order: 6;
  }

  .social__move {
    order: 4;
  }

  .social__row.is-empty .social__switch {
    display: none;
  }

  .contact__branches .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .contact__search {
    max-width: none;
  }
}


/* ==== Çok dilli panel ======================================================
   TR / EN / AR dil seçici, çeviri sekmeleri, dil rozetleri ve sağdan sola (Arapça) düzen. */

:root:lang(ar) {
  --font-head: "Segoe UI", "Noto Sans Arabic", Tahoma, "Arial", system-ui, sans-serif;
  --font-body: "Segoe UI", "Noto Sans Arabic", Tahoma, "Arial", system-ui, sans-serif;
}

.flag {
  flex: none;
  display: block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(24, 43, 94, 0.14);
  overflow: hidden;
}

/* Dil seçici */
.lang {
  position: relative;
  flex: none;
}

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.lang__toggle:hover { border-color: var(--line-strong); background: var(--brand-wash); }
.lang__toggle:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.lang__toggle[aria-expanded="true"] { border-color: var(--sky); }
.lang__toggle > .icon { color: var(--muted); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(24, 43, 94, 0.16);
}

.lang__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.lang__option:hover,
.lang__option:focus-visible { background: var(--brand-wash); outline: 0; }
.lang__option.is-current { background: var(--brand-tint); }
.lang__option > .icon { margin-inline-start: auto; color: var(--brand); }

.lang__text { display: grid; line-height: 1.2; }
.lang__code { font-size: 14px; font-weight: 700; color: var(--brand-deep); }
.lang__name { font-size: 12.5px; color: var(--muted); }

/* Çeviri sekmeleri (formun başında) */
.i18n-bar {
  position: sticky;
  top: -1px;
  z-index: 5;
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, #fff, var(--brand-wash));
  box-shadow: 0 6px 16px rgba(24, 43, 94, 0.06);
}

.i18n-bar__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.i18n-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.i18n-tab:hover { border-color: var(--line-strong); }
.i18n-tab:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

.i18n-tab.is-active {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.i18n-tab__name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.i18n-tab__status {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.i18n-tab.is-partial .i18n-tab__status { background: var(--gold-tint); color: var(--gold-deep); }
.i18n-tab.is-complete .i18n-tab__status { background: var(--success-tint); color: var(--success); }

.i18n-bar__info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.i18n-bar__info > .icon { flex: none; color: var(--sky); }
.i18n-bar__note { flex: 1; margin: 0; }
.i18n-bar__copy { flex: none; }

.btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  gap: 6px;
}

/* Alan etiketindeki dil rozeti */
.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-end: 8px;
  padding-block: 2px;
  padding-inline: 4px 7px;
  border-radius: 6px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.lang-badge--en { background: #eaf1fb; }
.lang-badge--ar { background: #e6f3ec; color: #0b5a31; }

.field--i18n[data-lang="ar"] .input,
.field--i18n[data-lang="ar"] .ck-content,
.rich-editor[lang="ar"] .ck-content {
  font-family: "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.8;
}

/* Kayıtların dil durumu: TR · EN · AR */
.lang-chips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.lang-chip {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 5px;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  color: #9aa2b6;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-chip.is-on {
  border-style: solid;
  border-color: transparent;
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.rcard__channels .lang-chips { margin-inline-start: auto; }

.ccard__sub {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px) {
  .i18n-bar__tabs { grid-template-columns: 1fr; }
  .i18n-bar__info { flex-wrap: wrap; }
  .lang__toggle { height: 40px; padding: 0 9px; }
  .lang--compact .lang__label { display: none; }
}

/* ---- Sağdan sola (Arapça) ------------------------------------------------- */

[dir="rtl"] body { letter-spacing: 0; }

/* Yöne bağlı ikonlar ayna görüntüsü alır. */
[dir="rtl"] .card__go .icon,
[dir="rtl"] .pager .icon,
[dir="rtl"] .nav__item--site .icon,
[dir="rtl"] .contact__map-link .icon:last-child,
[dir="rtl"] .is-link .icon { transform: scaleX(-1); }

[dir="rtl"] .nav__item.is-active::before { inset: 0 0 0 auto; }

[dir="rtl"] .switch__input:checked + .switch__track::after { transform: translateX(-18px); }

[dir="rtl"] .toasts { inset: 20px auto auto 24px; }
[dir="rtl"] .toast.is-leaving { transform: translateX(-24px) scale(0.98); }

[dir="rtl"] .input--select { background-position: left 12px center; }

/* E-posta, adres ve telefon gibi Latin alanlar soldan sağa kalır. */
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="password"],
[dir="rtl"] input[type="number"],
[dir="rtl"] input[type="datetime-local"],
[dir="rtl"] .is-mono,
[dir="rtl"] .accounts__url {
  direction: ltr;
  text-align: end;
}

@media (max-width: 960px) {
  [dir="rtl"] .sidebar {
    inset: 0 0 0 auto;
    transform: translateX(100%);
  }
  [dir="rtl"] .menu-open .sidebar { transform: none; }
}

@media (max-width: 720px) {
  [dir="rtl"] .toasts { inset: 12px auto auto 16px; }
}


/* ---- Form satır düzeni: dar ekranlarda kısa alanlar ikişer, uzunlar tam satır ---- */
@media (max-width: 760px) {
  .form__grid .field--w2,
  .form__grid .field--w3,
  .form__grid .field--w4 { grid-column: span 6; }
  .form__grid .field--w5,
  .form__grid .field--w6,
  .form__grid .field--w7,
  .form__grid .field--w8,
  .form__grid .field--w9,
  .form__grid .field--w10,
  .form__grid .field--half { grid-column: span 12; }
}

/* Yan yana görsel/PDF alanlarında önizleme kompakt kalır. */
.field--w6 .upload__preview img,
.field--w4 .upload__preview img { max-width: 100%; max-height: 120px; }

/* Görsel alanı tam satırdaysa adres kutusu ile önizleme yan yana. */
.field--w12 > .upload { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.field--w12 > .upload .upload__preview img { max-width: 180px; max-height: 96px; }

@media (max-width: 560px) {
  .form__grid .field { grid-column: span 12; }
  .field--w12 > .upload { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Tek kayıtlı içerik: sayfa stüdyosu (önizleme + yayın durumu) --------- */

.page-studio { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; max-width: 1240px; }
.ps-card { padding: 22px 24px; overflow: visible; }
.ps-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ps-card__title { margin: 0; color: var(--brand-deep); font-family: var(--font-head); font-size: 16px; font-weight: 750; }
.ps-card__sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

.ps-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(24, 43, 94, .05); }
.ps-frame__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.ps-frame__dots { display: flex; gap: 6px; flex: none; }
.ps-frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ps-frame__url { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; height: 26px; padding: 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.ps-frame__url svg { flex: none; color: var(--sky); }
.ps-frame__open { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 7px; color: var(--muted); }
.ps-frame__open:hover { background: #fff; color: var(--brand); }

.ps-page { max-height: 640px; padding: 0 0 34px; overflow-y: auto; }
.ps-page__cover { aspect-ratio: 21 / 8; overflow: hidden; background: var(--brand-wash); }
.ps-page__cover img { width: 100%; height: 100%; object-fit: cover; }
.ps-page__eyebrow { display: block; margin: 28px 40px 6px; color: var(--gold-deep); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ps-page__title { margin: 0 40px 16px; color: var(--brand-deep); font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 700; line-height: 1.2; }
.ps-page__text { margin: 0 40px; color: var(--ink); font-size: 15px; line-height: 1.75; }
.ps-page__text p { margin: 0 0 14px; }
.ps-page__text h3 { margin: 22px 0 8px; color: var(--brand-deep); font-size: 17px; }
.ps-page__text .is-empty { color: var(--muted); font-style: italic; }

.ps-page--ghost { padding: 0 0 40px; overflow: hidden; }
.ps-ghost { border-radius: 6px; background: linear-gradient(90deg, #eef1f8, #f6f8fc); }
.ps-ghost--cover { height: 150px; border-radius: 0; }
.ps-ghost--title { width: 52%; height: 22px; margin: 28px 40px 18px; }
.ps-ghost--line { height: 10px; margin: 0 40px 12px; max-width: calc(100% - 80px); }
.ps-empty { position: absolute; inset: 40px 0 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .97) 35%, rgba(255, 255, 255, .78) 75%); }
.ps-empty__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(45, 78, 157, .12); }
.ps-empty__title { margin: 6px 0 0; color: var(--brand-deep); font-size: 18px; font-weight: 800; }
.ps-empty__text { max-width: 380px; margin: 0 0 8px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.ps-side { display: grid; gap: 16px; position: sticky; top: 20px; }
.ps-label { margin: 0; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ps-status { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 18px; }
.ps-status__dot { width: 10px; height: 10px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 4px rgba(195, 203, 223, .35); }
.ps-status__dot.is-live { background: var(--success); box-shadow: 0 0 0 4px rgba(28, 122, 69, .16); }
.ps-status strong { display: block; color: var(--ink); font-size: 15px; }
.ps-status span { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ps-actions { display: grid; gap: 8px; }
.ps-actions .btn { justify-content: center; width: 100%; }
.ps-progress__head { display: flex; align-items: center; justify-content: space-between; }
.ps-progress__value { color: var(--brand-deep); font-size: 14px; }
.ps-progress { height: 6px; margin: 12px 0 16px; overflow: hidden; border-radius: 999px; background: var(--brand-tint); }
.ps-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--sky)); transition: width .4s ease; }
.ps-checks { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ps-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--brand-wash); font-size: 13.5px; }
.ps-check:first-child { border-top: 0; }
.ps-check__mark { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 50%; color: #fff; }
.ps-check.is-done .ps-check__mark { border-color: var(--success); background: var(--success); }
.ps-check.is-partial .ps-check__mark { border-color: var(--gold); background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); }
.ps-check__label { flex: 1; color: var(--muted); }
.ps-check.is-done .ps-check__label { color: var(--ink); font-weight: 600; }
.ps-check__note { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .page-studio { grid-template-columns: 1fr; }
  .ps-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .ps-card { padding: 18px; }
  .ps-page__eyebrow, .ps-page__title, .ps-page__text { margin-inline: 20px; }
  .ps-ghost--title, .ps-ghost--line { margin-inline: 20px; }
}

/* ---- Veri tablosu (geliştirilmiş görünüm) ----------------------------------
   Başlıklar ve hücreler ortalanır; ad/logo sütunu okunabilirlik için başa hizalı kalır.
   Başlıklara tıklanarak sıralanır; satırlar zebra desenli ve üzerine gelince vurgulanır. */

.table--data {
  border-collapse: separate;
  border-spacing: 0;
}

.table--data th,
.table--data td {
  padding: 14px 16px;
  text-align: center;
}

.table--data thead th {
  position: relative;
  padding-block: 0;
  height: 48px;
  background: linear-gradient(180deg, #f5f7fc 0%, #edf1f9 100%);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  border-bottom: 2px solid var(--brand-tint);
}

[lang="ar"] .table--data thead th {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

/* Başlıklar arasında ince ayraç */
.table--data thead th + th::before {
  content: "";
  position: absolute;
  inset-block: 14px;
  inset-inline-start: 0;
  width: 1px;
  background: var(--line);
}

/* Ad sütunu başa hizalı */
.table--data .is-primary,
.table--data .is-primary-head {
  text-align: start;
}

.table--data .is-primary-head .th-sort {
  justify-content: flex-start;
}

.table--data .is-num,
.table--data .is-link,
.table--data .is-actions {
  text-align: center;
}

.table--data .is-link a {
  justify-content: center;
}

/* Sıralanabilir başlık düğmesi */
.th-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}

.th-sort:hover {
  color: var(--brand);
}

.th-sort:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
  border-radius: 6px;
}

.th-sort__icon {
  display: inline-grid;
  line-height: 0;
  color: #b3bbd0;
}

.th-sort__icon .icon {
  stroke-width: 2.4;
}

.th-sort__icon .icon + .icon {
  margin-top: -3px;
}

.th-sort__icon.is-asc .icon:first-child,
.th-sort__icon.is-desc .icon:last-child {
  color: var(--brand);
}

.th-sort__icon.is-asc .icon:last-child,
.th-sort__icon.is-desc .icon:first-child {
  opacity: 0.35;
}

.table--data thead th.is-sorted {
  color: var(--brand);
  background: linear-gradient(180deg, #eef2fb 0%, #e3e9f7 100%);
}

/* Sıra numarası sütunu */
.table--data .is-index {
  width: 1%;
  padding-inline: 14px 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #a3aabd;
}

/* Zebra satırlar ve vurgulu hover */
.table--data tbody tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.table--data tbody tr:nth-child(even) {
  background: #fafbfe;
}

.table--data tbody tr:hover {
  background: #f1f5fd;
  box-shadow: inset 4px 0 0 var(--brand);
}

[dir="rtl"] .table--data tbody tr:hover {
  box-shadow: inset -4px 0 0 var(--brand);
}

.table--data tbody td,
.table--data tbody th {
  border-bottom: 1px solid #edf0f7;
}

/* Logo ve ad */
.table--data .thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(24, 43, 94, 0.12);
}

.table--data .thumb img {
  object-fit: contain;
  padding: 2px;
}

.table--data .cell-main__title {
  font-size: 14.5px;
}

/* Telefon gibi değerler tek satırda kalır */
.table--data .is-mono {
  white-space: nowrap;
}

.table--data td {
  font-size: 14px;
  color: var(--ink);
}

/* Durum rozetleri ve dil çipleri ortada */
.table--data .pill {
  font-size: 12.5px;
  padding-block: 4px;
}

.table--data .lang-chips {
  justify-content: center;
}

/* İşlem düğmeleri */
.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.table--data .row-edit {
  margin: 0;
  border-radius: 8px;
}

.table--data .icon-btn {
  border-radius: 8px;
}

.table--data .icon-btn--danger:hover {
  border-color: var(--danger);
  background: var(--danger-tint);
}

/* Tablo altında numaralı sayfalama */
.pager .pager__numbers {
  margin-inline: 2px;
}

.table--data .cell-main {
  min-width: 260px;
}

/* İletişim ekranında il başkanlıkları modülüne yönlendirme kartı */
.contact__moved {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 22px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact__moved:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(24, 43, 94, 0.08);
}

.contact__moved > div {
  display: grid;
  gap: 2px;
  flex: 1;
}

.contact__moved span:not(.list-toolbar__icon) {
  font-size: 13.5px;
  color: var(--muted);
}

.contact__moved > .icon {
  color: var(--brand);
}

/* Kişi fotoğrafı (ör. il başkanı): portre olduğu için kırpılarak doldurur */
.table--data .thumb--cover img {
  object-fit: cover;
  padding: 0;
}
/* Yönetim panelindeki tüm metinler gölgesiz ve net gösterilir. */
body, body *, body *::before, body *::after { text-shadow: none !important; }

/* ---- Mobil bildirimler (notifications.js) ---------------------------------- */

.push {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.push-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
}

.push-compose .field {
  grid-column: 1 / -1;
}

.push-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.push-count {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.push-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.push-reach {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.push-reach.is-empty {
  color: var(--warning);
}

.push-preview {
  padding: 22px 24px 24px 0;
}

.push-preview__phone {
  min-height: 300px;
  padding: 18px 12px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--brand-deep), var(--brand) 60%, var(--sky));
  box-shadow: inset 0 0 0 6px #0f1d42;
}

.push-preview__time {
  margin: 14px 0 22px;
  text-align: center;
  font-size: 34px;
  font-weight: 300;
  color: #fff;
}

.push-preview__card {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  font-size: 13px;
  line-height: 1.35;
  color: #1c2540;
  overflow-wrap: anywhere;
}

.push-preview__card span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.push-preview__app {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5d6781;
}

.push-preview__logo {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  object-position: left center;
  background: #fff;
}

.push-preview__now {
  margin-inline-start: auto;
  text-transform: none;
}

.push-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.push-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.push-item:first-child {
  padding-top: 0;
}

.push-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.push-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.push-item__title {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.push-item__body {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.push-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.push-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.push-item__error {
  color: var(--danger);
}

.push-status {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.push-status--ok {
  background: var(--success-tint);
  color: var(--success);
}

.push-status--wait {
  background: var(--brand-tint);
  color: var(--brand);
}

.push-status--fail {
  background: var(--danger-tint);
  color: var(--danger);
}

.push-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--brand-tint);
  overflow: hidden;
}

.push-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.4s ease;
}

.push-page {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1280px) {
  .push {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .push-compose {
    grid-template-columns: minmax(0, 1fr);
  }

  .push-preview {
    padding: 0 24px 24px;
  }
}
