/* ===== Avukatapp Backoffice — kurumsal iç uygulama teması ===== */
:root {
  --bg-app: #f0f2f5;
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-table-header: #f3f4f6;
  --bg-sidebar: #0c1222;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #1e40af;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-line: #3b82f6;
  --success: #047857;
  --success-bg: #ecfdf5;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.18s ease;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg-app: #0b0f17;
  --bg-primary: #0b0f17;
  --bg-secondary: #121a2b;
  --bg-card: #151d2e;
  --bg-table-header: #1a2438;
  --bg-sidebar: #070b12;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #2a3548;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-light: rgba(59, 130, 246, 0.12);
  --accent-line: #60a5fa;
  --success: #34d399;
  --success-bg: rgba(6, 78, 59, 0.45);
  --warning: #fbbf24;
  --warning-bg: rgba(120, 53, 15, 0.45);
  --danger: #f87171;
  --danger-bg: rgba(127, 29, 29, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
body.has-three-bg {
  background: var(--bg-app);
}
body:not(.has-three-bg) {
  background: var(--bg-primary);
}
img,
video {
  max-width: 100%;
  height: auto;
}
body.has-three-bg .three-bg-global {
  opacity: 0.2;
}
body[data-theme="dark"].has-three-bg .three-bg-global {
  opacity: 0.34;
}

/* Sayfa girişi: yumuşak belirme (geometrik geçiş yok) */
html.js-app body:not(.login-page):not(.page-transition-in) .topbar,
html.js-app body:not(.login-page):not(.page-transition-in) .content-area {
  opacity: 0;
}
html.js-app body.page-transition-in:not(.login-page) .topbar,
html.js-app body.page-transition-in:not(.login-page) .content-area {
  opacity: 1;
  transition: opacity 0.45s ease-out;
}
html.js-app body.page-transition-in:not(.login-page) .content-area {
  transition-delay: 0.05s;
}

/* Menüler arası: şeffaf blur + çizgisel yükleme (arka plandaki 3D görünmez) */
.page-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body[data-theme="dark"] .page-nav-overlay {
  background: rgba(2, 6, 15, 0.55);
}
.page-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.page-nav-overlay__inner {
  text-align: center;
  max-width: 300px;
}
.page-nav-overlay__brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.35rem;
}
.page-nav-overlay__track {
  height: 3px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.page-nav-overlay__fill {
  display: block;
  height: 100%;
  width: 32%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  animation: pageNavBarSweep 0.85s ease-in-out infinite;
}
.page-nav-overlay__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@keyframes pageNavBarSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(380%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html.js-app body:not(.login-page) .topbar,
  html.js-app body:not(.login-page) .content-area {
    opacity: 1 !important;
    transition: none !important;
  }
  .page-nav-overlay__fill {
    animation: none;
    transform: none;
    width: 40%;
    margin: 0 auto;
  }
}

/* Login */
.login-page { background: linear-gradient(160deg, #eef2f7 0%, #e2e8f0 45%, #f8fafc 100%); }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  animation: slideUp 0.5s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.login-card-logo {
  margin-bottom: 1rem;
  text-align: center;
}
.login-card-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.login-card .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.toast-inline { margin-bottom: 1rem; position: static; animation: toastIn 0.4s ease; }
.login-card .form-group { margin-bottom: 1.25rem; }
.login-card label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; }
.login-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border var(--transition), box-shadow var(--transition);
}
.login-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.18);
}
.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.login-error.show { display: block; animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* App layout */
.app-wrap {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
  background: var(--bg-app);
  position: relative;
  z-index: 1;
}
.sidebar {
  width: 268px;
  min-width: 268px;
  background: var(--bg-sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.sidebar-brand {
  padding: 1.15rem 1.15rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}
.sidebar-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar-brand-dashboard-hit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.sidebar-brand-dashboard-hit:hover {
  background: rgba(255, 255, 255, 0.08);
}
.sidebar-brand-dashboard-hit:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 2px;
}
.sidebar-brand-title-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}
.sidebar-brand-title-link:hover {
  color: #fff;
  text-decoration: none;
}
.sidebar-brand-title-link:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 2px;
}
.sidebar-brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.sidebar-brand-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.sidebar-brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.55);
  line-height: 1.35;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0; -webkit-overflow-scrolling: touch; }
.sidebar-nav a {
  text-decoration: none;
}
.sidebar-nav .nav-section { margin-bottom: 1rem; }
.sidebar-nav .nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
}
.nav-section--solo {
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
/* Üst düzey tek link (Dashboard): gruptan bağımsız, orta ton */
.sidebar-nav .nav-section--solo > a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.9);
}
.sidebar-nav .nav-section--solo > a:visited {
  color: rgba(248, 250, 252, 0.9);
}
.sidebar-nav .nav-section--solo > a:hover {
  color: #fff;
}
.sidebar-nav .nav-section--solo > a.active,
.sidebar-nav .nav-section--solo > a.active:visited {
  font-weight: 700;
}
.sidebar-nav-group {
  margin-bottom: 0.2rem;
  border-radius: var(--radius-sm);
}
/* Ana menü başlığı: alt linklerden belirgin şekilde büyük ve kalın */
.sidebar-nav-group__summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.015em;
  color: rgba(248, 250, 252, 0.96);
  padding: 0.7rem 1rem 0.7rem 1.2rem;
  min-height: 48px;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: var(--radius-sm);
}
.sidebar-nav-group__summary::-webkit-details-marker {
  display: none;
}
.sidebar-nav-group__summary::marker {
  content: '';
}
.sidebar-nav-group__summary::after {
  content: '›';
  margin-left: auto;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(147, 197, 253, 0.65);
  transform: rotate(0deg);
  transition: transform 0.22s ease, color 0.2s ease;
}
.sidebar-nav-group[open] > .sidebar-nav-group__summary::after {
  transform: rotate(90deg);
  color: rgba(147, 197, 253, 0.95);
}
.sidebar-nav-group__summary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.sidebar-nav-group[open] > .sidebar-nav-group__summary {
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-nav-group__summary:focus {
  outline: none;
}
.sidebar-nav-group__summary:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 2px;
}
/* Alt menü: dikey blok liste; tarayıcı link varsayılanı (mavi, alt çizgi) kapalı */
.sidebar-nav-group__inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0.4rem 0.4rem 0.5rem;
  padding: 0.45rem 0.4rem 0.55rem 0.55rem;
  min-width: 0;
  border-left: 2px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.12);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.sidebar-nav-group[open] > .sidebar-nav-group__inner {
  border-left-color: rgba(96, 165, 250, 0.38);
  background: rgba(15, 23, 42, 0.45);
}
.sidebar-nav .sidebar-nav-group__inner a {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem 0.55rem 0.65rem;
  min-height: 0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  color: rgba(226, 232, 240, 0.88);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  transform: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.sidebar-nav .sidebar-nav-group__inner a:visited {
  color: rgba(226, 232, 240, 0.88);
}
.sidebar-nav .sidebar-nav-group__inner a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  transform: translateX(2px);
}
.sidebar-nav .sidebar-nav-group__inner a.active,
.sidebar-nav .sidebar-nav-group__inner a.active:visited {
  background: rgba(59, 130, 246, 0.22);
  color: #f0f9ff;
  border-left-color: var(--accent-line);
  font-weight: 600;
}
.sidebar-nav-group__sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
  padding: 0.75rem 1.25rem 0.3rem 1.6rem;
  margin-top: 0.15rem;
  pointer-events: none;
}
/* Genel nav link (grup dışı, örn. Dashboard) */
.sidebar-nav > .nav-section > a,
.sidebar-nav > a {
  display: block;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    padding 0.22s ease;
  border-left: 3px solid transparent;
}
.sidebar-nav > .nav-section > a:visited,
.sidebar-nav > a:visited {
  color: rgba(255, 255, 255, 0.85);
}
.sidebar-nav > .nav-section > a:hover,
.sidebar-nav > a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-nav > .nav-section > a:hover,
  .sidebar-nav > a:hover,
  .sidebar-nav .sidebar-nav-group__inner a:hover {
    transform: none;
  }
  .sidebar-nav-group__summary::after,
  .sidebar-nav-group[open] > .sidebar-nav-group__summary::after {
    transition: none;
  }
}
.sidebar-nav > .nav-section > a.active,
.sidebar-nav > a.active,
.sidebar-nav > .nav-section > a.active:visited,
.sidebar-nav > a.active:visited {
  background: rgba(59, 130, 246, 0.14);
  color: #f8fafc;
  border-left-color: var(--accent-line);
  font-weight: 600;
}
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sidebar-footer .user-email {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout {
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-logout:hover { background: rgba(239, 68, 68, 0.35); }

.main-content {
  flex: 1;
  margin-left: 268px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-app);
}
/* Arka plandaki Three.js + gradient görülsün: cam efekti */
body.has-three-bg .app-wrap {
  background: transparent;
}
body.has-three-bg .main-content {
  background: rgba(240, 242, 245, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body[data-theme="dark"].has-three-bg .main-content {
  background: rgba(11, 15, 23, 0.8);
}
body.has-three-bg .topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(226, 232, 240, 0.85);
}
body[data-theme="dark"].has-three-bg .topbar {
  background: rgba(21, 29, 46, 0.9);
  border-bottom-color: rgba(42, 53, 72, 0.95);
}

/* Mobil menü butonu - sadece küçük ekranda görünür */
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-toggle:hover { background: var(--accent-light); color: var(--accent); }
.sidebar-toggle .icon-menu,
.sidebar-toggle .icon-close { font-size: 1.35rem; line-height: 1; }
.sidebar-toggle .icon-close { display: none; }
body.sidebar-open .sidebar-toggle .icon-menu { display: none; }
body.sidebar-open .sidebar-toggle .icon-close { display: inline-block; }

/* Sidebar overlay - mobilde menü açıkken arka plan karartma */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.sidebar-open .sidebar-overlay {
  display: block;
  opacity: 1;
}
@media (hover: hover) {
  .sidebar-overlay { cursor: pointer; }
}

.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.topbar h2,
.topbar .topbar-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  letter-spacing: -0.035em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Etkileyici tipografi — liste ve kart başlıkları */
.card-header h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}
.content-area > h2:first-child {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  transition: transform 0.2s, background 0.2s;
}
.theme-toggle:hover { background: var(--accent-light); color: var(--accent); }
.content-area {
  flex: 1;
  padding: 1.25rem 1.5rem 2rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Utility */
.hide { display: none !important; }

/* Kartlar — sade kurumsal yüzey */
.card-3d,
.stat-card-3d {
  transition:
    box-shadow var(--transition),
    border-color var(--transition),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-3d {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.card-3d:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .card-3d:hover {
    transform: none;
  }
}
[data-theme="dark"] .card-3d:hover {
  border-color: #3d4f6e;
}
.stat-card-3d {
  position: relative;
}
.stat-card-3d:hover {
  box-shadow: var(--shadow-md);
}
.stat-card-glow {
  display: none;
}

/* Global 3D arka plan - tüm backoffice sayfalarında (dashboard, listeler, vb.) */
.three-bg-global {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.three-bg-global canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
}

/* Spatial / AR-VR esintisi: ufuk ızgarası + yumuşak ışık (dekoratif, sade) */
.spatial-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.spatial-ambient__glow {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 90% 65% at 50% 105%, rgba(37, 99, 235, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 40% at 85% 12%, rgba(99, 102, 241, 0.09), transparent 52%);
  animation: spatialGlowPulse 22s ease-in-out infinite;
}
body[data-theme="dark"] .spatial-ambient__glow {
  background:
    radial-gradient(ellipse 88% 60% at 50% 100%, rgba(59, 130, 246, 0.2), transparent 58%),
    radial-gradient(ellipse 42% 38% at 12% 18%, rgba(129, 140, 248, 0.12), transparent 52%);
}
@keyframes spatialGlowPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.015);
  }
}
.spatial-ambient__grid {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -5%;
  height: 55%;
  opacity: 0.2;
  transform: perspective(420px) rotateX(72deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to top, black 15%, rgba(0, 0, 0, 0.45) 55%, transparent 88%);
  mask-image: linear-gradient(to top, black 15%, rgba(0, 0, 0, 0.45) 55%, transparent 88%);
  animation: spatialGridScroll 36s linear infinite;
}
body[data-theme="dark"] .spatial-ambient__grid {
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.16) 1px, transparent 1px);
}
@keyframes spatialGridScroll {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 176px, 176px 0;
  }
}
.spatial-ambient__horizon {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), transparent);
  opacity: 0.55;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.login-page .spatial-ambient--login .spatial-ambient__grid {
  opacity: 0.28;
}
@media (prefers-reduced-motion: reduce) {
  .spatial-ambient__glow,
  .spatial-ambient__grid {
    animation: none;
  }
}

/* ========== Dashboard – içerik üstte, animasyon arkada ========== */
.dashboard-premium { padding-bottom: 1rem; }

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

/* Dashboard v2 – hero, ipuçları, grafik grid */
.dashboard-v2 .dashboard-hero.card-3d {
  margin-bottom: 1.5rem;
  padding: 0;
}
.dashboard-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
}
@media (max-width: 900px) {
  .dashboard-hero-inner {
    grid-template-columns: 1fr;
  }
}
.dashboard-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.dashboard-v2 .dashboard-title {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  line-height: 1.15;
}
.dashboard-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 42rem;
  line-height: 1.6;
}
.dashboard-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}
.dashboard-hero-top .dashboard-eyebrow {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.dashboard-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  flex-shrink: 0;
}
.dashboard-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.dashboard-health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dashboard-health-pill--ok .dashboard-health-dot {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}
.dashboard-health-pill--info .dashboard-health-dot {
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}
.dashboard-health-pill--warn .dashboard-health-dot {
  background: #ca8a04;
  box-shadow: 0 0 0 2px rgba(202, 138, 4, 0.28);
}
.dashboard-health-pill--risk .dashboard-health-dot {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.28);
  animation: dashboardHealthPulse 1.8s ease-in-out infinite;
}
@keyframes dashboardHealthPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-health-pill--risk .dashboard-health-dot {
    animation: none;
  }
}
.dashboard-refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.dashboard-refresh-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.dashboard-refresh-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.dashboard-refresh-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dashboard-refresh-ico {
  flex-shrink: 0;
  opacity: 0.85;
}
.dashboard-refresh-pill:hover .dashboard-refresh-ico {
  opacity: 1;
}
.dashboard-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}
.dashboard-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.45);
  animation: dashboardMetaPulse 2.2s ease-in-out infinite;
}
@keyframes dashboardMetaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-meta-dot {
    animation: none;
  }
}
.dashboard-code {
  font-size: 0.72rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: var(--border);
  color: var(--text-primary);
  word-break: break-all;
}
.dashboard-hero-kpi {
  display: flex;
  justify-content: center;
  padding: 0.35rem;
}
.dashboard-hero-kpi-ring {
  width: 8.75rem;
  height: 8.75rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid var(--border);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.09), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .dashboard-hero-kpi-ring {
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.14), transparent 58%);
  border-color: #334155;
}
.dashboard-hero-kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}
.dashboard-hero-kpi-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.35rem;
  max-width: 7.5rem;
  padding: 0 0.5rem;
}

/* —— Dashboard Pro: üst KPI şeridi, bölüm başlıkları, grafik kartları —— */
.dashboard-pro .dashboard-hero-inner {
  align-items: stretch;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, transparent 42%, transparent 100%);
  border-radius: inherit;
  border-left: 4px solid var(--accent);
  padding-left: calc(1.75rem - 4px);
}
[data-theme="dark"] .dashboard-pro .dashboard-hero-inner {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, transparent 45%);
  border-left-color: #60a5fa;
}
.dashboard-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  min-width: 0;
}
@media (max-width: 900px) {
  .dashboard-hero-metrics {
    grid-template-columns: 1fr;
    max-width: 22rem;
    width: 100%;
    justify-self: stretch;
  }
}
.dashboard-metric-tile {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 6.5rem;
  justify-content: center;
}
[data-theme="dark"] .dashboard-metric-tile {
  background: rgba(15, 23, 42, 0.45);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.dashboard-metric-tile__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  line-height: 1.25;
}
.dashboard-metric-tile__value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}
.dashboard-metric-tile__value--split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  font-size: 1.15rem;
}
.dashboard-metric-tile__value--split small {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-left: 0.15rem;
}
.dashboard-metric-tile__sep {
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.65;
}
.dashboard-metric-tile__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.dashboard-section-intro {
  margin: 0 0 1rem;
  padding: 0 0.15rem;
}
.dashboard-section-intro--spaced {
  margin-top: 2.25rem;
}
.dashboard-section-intro__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.dashboard-section-intro__text {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 44rem;
}

.dashboard-insights--pro.card-3d {
  padding: 1.35rem 1.45rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}
[data-theme="dark"] .dashboard-insights--pro.card-3d {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.dashboard-chart-card--donut {
  border-top: 3px solid #3b82f6;
}
.dashboard-chart-card--bar {
  border-top: 3px solid #8b5cf6;
}
[data-theme="dark"] .dashboard-chart-card--donut {
  border-top-color: #60a5fa;
}
[data-theme="dark"] .dashboard-chart-card--bar {
  border-top-color: #a78bfa;
}
.dashboard-chart-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}
.dashboard-chart-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e40af;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.dashboard-chart-badge--bar {
  color: #5b21b6;
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.3);
}
[data-theme="dark"] .dashboard-chart-badge {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.35);
}
[data-theme="dark"] .dashboard-chart-badge--bar {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(167, 139, 250, 0.35);
}
.dashboard-chart-card__head .dashboard-chart-cap {
  margin-bottom: 0;
}
.dashboard-chart-card__head .dashboard-chart-cap > strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dashboard-pro .stat-card-pro.stat-card-premium {
  padding: 1.35rem 1.4rem;
  border-radius: calc(var(--radius) + 2px);
}
.dashboard-pro .stat-card-pro .stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.dashboard-pro .stat-card-pro .stat-card-label {
  font-size: 0.72rem;
  font-weight: 700;
}
.dashboard-pro .stat-card-pro .stat-card-icon {
  font-size: 1.65rem;
}

.dashboard-subtitle-spaced {
  margin-top: 2rem;
}
.dashboard-api-note {
  margin-bottom: 1rem;
}

/* Durum paneli — metrik yorumları */
.dashboard-insights.card-3d {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
}
.dashboard-insights-head {
  margin-bottom: 1rem;
}
.dashboard-insights-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.dashboard-insights-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 50rem;
}
.dashboard-insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.dashboard-insight {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  border-left-width: 4px;
}
.dashboard-insight-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.dashboard-insight-body {
  min-width: 0;
  flex: 1;
}
.dashboard-insight-kicker {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.dashboard-insight-text {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.dashboard-insight-link {
  display: inline-flex;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.dashboard-insight-link:hover {
  text-decoration: underline;
}
.dashboard-insight--danger {
  border-left-color: #dc2626;
  background: var(--danger-bg);
}
.dashboard-insight--warning {
  border-left-color: #ca8a04;
  background: var(--warning-bg);
}
.dashboard-insight--info {
  border-left-color: #2563eb;
  background: rgba(37, 99, 235, 0.07);
}
[data-theme="dark"] .dashboard-insight--info {
  background: rgba(59, 130, 246, 0.12);
}
.dashboard-insight--success {
  border-left-color: #16a34a;
  background: var(--success-bg);
}

.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 960px) {
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
}
.dashboard-chart-card.card-3d {
  margin-bottom: 0;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dashboard-chart-cap {
  margin: 0 0 1rem;
  padding: 0;
}
/* Yalnızca başlık satırı blok; metin içi <strong> satır kırılmasın */
.dashboard-chart-cap > strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dashboard-chart-cap span strong,
.dashboard-chart-cap p strong {
  display: inline;
  font-size: inherit;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.dashboard-chart-cap span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}
.dashboard-chart-cap__wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dashboard-chart-cap__line {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.dashboard-chart-cap__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.dashboard-chart-cap__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  line-height: 1.25;
  white-space: nowrap;
}
.dashboard-chart-cap__chip b {
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.dashboard-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: min(280px, 42vw);
  min-height: 220px;
}
.dashboard-chart-canvas-wrap--tall {
  height: min(340px, 52vw);
  min-height: 280px;
}
.dashboard-chart-canvas-wrap--quad {
  height: min(260px, 48vw);
  min-height: 220px;
}
.dashboard-chart-canvas-wrap--cities {
  height: min(300px, 50vw);
  min-height: 240px;
}
@media (max-width: 600px) {
  .dashboard-chart-canvas-wrap,
  .dashboard-chart-canvas-wrap--tall,
  .dashboard-chart-canvas-wrap--quad,
  .dashboard-chart-canvas-wrap--cities {
    height: 260px;
    min-height: 240px;
  }
}

.dashboard-exc-delta {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.dashboard-exc-delta--up { color: #dc2626; }
.dashboard-exc-delta--down { color: #16a34a; }
.dashboard-exc-delta--neutral { color: var(--text-muted); font-weight: 500; }

.dashboard-stat-section {
  margin-bottom: 1.75rem;
}
.dashboard-stat-section:last-child {
  margin-bottom: 0;
}
.dashboard-stat-section__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.dashboard-stats-wrap .dashboard-stat-section .stats-grid-premium {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.dashboard-stats-wrap {
  position: relative;
}

.dashboard-stats-wrap .stats-grid {
  position: relative;
  z-index: 1;
  gap: 1.25rem;
}

/* Premium stat kartları - animasyonlu */
.stats-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Dashboard: 8 metrik — auto-fill geniş ekranda 7+1 “yetim satır” üretir; sabit 4+4 / 2×4 daha dengeli */
@media (min-width: 769px) {
  .dashboard-v2 .stats-grid-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .dashboard-v2 .stats-grid-premium {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stat-card-premium {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: statCardIn 0.45s ease forwards;
  transition: box-shadow var(--transition), border-color var(--transition);
}
[data-theme="dark"] .stat-card-premium {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.stat-card-premium:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
[data-theme="dark"] .stat-card-premium:hover {
  border-color: #3d4f6e;
}

/* Dashboard: metrik kartı = link; çift üst çizgi olmasın (.stat-card::before kapat) */
a.dashboard-stat-link.stat-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
  box-sizing: border-box;
}
a.dashboard-stat-link.stat-card::before {
  content: none;
  display: none;
}
a.dashboard-stat-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a.dashboard-stat-link .stat-card-hint {
  color: var(--text-muted);
}

@keyframes statCardIn {
  to { opacity: 1; transform: translateY(0); }
}

.stat-card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 0;
  transform-origin: left;
  animation: accentBarIn 0.8s ease forwards;
}
@keyframes accentBarIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
/* Dashboard metrikleri: grafik renkleriyle aynı, birbirinden ayırt edilebilir tonlar */
.stat-card-premium[data-accent="users"] .stat-card-accent-bar { background: #2563eb; }
.stat-card-premium[data-accent="pending"] .stat-card-accent-bar { background: #ca8a04; }
.stat-card-premium[data-accent="active"] .stat-card-accent-bar { background: #16a34a; }
.stat-card-premium[data-accent="posts"] .stat-card-accent-bar { background: #9333ea; }
.stat-card-premium[data-accent="posts_approve"] .stat-card-accent-bar { background: #16a34a; }
.stat-card-premium[data-accent="posts_reject"] .stat-card-accent-bar { background: #dc2626; }
.stat-card-premium[data-accent="waiting"] .stat-card-accent-bar { background: #f97316; }
.stat-card-premium[data-accent="applied"] .stat-card-accent-bar { background: #7c3aed; }
.stat-card-premium[data-accent="support"] .stat-card-accent-bar { background: #0891b2; }
.stat-card-premium[data-accent="payment"] .stat-card-accent-bar { background: #c026d3; }
.stat-card-premium[data-accent="alert"] .stat-card-accent-bar { background: #dc2626; }
.stat-card-premium[data-accent="passive"] .stat-card-accent-bar { background: #64748b; }
.stat-card-premium[data-accent="deleted"] .stat-card-accent-bar { background: #991b1b; }
.stat-card-premium[data-accent="processing"] .stat-card-accent-bar { background: #0ea5e9; }
.stat-card-premium[data-accent="passive_p"] .stat-card-accent-bar { background: #78716c; }
.stat-card-premium[data-accent="posts_shared"] .stat-card-accent-bar { background: #a855f7; }
.stat-card-premium[data-accent="posts_completed"] .stat-card-accent-bar { background: #0d9488; }

.stat-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
  opacity: 0.85;
}
.stat-card-premium .stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.stat-card-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.stat-card-premium .stat-card-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.stat-card-bar {
  margin-top: 0.75rem;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.stat-card-bar-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 1s ease-out;
}
.stat-card-premium[data-accent="users"] .stat-card-bar-fill { background: #2563eb; }
.stat-card-premium[data-accent="pending"] .stat-card-bar-fill { background: #ca8a04; }
.stat-card-premium[data-accent="active"] .stat-card-bar-fill { background: #16a34a; }
.stat-card-premium[data-accent="posts"] .stat-card-bar-fill { background: #9333ea; }
.stat-card-premium[data-accent="posts_approve"] .stat-card-bar-fill { background: #16a34a; }
.stat-card-premium[data-accent="posts_reject"] .stat-card-bar-fill { background: #dc2626; }
.stat-card-premium[data-accent="waiting"] .stat-card-bar-fill { background: #f97316; }
.stat-card-premium[data-accent="applied"] .stat-card-bar-fill { background: #7c3aed; }
.stat-card-premium[data-accent="support"] .stat-card-bar-fill { background: #0891b2; }
.stat-card-premium[data-accent="payment"] .stat-card-bar-fill { background: #c026d3; }
.stat-card-premium[data-accent="alert"] .stat-card-bar-fill { background: #dc2626; }
.stat-card-premium[data-accent="passive"] .stat-card-bar-fill { background: #64748b; }
.stat-card-premium[data-accent="deleted"] .stat-card-bar-fill { background: #991b1b; }
.stat-card-premium[data-accent="processing"] .stat-card-bar-fill { background: #0ea5e9; }
.stat-card-premium[data-accent="passive_p"] .stat-card-bar-fill { background: #78716c; }
.stat-card-premium[data-accent="posts_shared"] .stat-card-bar-fill { background: #a855f7; }
.stat-card-premium[data-accent="posts_completed"] .stat-card-bar-fill { background: #0d9488; }

/* Giriş: spatial katman + kart */
.login-page .spatial-ambient--login {
  z-index: 0;
}
.login-page .login-wrap {
  position: relative;
  z-index: 1;
}

/* Cards (varsayılan - card-3d kullanılmayan yerler için) */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.card-header h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.card-meta { font-size: 0.875rem; color: var(--text-muted); font-weight: 400; }
.card-body { padding: 1.5rem; }
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 1rem; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.2); }
.debug-box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; font-size: 0.75rem; overflow-x: auto; margin-bottom: 1rem; max-height: 300px; overflow-y: auto; }
.empty-cell { text-align: center; color: var(--text-muted); padding: 1.5rem !important; }
/* Filtreler – tek satır, yan yana, wrap ile responsive */
.list-filters-inline,
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  row-gap: 0.5rem;
}
.list-filters-inline select,
.list-filters-inline input[type="text"],
.list-filters-inline input[type="number"],
.list-filters-inline input[type="date"],
.list-filters-inline input[type="datetime-local"],
.filters-bar select,
.filters-bar input[type="text"],
.filters-bar input[type="number"],
.filters-bar input[type="date"],
.filters-bar input[type="datetime-local"] {
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-width: 0;
  max-width: 100%;
}
.list-filters-inline select,
.filters-bar select { min-width: 100px; max-width: 180px; }
.list-filters-inline select.lawyer-stats-view-select {
  min-width: min(16rem, 100%);
  max-width: min(22rem, 100%);
  font-weight: 600;
}
/* Forum moderasyonu: uzun Türkçe seçenek metinleri */
.list-filters-inline.forum-moderation-filters select {
  min-width: 280px;
  max-width: min(100%, 440px);
  flex: 1 1 280px;
}
.list-filters-inline input[type="text"],
.list-filters-inline input[type="number"],
.filters-bar input[type="text"],
.filters-bar input[type="number"] { min-width: 90px; }
.list-filters-inline input[type="date"],
.list-filters-inline input[type="datetime-local"],
.filters-bar input[type="date"],
.filters-bar input[type="datetime-local"] { min-width: 140px; }
.list-filters-inline .btn,
.filters-bar .btn { flex-shrink: 0; }
/* İsim / adliye adı araması — dar kalmaması için */
.list-filters-inline input.filter-text-name {
  min-width: min(11rem, 100%);
  max-width: min(18rem, 100%);
}

/* Aramalı combo: tek satır kutu + açılır liste */
.combo-field.combo-field--unified {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  min-width: min(11rem, 100%);
  max-width: min(18rem, 100%);
}
.combo-field--unified .combo-field__box {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  overflow: hidden;
  box-sizing: border-box;
  min-height: 2.25rem;
}
.combo-field--unified .combo-field__face {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text-primary);
  box-sizing: border-box;
}
.combo-field--unified .combo-field__face:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent, #2563eb);
}
.combo-field--unified .combo-field__toggle {
  flex: 0 0 auto;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 0 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.combo-field--unified .combo-field__toggle:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
.combo-field--unified .combo-field__caret {
  font-size: 0.65rem;
  opacity: 0.85;
}
.combo-field--unified .combo-field__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 80;
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.combo-field--unified .combo-field__opt {
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.combo-field--unified .combo-field__opt:hover {
  background: var(--bg-secondary);
}
.combo-field--unified.is-disabled .combo-field__box {
  opacity: 0.55;
  pointer-events: none;
}
.combo-field--unified.is-disabled .combo-field__toggle {
  cursor: not-allowed;
}
.filter-court-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.65rem;
}
.form-grid .combo-field {
  max-width: 100%;
}

@media (max-width: 640px) {
  .list-filters-inline,
  .filters-bar { flex-direction: row; flex-wrap: wrap; }
  .list-filters-inline select,
  .list-filters-inline input,
  .filters-bar select,
  .filters-bar input { min-width: 0; flex: 1 1 120px; }
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 1;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
@media (min-width: 769px) {
  .table-wrap .data-table { min-width: 640px; }
}
table.data-table th,
table.data-table td { padding: 0.875rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.data-table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-table-header);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
table.data-table tr:hover td { background: var(--accent-light); }
[data-theme="dark"] table.data-table tr:hover td { background: rgba(59, 130, 246, 0.1); }
table.data-table td { color: var(--text-primary); }
.table-user-link { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.table-user-link:hover { color: var(--accent); text-decoration: underline; }
.cell-desc-inline { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.notification-token-cell { max-width: min(420px, 100%); word-break: break-all; }
.token-preview {
  display: inline;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  background: var(--bg-secondary);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.post-title-cell,
.post-desc-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-title,
.cell-desc { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) {
  .post-title-cell { max-width: 220px; }
  .post-desc-cell { max-width: 280px; }
  .cell-title { max-width: 220px; }
  .cell-desc { max-width: 280px; }
}

/* Liste tablosu – mobilde kart görünümü (data-label ile) */
.data-table-list tbody tr {
  transition: background 0.15s;
}
.pagination-wrap {
  padding: 0 1.5rem 1.5rem;
}
.pagination-wrap .pagination {
  margin-top: 0;
}
.pagination-btn {
  min-width: 44px;
  min-height: 44px;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--accent-light); color: var(--accent); }
.badge-neutral { background: var(--border); color: var(--text-secondary); }

/* Buttons – mobilde en az 44px dokunma alanı */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  font-family: inherit;
  min-height: 44px;
}
.btn-block { width: 100%; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; min-height: 36px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--border); color: var(--text-primary); }
.btn-secondary:hover { background: var(--text-muted); color: white; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--accent-light); color: var(--accent); }
.btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Form */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border 0.2s;
}
.form-group textarea { min-height: 120px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* ===== Liste sayfaları (İlanlar, Atamalar, Hata logları) ===== */
.list-page {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.list-page-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.list-page-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.list-page-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.list-alert {
  margin: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.list-alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.list-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.list-table-wrap {
  padding: 0 1.5rem 1.5rem;
}

.filters-details {
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.filters-summary {
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.filters-summary::-webkit-details-marker { display: none; }
.filters-summary::before {
  content: '▸';
  font-size: 0.9rem;
  transition: transform 0.2s;
}
details[open] .filters-summary::before { transform: rotate(90deg); }
.filters-bar {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.filter-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.filter-label-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.filter-input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  width: 100%;
  min-width: 0;
}
.filter-input:focus {
  outline: none;
  border-color: var(--accent);
}
.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.filters-actions .btn { min-height: 44px; min-width: 44px; }

.filters-bar { margin-bottom: 0; }
/* Diğer sayfalardaki filters-bar (input/select) */
.filters-bar input:not(.filter-input),
.filters-bar select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-width: 140px;
}

.pagination { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.pagination a {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}
.pagination a:hover { background: var(--accent-light); color: var(--accent); }
.pagination a.active { background: var(--accent); color: white; border-color: var(--accent); }
.pagination a.disabled,
.pagination a[aria-disabled="true"] { opacity: 0.6; pointer-events: none; cursor: default; }
.pagination a.disabled:hover,
.pagination a[aria-disabled="true"]:hover { background: var(--bg-secondary); color: var(--text-primary); }

/* Responsive tablo – mobilde satırlar kart gibi (data-label ile); tüm tablolar için geçerli */
@media (max-width: 768px) {
  .data-table-responsive thead,
  .table-wrap table.data-table thead { display: none; }
  .data-table-responsive tbody tr,
  .table-wrap table.data-table tbody tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
  .data-table-responsive tbody td,
  .table-wrap table.data-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border: none;
    font-size: 0.875rem;
  }
  .data-table-responsive tbody td::before,
  .table-wrap table.data-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }
  .data-table-responsive tbody td[data-label=""]::before,
  .table-wrap table.data-table tbody td[data-label=""]::before { content: none; }
  .data-table-responsive tbody td.empty-cell,
  .table-wrap table.data-table tbody td.empty-cell { display: block; text-align: center; }
  .data-table-responsive tbody td.empty-cell::before,
  .table-wrap table.data-table tbody td.empty-cell::before { content: none; }
  .data-table-responsive .cell-title,
  .data-table-responsive .cell-desc,
  .table-wrap table.data-table .cell-title,
  .table-wrap table.data-table .cell-desc { max-width: none; white-space: normal; word-break: break-word; }
  .data-table-responsive tbody td:not([data-label])::before,
  .table-wrap table.data-table tbody td:not([data-label])::before {
    content: none;
  }
}

.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-muted); }
.text-success { color: var(--success); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.detail-item {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.detail-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.detail-item .value { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }

/* ===== Uygulama destek kaydı — mesaj listesi ===== */
.support-messages { display: flex; flex-direction: column; gap: 1rem; }
.support-message {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.support-message.from-user { border-left: 4px solid var(--accent); }
.support-message.from-backoffice { border-left: 4px solid var(--success); }
.support-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.support-message-sender { font-weight: 600; color: var(--text-primary); }
.support-message-body { font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* ===== Talep / e-posta detayı (support-detail) ===== */
.support-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 1100px) {
  .support-detail-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .support-detail-summary-grid { grid-template-columns: 1fr; }
}
.support-detail-field {
  padding: 1rem 1.125rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  min-width: 0;
}
.support-detail-field--wide {
  grid-column: 1 / -1;
}
.support-detail-field .meta-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.support-detail-field .meta-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  word-break: break-word;
}
.support-detail-field .meta-value--muted { color: var(--text-muted); font-weight: 400; }
.support-detail-dates {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 400;
}
.support-detail-date-line .meta-sublabel {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
}
.support-detail-field--description .meta-value {
  white-space: pre-wrap;
  max-height: 240px;
  overflow-y: auto;
  font-weight: 400;
}
.support-detail-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.support-detail-panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.support-detail-panel-body { margin: 0; }
.support-detail-panel-body > p.text-muted:first-child { margin-top: 0; }
.support-detail-status-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}
.support-detail-status-form .form-group {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.support-detail-status-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.support-detail-status-form select {
  min-width: min(100%, 220px);
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
}
.support-detail-status-form .btn { align-self: flex-end; }
.support-detail-reply-form .form-group:first-of-type input[type="text"] {
  max-width: 42rem;
}
.support-detail-reply-form .text-muted {
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ===== Exception detail – yazılımcı odaklı ===== */
.exception-detail-card .card-body { padding: 1.25rem; }
.exception-detail-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.exception-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.exception-badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.exception-badge-http.status-5xx { background: var(--danger-bg); color: var(--danger); border-color: rgba(220, 38, 38, 0.3); }
.exception-badge-http.status-4xx { background: var(--warning-bg); color: var(--warning); border-color: rgba(217, 119, 6, 0.3); }
.exception-badge-http.status-2xx { background: var(--success-bg); color: var(--success); border-color: rgba(5, 150, 105, 0.3); }
.exception-section { margin-bottom: 1.5rem; }
.exception-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.exception-message-block .exception-message {
  padding: 1rem 1.25rem;
  background: var(--danger-bg);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.exception-dl { margin: 0; }
.exception-dl dt { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; margin-bottom: 0.2rem; }
.exception-dl dd { margin: 0; }
.exception-dl code,
.exception-dd-url code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  word-break: break-all;
}
.exception-dd-url code { display: inline-block; max-width: 100%; }
.exception-pre {
  margin: 0;
  padding: 1rem;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  border: 1px solid var(--border);
}
.exception-pre code { background: none; padding: 0; color: inherit; }
.exception-stack-section .exception-pre { max-height: 420px; white-space: pre; }
.detail-grid-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
@media (max-width: 768px) {
  .exception-summary { flex-direction: row; flex-wrap: wrap; }
  .exception-pre { max-height: 280px; font-size: 0.75rem; padding: 0.75rem; }
}

/* ===== Giriş yükleme katmanı ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}
.loading-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
}
/* Yükleniyor göstergesi – CSS spinner */
.loading-overlay-spinner {
  width: 36px;
  height: 36px;
  margin: 1rem 0 1rem;
  border: 3px solid rgba(59, 130, 246, 0.25);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: loading-spin 0.85s linear infinite;
}
@keyframes loading-spin {
  to { transform: rotate(360deg); }
}
.loading-overlay-msg {
  color: #e2e8f0;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.loading-dots span {
  animation: loading-dot 1.4s steps(4, end) infinite;
  opacity: 0;
}
.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loading-dot {
  0%, 20% { opacity: 0; }
  40%, 100% { opacity: 1; }
}
.loading-overlay-sub {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 0;
}
/* İnce progress çizgisi – yükleniyor hissi */
.loading-overlay-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.loading-overlay-bar-fill {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 3px;
  animation: loading-bar 1.5s ease-in-out infinite;
}
@keyframes loading-bar {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(250%); }
  100% { transform: translateX(-100%); }
}

/* ===== Toast mesajları (işlem cevapları) ===== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: toastIn 0.4s ease;
  border: 1px solid transparent;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
.toast-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(5, 150, 105, 0.25);
}
[data-theme="dark"] .toast-success {
  background: var(--success-bg);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.35);
}
.toast-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.25);
}
[data-theme="dark"] .toast-error {
  background: var(--danger-bg);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}
.toast-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: rgba(217, 119, 6, 0.25);
}
[data-theme="dark"] .toast-warning {
  background: var(--warning-bg);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
}
.toast-info {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(30, 64, 175, 0.2);
}
[data-theme="dark"] .toast-info {
  background: var(--accent-light);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.35);
}
.toast-icon { font-size: 1.35rem; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.toast-text { font-size: 0.875rem; opacity: 0.95; }
.toast-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.1rem;
  line-height: 1;
  transition: opacity 0.2s;
}
.toast-close:hover { opacity: 1; }

/* ===== Mobil uyumluluk ===== */
@media (max-width: 768px) {
  .sidebar-toggle { display: inline-flex; min-width: 44px; min-height: 44px; }
  .sidebar {
    width: min(280px, 100vw);
    min-width: 0;
    max-width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    will-change: transform;
    padding-top: env(safe-area-inset-top);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open { overflow: hidden; }
  .main-content { margin-left: 0; }
  .content-area { padding: 1rem; }
  .topbar { padding: 0.75rem 1rem; }
  .topbar h2,
  .topbar .topbar-title { font-size: 1.15rem; }
  .theme-toggle { min-width: 44px; min-height: 44px; }
  .card-header,
  .card-body { padding: 1rem; }
  .stats-grid,
  .stats-grid-premium { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-card-premium { padding: 1.1rem; }
  .stat-card-premium .stat-card-value { font-size: 1.5rem; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .filters-bar input,
  .filters-bar select { min-width: 0; width: 100%; }
  /* Liste filtreleri: ayrıntılar dosya sonunda form.list-filters-inline (960px) */
  .form-group input,
  .form-group select { font-size: 16px; }
  .filters-row { grid-template-columns: 1fr 1fr; }
  .filters-actions .btn { flex: 1; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  table.data-table th,
  table.data-table td { padding: 0.65rem 0.5rem; font-size: 0.8rem; }
  .pagination { gap: 0.35rem; flex-wrap: wrap; }
  .pagination a { padding: 0.4rem 0.6rem; font-size: 0.8rem; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .sidebar-footer { flex-wrap: wrap; }
  .content-area { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .topbar { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
  .btn.btn-sm { min-height: 44px; min-width: 44px; }
  .btn-logout { flex-shrink: 0; min-height: 44px; }

  body.has-three-bg .main-content {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  body.has-three-bg .topbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .page-nav-overlay {
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }
  .page-nav-overlay__inner {
    max-width: min(300px, 100%);
  }
  .toast-container {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    top: max(0.75rem, env(safe-area-inset-top));
    max-width: none;
  }
  .content-area > h2:first-child {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    word-break: break-word;
  }
  .dashboard-hero-inner {
    padding: 1.15rem 1.2rem;
  }
  .dashboard-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .dashboard-hero-kpi-ring {
    width: 7.5rem;
    height: 7.5rem;
  }
  .dashboard-hero-kpi-value {
    font-size: 1.35rem;
  }
  .dashboard-insights.card-3d {
    padding: 1rem 1.05rem;
  }
  .dashboard-insight {
    flex-wrap: wrap;
    padding: 0.75rem 0.85rem;
  }
  .detail-grid-compact {
    grid-template-columns: 1fr;
  }
  .loading-overlay-inner {
    padding-left: max(0, env(safe-area-inset-left));
    padding-right: max(0, env(safe-area-inset-right));
  }
  .table-wrap table.data-table tbody td[data-label=""] {
    justify-content: flex-end;
  }
  .table-wrap table.data-table tbody td .btn {
    flex-shrink: 0;
  }

  /* Liste sayfaları – mobilde tablo satırları kart gibi */
  .list-page-header { padding: 1rem; }
  .list-page-title { font-size: 1.1rem; }
  .list-table-wrap { padding: 0 1rem 1rem; }
  .list-alert { margin: 1rem; }
  .filters-details .filters-bar { padding: 0 1rem 1rem; }
  .filters-summary { padding: 1rem; }
  .data-table-list thead { display: none; }
  .data-table-list tbody tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
  .data-table-list tbody tr:hover { background: var(--bg-secondary); }
  .data-table-list tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border: none;
    font-size: 0.875rem;
  }
  .data-table-list tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }
  .data-table-list tbody td[data-label=""]::before { content: none; }
  .data-table-list tbody td:first-child { padding-top: 0; }
  .data-table-list .cell-title,
  .data-table-list .cell-desc { max-width: none; white-space: normal; word-break: break-word; }
  .data-table-list .badge { align-self: flex-start; }
  .pagination-wrap { padding: 0 1rem 1rem; }
}

@media (max-width: 480px) {
  .content-area { padding: 0.75rem; padding-left: max(0.75rem, env(safe-area-inset-left)); padding-right: max(0.75rem, env(safe-area-inset-right)); }
  .stats-grid,
  .stats-grid-premium { grid-template-columns: 1fr; }
  .stat-card { padding: 1.25rem; }
  .stat-card .value { font-size: 1.5rem; }
  .stat-card-premium .stat-card-value { font-size: 1.4rem; }
  .card-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  table.data-table th,
  table.data-table td { padding: 0.5rem 0.4rem; font-size: 0.75rem; }
  .badge { font-size: 0.7rem; padding: 0.2rem 0.45rem; }
  .btn.btn-sm { padding: 0.4rem 0.6rem; font-size: 0.75rem; min-height: 44px; min-width: 44px; }
  .login-card { padding: 1.5rem; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  .login-card h1 { font-size: 1.4rem; }
  .login-card-logo img { width: 48px; height: 48px; }
  .toast-container { left: max(0.75rem, env(safe-area-inset-left)); right: max(0.75rem, env(safe-area-inset-right)); top: max(0.75rem, env(safe-area-inset-top)); max-width: none; }
  .filters-row { grid-template-columns: 1fr; }
  .list-page-header { flex-direction: column; align-items: flex-start; }
  .sidebar { padding-bottom: env(safe-area-inset-bottom); }
  .page-nav-overlay__brand {
    font-size: 1.05rem;
  }
  .dashboard-hero-kpi-ring {
    width: 6.75rem;
    height: 6.75rem;
  }
  .dashboard-v2 .dashboard-title {
    font-size: 1.42rem;
  }
  .login-wrap {
    min-height: 100dvh;
    padding: 1rem max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
  }
  .main-content {
    min-height: 100dvh;
  }
}

/* Giriş: yatay telefon / kısa ekran */
@media (max-height: 460px) and (orientation: landscape) {
  .login-page .login-wrap {
    align-items: flex-start;
    padding-top: max(0.5rem, env(safe-area-inset-top));
  }
  .login-page .login-card {
    padding: 1.25rem 1.5rem;
  }
}

/* ======================================================================
   Liste filtre formları — kompakt tablet/mobil (dosya sonu, yüksek öncelik)
   form seçicisi + !important: .btn min-height ve eski kuralları ezer.
   max-width 960px: 768’den geniş “dar pencere” ve tablet dikey dahil.
   ====================================================================== */
@media (max-width: 960px) {
  .list-filters-mobile-shell {
    margin-bottom: 0.65rem;
  }
  .list-filters-mobile-toggle {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
  }
  .list-filters-mobile-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
  }
  .list-filters-mobile-toggle::after {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -0.2rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
  }
  .list-filters-mobile-shell.is-open .list-filters-mobile-toggle::after {
    transform: rotate(225deg);
    margin-top: 0.1rem;
  }
  .list-filters-mobile-panel {
    display: none;
    margin-top: 0.45rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
  }
  .list-filters-mobile-shell.is-open .list-filters-mobile-panel {
    display: block;
  }

  form.list-filters-inline {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.45rem;
    align-items: stretch;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.55rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
  }

  form.list-filters-inline > label {
    grid-column: 1 / -1;
    margin: 0 0 0.05rem 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    line-height: 1.2;
  }

  form.list-filters-inline > select.lawyer-stats-view-select {
    grid-column: 1 / -1;
    font-weight: 600;
  }

  form.list-filters-inline > select,
  form.list-filters-inline > input:not([type="hidden"]) {
    grid-column: span 1;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 34px !important;
    max-height: none;
    padding: 0.2rem 0.45rem !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
  }

  form.list-filters-inline > select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4L6 8l3.5-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 10px 10px;
    padding-right: 1.55rem !important;
  }

  [data-theme="dark"] form.list-filters-inline > select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2.5 4L6 8l3.5-4'/%3E%3C/svg%3E");
  }

  form.list-filters-inline > input.filter-text-name {
    min-width: 0 !important;
    max-width: none !important;
  }

  form.list-filters-inline > input[type="datetime-local"] {
    grid-column: 1 / -1;
  }

  form.list-filters-inline.forum-moderation-filters > select {
    grid-column: 1 / -1;
  }

  form.list-filters-inline > .filter-court-group {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  form.list-filters-inline > .combo-field {
    grid-column: 1 / -1;
    max-width: none;
  }
  form.list-filters-inline > .combo-field .combo-field__box,
  form.list-filters-inline > .combo-field .combo-field__face {
    width: 100%;
    max-width: none;
  }

  form.list-filters-inline > .btn,
  form.list-filters-inline > a.btn {
    grid-column: span 1;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0.28rem 0.5rem !important;
    font-size: 0.78rem !important;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 0.1rem;
    width: auto;
    justify-self: stretch;
  }

  /* Sadece “Filtrele” ile biten formlar (ör. forum); Filtrele+Temizle’de son çocuk <a> olduğu için tetiklenmez */
  form.list-filters-inline > button.btn:last-child {
    grid-column: 1 / -1;
  }
}
