:root {
  --ink: #15202b;
  --muted: #5b6b7c;
  --line: #d7dee7;
  --surface: #f3f6f9;
  --panel: #ffffff;
  --accent: #1e4f8a;
  --accent-2: #163a66;
  --sidebar: #0f172a;
  --sidebar-2: #020617;
  --sidebar-width: 260px;
  --portal-blue: #1e4f8a;
  --portal-orange: #e87722;
  --portal-card-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(30, 79, 138, 0.15), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(232, 119, 34, 0.12), transparent 35%),
    linear-gradient(160deg, #eef3f7, #dfe8f0 55%, #cfdce8);
}

.auth-shell { width: min(440px, calc(100% - 2rem)); }

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.auth-brand { display: flex; gap: 1rem; align-items: center; }

.auth-mark {
  width: 3rem;
  height: 3rem;
  border-radius: .9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--portal-blue), var(--portal-orange));
  color: #fff;
  font-weight: 700;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  align-items: center;
  color: var(--muted);
  font-size: .85rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

html { font-size: 16px; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  transition: grid-template-columns .22s ease;
}

.app-shell.sidebar-hidden,
html.sidebar-hidden-init .app-shell {
  --sidebar-width: 0px;
}

.app-sidebar {
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color: #fff;
  padding: 1rem .85rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity .18s ease;
}

.app-shell.sidebar-hidden .app-sidebar,
html.sidebar-hidden-init .app-sidebar {
  opacity: 0;
  pointer-events: none;
}

.sidebar-brand {
  display: flex;
  gap: .85rem;
  align-items: center;
  margin-bottom: .75rem;
  padding: .5rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: .9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--portal-blue), var(--portal-orange));
  color: #fff;
  font-weight: 700;
}

.sidebar-brand small { display: block; opacity: .7; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: .15rem;
}

.sidebar-nav .nav-link {
  color: rgba(255,255,255,.85);
  border-radius: .7rem;
  padding: .65rem .85rem;
  display: flex;
  gap: .65rem;
  align-items: center;
  text-decoration: none;
  font-size: .92rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.nav-section {
  margin: 1rem 0 .35rem;
  padding: 0 .85rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
}

.nav-link-top {
  margin-bottom: 0.35rem;
}

.nav-group {
  margin-top: 0.15rem;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  margin: 0;
  border: none;
  border-radius: 0.7rem;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-group-toggle:hover,
.nav-group.is-open > .nav-group-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-group-toggle .nav-group-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.nav-group.is-open > .nav-group-toggle .nav-group-chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

.nav-group-panel {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0 0.35rem;
}

.nav-group.is-open > .nav-group-panel {
  display: flex;
}

.nav-group .nav-link-sub {
  padding-left: 1.15rem;
  font-size: 0.86rem;
  opacity: 0.92;
}

.nav-group .nav-link-sub i {
  font-size: 0.95rem;
  opacity: 0.85;
}

.nav-group--nested {
  margin-top: 0.05rem;
}

.nav-group--nested > .nav-group-toggle--sub {
  padding: 0.5rem 0.85rem 0.5rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-group--nested > .nav-group-panel .nav-link-sub {
  padding-left: 1.85rem;
  font-size: 0.84rem;
}

.site-ayar-subnav .nav-link {
  font-size: 0.9rem;
}

.sidebar-toggle-btn { flex-shrink: 0; }

.app-main { display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}

.app-content { padding: 1.5rem; flex: 1; }

.stat-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}

.stat-label { display: block; color: var(--muted); font-size: .85rem; }

.stat-value { font-size: 2rem; color: var(--accent-2); }

.panel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}

.panel-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1035;
  background: rgba(15, 23, 42, .45);
  border: 0;
  padding: 0;
  cursor: pointer;
}

body.sidebar-open-mobile { overflow: hidden; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    width: min(280px, 88vw);
    box-shadow: 8px 0 32px rgba(0,0,0,.2);
    transform: translateX(0);
    transition: transform .22s ease, opacity .18s ease;
    opacity: 1;
    pointer-events: auto;
  }
  .app-shell.sidebar-hidden .app-sidebar,
  html.sidebar-hidden-init .app-sidebar {
    transform: translateX(-105%);
    opacity: 1;
    pointer-events: none;
  }
  html:not(.sidebar-ready) .app-sidebar {
    transform: translateX(-105%);
    pointer-events: none;
  }
  .app-shell:not(.sidebar-hidden) .sidebar-backdrop { display: block; }
  .sidebar-toggle-btn .icon-desktop { display: none; }
  .sidebar-toggle-btn .icon-hamburger { display: inline-block; }
  .app-shell:not(.sidebar-hidden) .sidebar-toggle-btn .icon-hamburger { display: none; }
  .app-shell:not(.sidebar-hidden) .sidebar-toggle-btn .icon-close { display: inline-block; }
  .sidebar-toggle-btn .icon-close { display: none; }
}

@media (min-width: 901px) {
  .sidebar-toggle-btn .icon-hamburger,
  .sidebar-toggle-btn .icon-close { display: none; }
}

/* Yönetim paneli: sol menü her zaman solda, gizlenmez */
.admin-sidebar-pinned .app-shell {
  grid-template-columns: var(--sidebar-width) 1fr;
}
.admin-sidebar-pinned .app-shell.sidebar-hidden {
  --sidebar-width: 260px;
}
.admin-sidebar-pinned .app-shell.sidebar-hidden .app-sidebar,
html.sidebar-hidden-init .admin-sidebar-pinned .app-sidebar {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 901px) {
  .admin-sidebar-pinned .sidebar-toggle-btn,
  .admin-sidebar-pinned .sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .admin-sidebar-pinned .app-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar-pinned .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 88vw);
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-105%);
    opacity: 1;
    pointer-events: none;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
    z-index: 1040;
    transition: transform 0.25s ease;
  }
  .admin-sidebar-pinned .app-shell:not(.sidebar-hidden) .app-sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }
  .admin-sidebar-pinned .sidebar-nav {
    max-height: calc(100vh - 5.5rem);
  }
  .admin-sidebar-pinned .app-topbar .topbar-title {
    font-size: 1rem;
  }
  .admin-sidebar-pinned .sidebar-toggle-btn {
    display: inline-flex !important;
  }
  .admin-sidebar-pinned .sidebar-toggle-btn .icon-desktop {
    display: none !important;
  }
  .admin-sidebar-pinned .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1035;
    border: none;
    padding: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
  }
  .admin-sidebar-pinned .app-shell:not(.sidebar-hidden) .sidebar-backdrop {
    display: block;
  }
}

/* Ziyaretçi site ön yüzü */
.public-site {
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-site .site-main {
  flex: 1;
}

.top-util {
  background: linear-gradient(90deg, var(--portal-orange), #d96518);
  color: #fff;
  font-size: 0.86rem;
  padding: 0.45rem 0;
}

.top-util a.top-util-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-util a.top-util-link:hover {
  text-decoration: underline;
}

.top-util a.top-util-phone,
.top-util a.top-util-mail {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-util a.top-util-phone:hover,
.top-util a.top-util-mail:hover {
  text-decoration: underline;
}

.top-util-tagline {
  opacity: 0.95;
}

.lang-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.top-util .doviz-ust {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: inherit;
}
.top-util .doviz-ust span { white-space: nowrap; opacity: .95; }
.top-util .doviz-ust b { margin-right: .2rem; }

.top-util-social {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.top-util-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  font-size: .95rem;
  transition: background .15s ease, transform .15s ease;
}
.top-util-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.top-util .lang-flags {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-flags .gflag {
  display: inline-flex;
  line-height: 0;
  padding: 1px;
  border: 1px solid transparent;
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-flags .gflag img {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
}

.lang-flags .gflag:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-flags .gflag.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

#google_translate_element2,
.goog-te-banner-frame,
.skiptranslate,
.goog-te-gadget,
iframe.skiptranslate {
  display: none !important;
}

body.public-site {
  top: 0 !important;
}

.goog-te-balloon-frame {
  display: none !important;
}

font {
  background: none !important;
  box-shadow: none !important;
}

.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.site-header--emlak .header-wave {
  display: block;
  height: 16px;
  margin-top: -1px;
  background: #fff;
  clip-path: ellipse(70% 100% at 50% 0%);
}

.site-nav--emlak {
  padding: 0.35rem 0 0.45rem;
}

.site-nav--emlak .site-nav-inner {
  flex-wrap: nowrap;
}

.site-brand-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.site-menu--icon-stack .site-menu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  gap: 0.1rem;
  padding: 0.2rem 0.45rem;
  min-width: 4rem;
}

.site-menu--icon-stack .site-menu-link:hover {
  color: var(--portal-blue);
}

.site-menu--icon-stack .nav-ico {
  display: block;
  color: var(--portal-orange);
  font-size: 1.05rem;
  line-height: 1;
}

.site-logo-admin-preview {
  max-height: 80px;
  width: auto;
}

/* Site modal duyuru (CMS ile uyumlu) */
.site-announcement-modal .modal-content {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.site-announcement-modal .modal-header {
  background: linear-gradient(90deg, var(--portal-blue), var(--portal-orange));
  color: #fff;
  border-bottom: 0;
}

.site-announcement-modal .modal-header .modal-title {
  color: #fff;
  font-weight: 700;
}

.site-announcement-modal .modal-header .btn-close {
  filter: invert(1);
}

.site-announcement-body {
  background: #fff;
  line-height: 1.65;
  padding: 1.25rem;
}

.site-announcement-body img {
  max-width: 100%;
  height: auto;
}

.site-announcement-modal .modal-footer {
  background: #f8f9fa;
  border-top: 1px solid var(--line);
}

@media (max-width: 991px) {
  .site-menu--icon-stack .site-menu-link {
    flex-direction: row;
    text-transform: none;
    font-size: 0.95rem;
    min-width: 0;
    justify-content: flex-start;
  }

  .site-menu--icon-stack .nav-ico {
    font-size: 1.1rem;
  }
}

.site-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-nav--emlak .site-brand-sub {
  font-size: 0.7rem;
  line-height: 1.15;
  margin-top: 0.05rem;
}

.site-nav--emlak .site-brand-text strong {
  font-size: 1rem;
  line-height: 1.15;
}

.site-nav-inner--left {
  justify-content: flex-start;
}

.site-nav-inner--left .site-nav-menu {
  flex: 1 1 auto;
}

.site-nav-inner--right {
  justify-content: space-between;
}

.site-nav-inner--right .site-nav-menu {
  margin-left: auto;
}

.site-nav-inner--center {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-nav-inner--center .site-brand {
  justify-self: start;
}

.site-nav-inner--center .site-nav-menu {
  justify-self: center;
  grid-column: 2;
}

@media (max-width: 767px) {
  .site-nav-inner--center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav-inner--center .site-nav-menu {
    justify-self: stretch;
  }
}

.site-menu-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-menu-link:hover {
  color: var(--portal-blue);
}

.site-menu-item {
  position: relative;
}

.site-menu-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--portal-card-shadow);
  padding: 0.35rem 0;
  z-index: 20;
}

.site-menu-item.has-children:hover .site-menu-sub {
  display: block;
}

.site-menu-sub a {
  display: block;
  padding: 0.4rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.site-menu-sub a:hover {
  background: #f1f5f9;
}

.site-ayar-menu-preview {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2rem;
  padding: 0.25rem 0.5rem;
  background: #f1f5f9;
  border-radius: 0.35rem;
}

.site-ayar-preview-logo {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  background: linear-gradient(145deg, var(--portal-blue), var(--portal-orange));
  flex-shrink: 0;
}

.site-ayar-preview-menu {
  height: 0.35rem;
  border-radius: 999px;
  background: #94a3b8;
  flex: 1;
  max-width: 4rem;
}

.site-ayar-menu-preview--left {
  justify-content: flex-start;
}

.site-ayar-menu-preview--center {
  justify-content: center;
}

.site-ayar-menu-preview--center .site-ayar-preview-menu {
  max-width: 5rem;
}

.site-ayar-menu-preview--right {
  justify-content: flex-end;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.site-brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--portal-blue), var(--portal-orange));
  color: #fff;
  font-weight: 700;
}

.site-brand-sub {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 1.5rem;
}

/* Portal ana sayfa */
.portal-page {
  max-width: 1320px;
  margin: 0 auto;
}

.portal-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-row--2col-equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-row--3col {
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr) minmax(180px, 0.8fr);
}

.portal-row--3col-equal {
  grid-template-columns: repeat(3, 1fr);
}

.portal-row--4col {
  grid-template-columns: repeat(4, 1fr);
}

.portal-slot-empty {
  min-height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px dashed #cbd5e1;
}

.portal-hero {
  min-height: 420px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 45%, #f8fafc 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  box-shadow: var(--portal-card-shadow);
}

.portal-hero__caption {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.portal-section-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.product-grid > .product-card {
  height: 100%;
}

/* Ana sayfa ön yüz — kart hover için alan; slot taşmasın diye kırpma kapalı */
.site-main .portal-page .product-grid {
  padding: 0.25rem 0 0.85rem;
}

/* Ürün kartları modülü: aynı satırdaki kartlar eşit yükseklik; açıklama alanı hizalı */
.site-main .portal-page .product-grid--portal .product-card__desc {
  min-height: calc(0.95rem * 1.45 * 3);
}

.site-main .portal-page .product-grid--portal .product-card__title {
  min-height: calc(1.35rem * 1.2 * 2);
}

.site-main .portal-slot--grid,
.site-main .portal-row--products .portal-slot {
  overflow: visible;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--portal-card-shadow);
  display: flex;
  flex-direction: column;
  min-height: 180px;
  box-sizing: border-box;
}

.product-card__media {
  margin: -0.25rem 0 0.85rem;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__media--placeholder {
  background: linear-gradient(145deg, #dbeafe 0%, #f1f5f9 100%);
}

.product-card__media--placeholder img {
  object-fit: contain;
  padding: 0.5rem;
}

.program-detail__img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.cms-html {
  line-height: 1.6;
  color: #334155;
}

.cms-html img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.cms-html a {
  color: var(--portal-blue);
}

.product-card__title {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.product-card__brand {
  color: var(--portal-blue);
  font-weight: 700;
}

.product-card__highlight {
  color: var(--portal-orange);
  font-weight: 700;
}

.product-card__plain {
  color: #334155;
  font-weight: 700;
}

.product-card__desc {
  flex: 1 1 auto;
  margin: 0 0 0.75rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.product-card__link {
  color: var(--portal-blue);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}

.product-card__link:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .portal-row--3col,
  .portal-row--3col-equal,
  .portal-row--4col {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    min-height: 280px;
  }
}

/* —— Yönetim paneli (premium) —— */
@keyframes sd-accent-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes sd-brand-glow {
  from { box-shadow: 0 8px 24px rgba(30, 79, 138, 0.4); }
  to { box-shadow: 0 10px 32px rgba(232, 119, 34, 0.35); }
}

.admin-body {
  background:
    radial-gradient(ellipse 85% 55% at 5% -5%, rgba(30, 79, 138, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(232, 119, 34, 0.1), transparent 50%),
    linear-gradient(168deg, #dfe8f2 0%, #f3f6f9 42%, #e9f0f7 100%);
  background-attachment: fixed;
}

.admin-body .app-sidebar {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 6px 0 48px rgba(0, 0, 0, 0.22);
}

.admin-body .app-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(30, 79, 138, 0.4), transparent 52%),
    radial-gradient(circle at 100% 100%, rgba(232, 119, 34, 0.18), transparent 48%);
  pointer-events: none;
}

.admin-body .sidebar-brand,
.admin-body .sidebar-nav {
  position: relative;
  z-index: 1;
}

.admin-body .brand-mark {
  box-shadow: 0 8px 28px rgba(30, 79, 138, 0.45);
  animation: sd-brand-glow 4s ease-in-out infinite alternate;
}

.admin-body .sidebar-nav .nav-link {
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.admin-body .sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.admin-body .sidebar-nav .nav-link.active,
.admin-body .sidebar-nav .nav-link-sub.active {
  background: linear-gradient(90deg, rgba(30, 79, 138, 0.65), rgba(232, 119, 34, 0.28));
  box-shadow: inset 3px 0 0 var(--portal-orange), 0 6px 20px rgba(0, 0, 0, 0.18);
  font-weight: 600;
}

.admin-body .sidebar-nav .nav-link-sub.active {
  opacity: 1;
}

.admin-body .app-topbar {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: none;
  box-shadow: 0 4px 28px rgba(15, 23, 42, 0.07);
  position: relative;
}

.admin-body .app-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--portal-blue), var(--portal-orange), var(--portal-blue));
  background-size: 200% 100%;
  animation: sd-accent-slide 7s linear infinite;
}

.admin-body .app-topbar .topbar-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--ink), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-body .admin-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(30, 79, 138, 0.08), rgba(232, 119, 34, 0.06));
  border: 1px solid rgba(30, 79, 138, 0.12);
}

.admin-body .panel-card,
.admin-body .stat-tile {
  border: 1px solid rgba(30, 79, 138, 0.1);
  box-shadow: var(--portal-card-shadow), 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.admin-body .panel-card:hover {
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}

.admin-body .sd-page-head {
  margin-bottom: 1.25rem;
}

.admin-body .sd-page-head .sd-page-head__title {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  font-size: 1.35rem;
}

.admin-body .sd-page-head .sd-page-head__sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.25rem 0 0;
}

.admin-body .btn-primary {
  background: linear-gradient(135deg, #1e4f8a 0%, #2a6cb8 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(30, 79, 138, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-body .btn-primary:hover,
.admin-body .btn-primary:focus {
  background: linear-gradient(135deg, #163a66 0%, #1e4f8a 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30, 79, 138, 0.4);
}

.admin-body .table thead {
  background: linear-gradient(180deg, #f8fafc, #e8eef5);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.admin-body .table tbody tr {
  transition: background 0.15s ease;
}

.admin-body .table tbody tr:hover {
  background: rgba(30, 79, 138, 0.05);
}

.admin-body .badge {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Premium modal */
.modal-backdrop.show {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1 !important;
  background: rgba(15, 23, 42, 0.55) !important;
}

.sd-modal.modal.fade .modal-dialog {
  transform: scale(0.9) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.sd-modal.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

.sd-modal .modal-content {
  border: none;
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sd-modal .modal-header {
  background: linear-gradient(135deg, #0f2847 0%, #1e4f8a 42%, #2870b8 100%);
  color: #fff;
  border: none;
  padding: 1.35rem 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.sd-modal .modal-header::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -15%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(232, 119, 34, 0.45), transparent 68%);
  pointer-events: none;
}

.sd-modal .modal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.sd-modal .modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.sd-modal .modal-title-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sd-modal .modal-title-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.sd-modal .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.9;
  z-index: 1;
}

.sd-modal .modal-body {
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.sd-modal .modal-footer {
  border: none;
  padding: 1rem 1.5rem 1.4rem;
  background: #f0f5fa;
  gap: 0.5rem;
}

.sd-modal .sd-field {
  position: relative;
}

.sd-modal .form-label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.sd-modal .form-control,
.sd-modal .form-select {
  border-radius: 0.7rem;
  border-color: #c5d4e4;
  padding: 0.6rem 0.9rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sd-modal .form-control:focus,
.sd-modal .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 79, 138, 0.12);
}

.sd-modal .btn-save-glow {
  background: linear-gradient(135deg, #1e4f8a, #e87722);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.35rem;
  box-shadow: 0 6px 20px rgba(30, 79, 138, 0.35);
}

.sd-modal .btn-save-glow:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* SweetAlert2 — yönetim teması */
.sd-swal.swal2-popup {
  border-radius: 1.15rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.sd-swal .swal2-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sd-swal .swal2-confirm {
  background: linear-gradient(135deg, #1e4f8a, #2870b8) !important;
  box-shadow: 0 4px 14px rgba(30, 79, 138, 0.35);
  font-weight: 600;
  border-radius: 0.55rem !important;
}

.sd-swal .swal2-cancel {
  font-weight: 600;
  border-radius: 0.55rem !important;
}

.sd-swal-toast.swal2-popup {
  border-radius: 0.85rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(30, 79, 138, 0.1);
}
