/* =====================================================================
   CG Cadde PMS — "Yönetim Paneli" görünümü (v5: yüzen koyu menü + bento)
   Yalnızca <html data-skin="pro"> iken geçerlidir. Klasik görünüm app.css'te kalır.
   Geri dönüş: profil menüsü → Görünüm → Klasik.
   ===================================================================== */

/* ---------- 1. Değişkenler ---------- */
html[data-skin="pro"] {
  /* Firma renkleri: kırmızı · antrasit · beyaz */
  --bg: #f2f2f3;
  --bg-2: #e8e8ea;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --fill: #efeff1;
  --ink: #26282c;
  --muted: #6c6f76;
  --line: #e4e4e7;
  --red: #c8102e;
  --red-deep: #9e0b23;
  --ok: #0f8a5f;
  --warn: #c2620a;
  --danger: #c8102e;
  --vacate: #0e7490;
  --nav-1: #4a4d54;
  --nav-2: #2d2f34;
  --nav-3: #1a1b1e;
  --nav-text: #d6d7da;
  --nav-muted: #8d9097;
  --nav-hover: rgba(255, 255, 255, .07);
  --hero-1: #c8102e;
  --hero-2: #8a0a1f;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(20, 20, 24, .04), 0 6px 20px rgba(20, 20, 24, .06);
  --shadow-hover: 0 2px 4px rgba(20, 20, 24, .05), 0 14px 32px rgba(20, 20, 24, .10);
  --shadow-lg: 0 24px 60px rgba(20, 20, 24, .22);
  --topbar-bg: transparent;
  --chart-track: #ececee;
  --chart-muted: #d4d5d8;
  --chart-accent: #3a3d43;
  --chart-bar: #c8102e;
}
html[data-skin="pro"][data-theme="dark"] {
  --bg: #131416;
  --bg-2: #1a1b1e;
  --surface: #1e1f22;
  --surface-soft: #242528;
  --fill: #292a2e;
  --ink: #f1f1f2;
  --muted: #a2a4aa;
  --line: #313236;
  --red: #e8344f;
  --red-deep: #c8102e;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f0506b;
  --nav-1: #1b1c1f;
  --nav-2: #161719;
  --nav-3: #101113;
  --hero-1: #c8102e;
  --hero-2: #7a091b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .45), 0 16px 36px rgba(0, 0, 0, .4);
  --chart-track: #292a2e;
  --chart-muted: #3a3b40;
  --chart-accent: #c9cbd0;
  --chart-bar: #e8344f;
}
html[data-skin="pro"] body {
  background: var(--bg);
  background-image: radial-gradient(1200px 520px at 100% -10%, color-mix(in srgb, var(--red) 5%, transparent), transparent 60%),
                    radial-gradient(900px 420px at 30% -20%, color-mix(in srgb, var(--nav-1) 5%, transparent), transparent 60%);
  background-attachment: fixed;
}

/* ---------- 2. Yüzen koyu menü ---------- */
html[data-skin="pro"] .sidebar {
  background:
    radial-gradient(120% 38% at 0% 0%, color-mix(in srgb, var(--red) 26%, transparent), transparent 70%),
    radial-gradient(90% 30% at 100% 100%, color-mix(in srgb, var(--red) 12%, transparent), transparent 70%),
    linear-gradient(165deg, var(--nav-1) 0%, var(--nav-2) 48%, var(--nav-3) 100%);
  color: var(--nav-text);
  border: 0;
  box-shadow: 0 18px 40px rgba(20, 20, 24, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 16px 14px 14px;
}
@media (min-width: 1101px) {
  html[data-skin="pro"] .app { grid-template-columns: 296px minmax(0, 1fr); }
  html[data-skin="pro"] .sidebar { position: sticky; top: 14px; height: calc(100dvh - 28px); margin: 14px 0 14px 14px; border-radius: 26px; }
}
@media (max-width: 1100px) {
  html[data-skin="pro"] .sidebar { border-radius: 0 26px 26px 0; }
}
html[data-skin="pro"] .brand { position: relative; display: block; overflow: visible; width: auto; aspect-ratio: auto; margin: 0 0 6px; padding: 8px 6px 14px; border: 0; }
html[data-skin="pro"] .brand img { position: static; display: block; left: auto; top: auto; width: 176px; max-width: 100%; height: auto; max-height: 108px; object-fit: contain; margin: 0 auto; content: url("../assets/contract-logo-light.png"); }
html[data-skin="pro"] .nav-collapse {
  display: none;
  position: absolute; top: 14px; right: 12px;
  width: 28px; height: 28px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--nav-1); color: var(--nav-text);
  place-items: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 20, 24, .35);
  transition: transform .2s ease, background .15s;
  z-index: 3;
}
html[data-skin="pro"] .nav-collapse:hover { background: var(--red); color: #fff; }
@media (min-width: 1101px) { html[data-skin="pro"] .nav-collapse { display: grid; } }
html[data-skin="pro"] .nav { gap: 3px; padding: 4px 4px 8px 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
html[data-skin="pro"] .nav::-webkit-scrollbar { width: 6px; height: 0; }
html[data-skin="pro"] .nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 6px; }
html[data-skin="pro"] .sidebar { overflow-x: hidden; }
html[data-skin="pro"] .nav-divider { display: none; }
html[data-skin="pro"] .nav-section { display: block; padding: 16px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nav-muted); }
html[data-skin="pro"] .nav-section:first-child { padding-top: 6px; }
html[data-skin="pro"] .nav .nav-item {
  position: relative;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
html[data-skin="pro"] .nav .nav-item .nav-icon { color: var(--nav-muted); opacity: 1; transition: color .18s ease; }
html[data-skin="pro"] .nav .nav-item .nav-icon svg { width: 19px; height: 19px; }
html[data-skin="pro"] .nav .nav-item:hover { background: var(--nav-hover); color: #fff; box-shadow: none; transform: translateX(3px); }
html[data-skin="pro"] .nav .nav-item:hover .nav-icon, html[data-skin="pro"] .nav .nav-item[data-page]:hover .nav-icon { color: #fff; transform: none; }
html[data-skin="pro"] .nav .nav-item.active { background: #ffffff; color: #2d2f34; font-weight: 650; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transform: none; }
html[data-skin="pro"] .nav .nav-item.active::before { display: none; }
html[data-skin="pro"] .nav .nav-item.active .nav-icon, html[data-skin="pro"] .nav .nav-item.active[data-page] .nav-icon { color: var(--red); }
html[data-skin="pro"] .nav-badge { background: var(--red); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font-size: 11px; display: inline-grid; place-items: center; padding: 0 6px; }
html[data-skin="pro"] .nav .nav-item.active .nav-badge { box-shadow: 0 0 0 3px #fff; }
html[data-skin="pro"] .sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; display: grid; gap: 10px; }
html[data-skin="pro"] .side-user {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .06); color: #fff; text-align: left; cursor: pointer;
  transition: background .15s;
}
html[data-skin="pro"] .side-user:hover { background: rgba(255, 255, 255, .11); }
html[data-skin="pro"] .side-user .avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #f43f5e, #b30f2e); }
html[data-skin="pro"] .side-user-text { display: grid; min-width: 0; }
html[data-skin="pro"] .side-user-text b { font-size: 13.5px; font-weight: 650; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-skin="pro"] .side-user-text small { font-size: 11.5px; color: var(--nav-muted); text-transform: capitalize; }
html[data-skin="pro"] .side-user-caret { color: var(--nav-muted); }
html[data-skin="pro"] .sidebar-signature { text-align: center; }
html[data-skin="pro"] .sidebar-signature-label, html[data-skin="pro"] .sidebar-version { color: var(--nav-muted); font-size: 10.5px; }
html[data-skin="pro"] .sidebar-signature-name, html[data-skin="pro"] .sidebar-signature-name.sig-name { color: #ececee; font-size: 17px; }
html[data-skin="pro"] .sidebar-signature-name em { color: #ff8298; }

/* Daraltılmış menü (ikon şeridi) */
@media (min-width: 1101px) {
  html[data-skin="pro"][data-nav="mini"] .app { grid-template-columns: 112px minmax(0, 1fr); }
  html[data-skin="pro"][data-nav="mini"] .sidebar { padding: 14px 10px; }
  html[data-skin="pro"][data-nav="mini"] .brand img { width: 62px; }
  html[data-skin="pro"][data-nav="mini"] .nav-collapse { transform: rotate(180deg); position: static; margin: 0 auto 8px; }
  html[data-skin="pro"][data-nav="mini"] .brand { padding-top: 4px; }
  html[data-skin="pro"][data-nav="mini"] .nav-section, html[data-skin="pro"][data-nav="mini"] .nav-label, html[data-skin="pro"][data-nav="mini"] .side-user-text,
  html[data-skin="pro"][data-nav="mini"] .side-user-caret, html[data-skin="pro"][data-nav="mini"] .sidebar-signature, html[data-skin="pro"][data-nav="mini"] .sidebar-version { display: none; }
  html[data-skin="pro"][data-nav="mini"] .nav { padding-top: 10px; gap: 6px; }
  html[data-skin="pro"][data-nav="mini"] .nav .nav-item { grid-template-columns: 1fr; justify-items: center; padding: 12px 0; }
  html[data-skin="pro"][data-nav="mini"] .nav .nav-item:hover { transform: none; }
  html[data-skin="pro"][data-nav="mini"] .nav-badge { position: absolute; top: 4px; right: 10px; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
  html[data-skin="pro"][data-nav="mini"] .side-user { grid-template-columns: 1fr; justify-items: center; padding: 8px 0; background: transparent; }
}

/* ---------- 3. Üst alan (şeffaf, karşılamalı) ---------- */
html[data-skin="pro"] .topbar {
  min-height: 84px;
  padding: 10px clamp(14px, 2.4vw, 34px) 6px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0;
  box-shadow: none;
}
/* Eşit yan sütunlar: arama kutusu sayfada tam ortada */
@media (min-width: 1101px) { html[data-skin="pro"] .topbar { grid-template-columns: minmax(0, 1fr) minmax(320px, 540px) minmax(0, 1fr); } }
html[data-skin="pro"] .topbar-greeting { display: block; font-size: 21px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
html[data-skin="pro"] .topbar-titles h1 { display: none; }
html[data-skin="pro"] .topbar-titles span#headerPageSub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
html[data-skin="pro"] .topbar-search {
  min-height: 48px; border-radius: 16px; border: 1px solid transparent;
  background: var(--surface); box-shadow: var(--shadow);
  grid-template-columns: 18px 1fr auto auto;
}
html[data-skin="pro"] .topbar-search:focus-within { border-color: color-mix(in srgb, var(--red) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent), var(--shadow); }
html[data-skin="pro"] .kbd-cmd { display: inline-block; padding: 3px 8px; border-radius: 8px; background: var(--fill); color: var(--muted); font: 600 11px var(--font); border: 0; white-space: nowrap; }
@media (max-width: 900px) { html[data-skin="pro"] .kbd-cmd { display: none; } }
html[data-skin="pro"] .search-modes { background: var(--fill); border: 0; border-radius: 10px; }
html[data-skin="pro"] .search-modes button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 24, .12); }
html[data-skin="pro"] .datetime { color: var(--muted); }
html[data-skin="pro"] .profile-trigger { border-radius: 16px; border: 0; background: var(--surface); box-shadow: var(--shadow); padding: 6px 10px 6px 6px; }
html[data-skin="pro"] .profile-trigger .avatar, html[data-skin="pro"] #headerAdminAvatar { border-radius: 12px; background: linear-gradient(135deg, #f43f5e, #b30f2e); }
html[data-skin="pro"] .profile-dropdown { border-radius: 18px; border: 0; box-shadow: var(--shadow-lg); }
html[data-skin="pro"] .search-box { border-radius: 18px; border: 0; box-shadow: var(--shadow-lg); }

/* ---------- 4. Sayfa alanı ---------- */
html[data-skin="pro"] .page { padding: 18px clamp(14px, 2.4vw, 34px) 48px; max-width: 1600px; width: 100%; margin-inline: auto; }
html[data-skin="pro"] .breadcrumb { padding: 6px clamp(14px, 2.4vw, 34px) 0; max-width: 1600px; margin-inline: auto; width: 100%; background: none; border: 0; box-shadow: none; font-size: 12.5px; }
html[data-skin="pro"] .breadcrumb-link, html[data-skin="pro"] .breadcrumb-current { background: none; border: 0; box-shadow: none; padding: 0; }
html[data-skin="pro"] .breadcrumb-current { color: var(--ink); font-weight: 650; }
html[data-skin="pro"] .footer { border: 0; text-align: center; color: var(--muted); }
html[data-skin="pro"] .page-head, html[data-skin="pro"] .dash-intro { margin-bottom: 20px; align-items: flex-end; }
html[data-skin="pro"] .page-head h2, html[data-skin="pro"] .dash-intro h2, html[data-skin="pro"] .dash-toolbar h2 { font-size: 28px; font-weight: 750; letter-spacing: -.025em; line-height: 1.15; color: var(--ink); }
html[data-skin="pro"] .page-head p, html[data-skin="pro"] .dash-intro p { font-size: 14px; color: var(--muted); margin-top: 4px; }
html[data-skin="pro"] .dash-toolbar { margin-bottom: 18px; }
html[data-skin="pro"] .dash-section-title h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- 5. Kartlar (bento) ---------- */
html[data-skin="pro"] .panel, html[data-skin="pro"] .card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 4%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
html[data-skin="pro"] .panel h3, html[data-skin="pro"] .card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
html[data-skin="pro"] .site-card { transition: box-shadow .2s ease, transform .2s ease; overflow: hidden; }
html[data-skin="pro"] .site-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
html[data-skin="pro"] .dash-grid, html[data-skin="pro"] .analytics-grid { gap: 16px; }

/* ---------- 6. KPI karoları ---------- */
html[data-skin="pro"] .kpi { border: 1px solid color-mix(in srgb, var(--ink) 4%, transparent); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
html[data-skin="pro"] .kpi span { font-size: 12.5px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--muted); }
html[data-skin="pro"] .kpi strong { font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 132px !important; padding: 18px 18px 16px !important; overflow: hidden;
  --kpi-accent: var(--chart-accent);
  transition: box-shadow .2s ease, transform .2s ease;
}
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi::before {
  display: block; content: ""; position: absolute; inset: 16px 16px auto auto;
  width: 42px; height: 42px; border-radius: 14px;
  background: color-mix(in srgb, var(--kpi-accent) 13%, var(--surface));
  opacity: 1; box-shadow: none;
}
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi::after {
  display: block; content: ""; position: absolute; top: 27px; right: 27px; left: auto;
  width: 20px; height: 20px; margin: 0; border-radius: 0; box-shadow: none;
  background: var(--kpi-accent);
  -webkit-mask: var(--kpi-icon) center / contain no-repeat;
  mask: var(--kpi-icon) center / contain no-repeat;
}
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi span { font-size: 13px; font-weight: 600; color: var(--muted); padding-right: 52px; text-transform: none; letter-spacing: 0; }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi strong { font-size: 34px !important; margin-top: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(1) { --kpi-accent: var(--chart-accent); --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='1'/%3E%3Cpath d='M9 7h1M9 11h1M9 15h1M14 7h1M14 11h1M14 15h1'/%3E%3C/svg%3E"); }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(2) { --kpi-accent: var(--red); --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M3 15h18M9 3v18M15 3v18'/%3E%3C/svg%3E"); }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(3) { --kpi-accent: #ffffff; --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); border-color: transparent; }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(3) span { color: rgba(255, 255, 255, .78); }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(3) strong { color: #fff; }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(3)::before { background: rgba(255, 255, 255, .14); }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(4) { --kpi-accent: #7d8088; --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4h3a2 2 0 0 1 2 2v14M2 20h3M13 20h9M10 12v.01'/%3E%3Cpath d='M13 4.56v16.16a1 1 0 0 1-1.24.97L5 20V5.56a2 2 0 0 1 1.52-1.94l4-1A2 2 0 0 1 13 4.56Z'/%3E%3C/svg%3E"); }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(5) { --kpi-accent: var(--red-deep); --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M12 12v4M12 18.5v.01'/%3E%3C/svg%3E"); }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(6) { --kpi-accent: var(--chart-accent); --kpi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }
html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(4) strong, html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi:nth-child(5) strong, html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi.kpi-vacate strong { color: var(--ink); }
@media (max-width: 1400px) { html[data-skin="pro"] .dash .kpi-grid.kpi-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  html[data-skin="pro"] .dash .kpi-grid.kpi-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi { min-height: 112px !important; padding: 14px !important; }
  html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi::before { width: 34px; height: 34px; inset: 12px 12px auto auto; border-radius: 11px; }
  html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi::after { top: 21px; right: 21px; width: 16px; height: 16px; }
  html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi span { padding-right: 40px; font-size: 12px; }
  html[data-skin="pro"] .dash .kpi-grid.kpi-compact .kpi strong { font-size: 26px !important; }
}

/* ---------- 7. Butonlar ---------- */
html[data-skin="pro"] .btn { border-radius: 12px; font-weight: 650; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
html[data-skin="pro"] .btn-primary { background: linear-gradient(135deg, #ef3b5a, var(--red) 55%, var(--red-deep)); border: 0; color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--red) 28%, transparent); }
html[data-skin="pro"] .btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px color-mix(in srgb, var(--red) 34%, transparent); background: linear-gradient(135deg, #ef3b5a, var(--red-deep)); }
html[data-skin="pro"] .btn-ghost { background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 24, .05); }
html[data-skin="pro"] .btn-ghost:hover:not(:disabled) { background: var(--surface-soft); transform: translateY(-1px); }
html[data-skin="pro"] .btn-danger { border-radius: 12px; }
html[data-skin="pro"] .link-btn { color: var(--red); font-weight: 650; }

/* ---------- 8. Segment sekmeler ---------- */
html[data-skin="pro"] .site-tabs, html[data-skin="pro"] .dash-tabs, html[data-skin="pro"] .unit-detail-tabs, html[data-skin="pro"] .person-detail-tabs {
  display: inline-flex; width: auto; max-width: 100%;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 0; border-radius: 16px; box-shadow: none; padding: 4px; gap: 2px;
}
html[data-skin="pro"] .dash-tabs { display: flex; }
html[data-skin="pro"] .site-tab, html[data-skin="pro"] .unit-detail-tabs button, html[data-skin="pro"] .person-detail-tabs button, html[data-skin="pro"] .dash-tab {
  border: 0; border-radius: 12px; min-height: 40px; padding: 0 16px;
  background: transparent; color: var(--muted); font-weight: 650; box-shadow: none;
}
html[data-skin="pro"] .site-tab:hover, html[data-skin="pro"] .unit-detail-tabs button:hover, html[data-skin="pro"] .person-detail-tabs button:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 55%, transparent); }
html[data-skin="pro"] .site-tab.active, html[data-skin="pro"] .unit-detail-tabs button.active, html[data-skin="pro"] .person-detail-tabs button.active, html[data-skin="pro"] .dash-tab.active {
  background: var(--surface); color: var(--ink); border-bottom: 0;
  box-shadow: 0 1px 3px rgba(20, 20, 24, .12), 0 4px 10px rgba(20, 20, 24, .06);
}

/* ---------- 9. Tablolar ---------- */
html[data-skin="pro"] th { background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; padding: 14px 18px; border-bottom: 1px solid var(--line); }
html[data-skin="pro"] td { padding: 14px 18px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
html[data-skin="pro"] .units-table thead th { padding: 14px 18px; background: transparent; }
html[data-skin="pro"] .units-table tbody td { padding: 13px 18px; font-size: 14px; }
html[data-skin="pro"] table tbody tr:hover td, html[data-skin="pro"] .unit-row:hover td { background: var(--surface-soft) !important; }

/* ---------- 10. Formlar (dolgulu alanlar) ---------- */
html[data-skin="pro"] .form input, html[data-skin="pro"] .form select, html[data-skin="pro"] .form textarea,
html[data-skin="pro"] .person-form-grid input, html[data-skin="pro"] .person-form-grid textarea, html[data-skin="pro"] .person-form-grid select {
  min-height: 44px; border-radius: 12px; font-size: 14px;
  background: var(--fill); border: 1px solid transparent;
}
html[data-skin="pro"] .form input:focus, html[data-skin="pro"] .form select:focus, html[data-skin="pro"] .form textarea:focus,
html[data-skin="pro"] .person-form-grid input:focus, html[data-skin="pro"] .person-form-grid textarea:focus, html[data-skin="pro"] .person-form-grid select:focus {
  background: var(--surface); border-color: color-mix(in srgb, var(--red) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent);
}
html[data-skin="pro"] .form label, html[data-skin="pro"] .person-form-grid label { font-size: 12.5px; font-weight: 650; color: var(--muted); }

/* ---------- 11. Listeler, görevler ---------- */
html[data-skin="pro"] .dash-list-item, html[data-skin="pro"] .task { background: var(--surface-soft); border: 1px solid transparent; border-radius: 16px; transition: background .15s, box-shadow .15s, transform .15s; }
html[data-skin="pro"] .dash-list-item:hover, html[data-skin="pro"] .task:hover { background: var(--surface); box-shadow: var(--shadow-hover); transform: translateY(-1px); border-color: transparent; }

/* ---------- 12. Kişi / daire başlık kartları ---------- */
html[data-skin="pro"] .person-hero { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
html[data-skin="pro"] .rent-frame-form, html[data-skin="pro"] .unit-overview-grid .rent-frame { border-radius: var(--radius); }

/* ---------- 13. Pencereler, bildirim ---------- */
html[data-skin="pro"] .modal-backdrop, html[data-skin="pro"] .cfm-backdrop { background: rgba(20, 20, 24, .55); }
html[data-skin="pro"] .modal-sheet, html[data-skin="pro"] .cfm-sheet { border-radius: 24px; border: 0; box-shadow: var(--shadow-lg); }
html[data-skin="pro"] .toast { background: #2d2f34; color: #fff; border-radius: 14px; }

/* ---------- 14. Rozetler ---------- */
html[data-skin="pro"] .badge { border-radius: 999px; font-weight: 650; }

/* ---------- 15. Sayfa başlık kartı (sayfa adı burada, üst çubukta değil) ---------- */
html[data-skin="pro"] .page-head, html[data-skin="pro"] .dash-toolbar {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px;
  padding: 22px 26px; margin-bottom: 20px;
  background: linear-gradient(115deg, var(--surface) 0%, var(--surface) 52%, color-mix(in srgb, var(--red) 7%, var(--surface)) 100%);
  border: 1px solid color-mix(in srgb, var(--ink) 4%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
html[data-skin="pro"] .page-head::after, html[data-skin="pro"] .dash-toolbar::after {
  content: ""; position: absolute; z-index: -1; right: -70px; top: -110px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--red) 14%, transparent) 0%, transparent 68%);
  pointer-events: none;
}
html[data-skin="pro"] .page-head h2, html[data-skin="pro"] .dash-toolbar h2 { font-size: 24px; margin: 0; }
html[data-skin="pro"] .page-head p { margin: 4px 0 0; }
html[data-skin="pro"] .page-head > div:first-child { min-width: 0; }
html[data-skin="pro"] .page-head .btn-sm#btnBackSite, html[data-skin="pro"] .page-head #btnBackSites, html[data-skin="pro"] .page-head .btn-ghost.btn-sm:first-child { margin-bottom: 8px; }
html[data-skin="pro"] .head-actions, html[data-skin="pro"] .dash-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { html[data-skin="pro"] .page-head, html[data-skin="pro"] .dash-toolbar { padding: 18px; } html[data-skin="pro"] .page-head h2, html[data-skin="pro"] .dash-toolbar h2 { font-size: 20px; } }

/* ---------- 16. Yol göstergesi (breadcrumb) çubuğu ---------- */
html[data-skin="pro"] .breadcrumb:not(.hidden) {
  display: flex; width: fit-content; max-width: calc(100% - 2 * clamp(14px, 2.4vw, 34px));
  margin: 8px clamp(14px, 2.4vw, 34px) 0; padding: 8px 14px; gap: 6px;
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--ink) 4%, transparent);
}
html[data-skin="pro"] .breadcrumb-link { color: var(--muted); font-weight: 600; }
html[data-skin="pro"] .breadcrumb-link:hover { color: var(--red); text-decoration: none; }
html[data-skin="pro"] .breadcrumb-sep { color: color-mix(in srgb, var(--muted) 60%, transparent); }

/* ---------- 17. Sekmeler: beyaz gölgeli çubuk, seçili = lacivert hap ---------- */
html[data-skin="pro"] .site-tabs, html[data-skin="pro"] .unit-detail-tabs, html[data-skin="pro"] .person-detail-tabs {
  background: var(--surface); padding: 6px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 4%, transparent);
  box-shadow: var(--shadow); margin-bottom: 18px;
}
html[data-skin="pro"] .dash-tabs { background: var(--fill); padding: 5px; border-radius: 14px; box-shadow: none; }
html[data-skin="pro"] .site-tab:hover, html[data-skin="pro"] .unit-detail-tabs button:hover, html[data-skin="pro"] .person-detail-tabs button:hover, html[data-skin="pro"] .dash-tab:hover { background: var(--fill); color: var(--ink); }
html[data-skin="pro"] .site-tab.active, html[data-skin="pro"] .unit-detail-tabs button.active, html[data-skin="pro"] .person-detail-tabs button.active, html[data-skin="pro"] .dash-tab.active {
  background: linear-gradient(135deg, var(--nav-1), var(--nav-2)); color: #fff;
  box-shadow: 0 6px 16px rgba(20, 20, 24, .28);
}
html[data-skin="pro"] .site-tab b, html[data-skin="pro"] .unit-detail-tabs .person-tab-count, html[data-skin="pro"] .person-detail-tabs .person-tab-count, html[data-skin="pro"] .dash-tab b { background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red); border-radius: 8px; font-weight: 700; }
html[data-skin="pro"] .site-tab.active b, html[data-skin="pro"] .unit-detail-tabs button.active .person-tab-count, html[data-skin="pro"] .person-detail-tabs button.active .person-tab-count, html[data-skin="pro"] .dash-tab.active b { background: var(--red); color: #fff; }

/* ---------- 18. Filtre çubukları ---------- */
html[data-skin="pro"] .filter-bar, html[data-skin="pro"] .rent-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 14px 18px; border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--ink) 4%, transparent);
}
html[data-skin="pro"] .filter-bar-label, html[data-skin="pro"] .rent-filter-label { font-size: 12.5px; font-weight: 650; color: var(--muted); }
html[data-skin="pro"] .filter-bar select, html[data-skin="pro"] .filter-bar input, html[data-skin="pro"] .rent-filter select, html[data-skin="pro"] .rent-filter input, html[data-skin="pro"] .rent-filter-row select {
  min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid transparent; background: var(--fill); color: var(--ink); box-shadow: none; font-weight: 600;
}
html[data-skin="pro"] .filter-bar select:focus, html[data-skin="pro"] .rent-filter select:focus { outline: none; border-color: color-mix(in srgb, var(--red) 50%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent); }

/* ---------- 19. Sayfa içi istatistik kutuları (Daireler vb.) ---------- */
html[data-skin="pro"] .page .kpi-grid:not(.kpi-compact) { gap: 14px; }
html[data-skin="pro"] .page .kpi-grid:not(.kpi-compact) .kpi {
  position: relative; overflow: hidden; min-height: 92px; padding: 16px 18px 16px 22px;
  border-radius: 18px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease;
}
html[data-skin="pro"] .page .kpi-grid:not(.kpi-compact) .kpi::before {
  display: block; content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--red), var(--red-deep)); opacity: 1; box-shadow: none; inset: 16px auto 16px 0;
}
html[data-skin="pro"] .page .kpi-grid:not(.kpi-compact) .kpi::after { display: none; }
html[data-skin="pro"] .page .kpi-grid:not(.kpi-compact) .kpi:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
html[data-skin="pro"] .page .kpi-grid:not(.kpi-compact) .kpi span { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
html[data-skin="pro"] .page .kpi-grid:not(.kpi-compact) .kpi strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }

/* ---------- 20. Panel başlıkları ve araç çubukları ---------- */
html[data-skin="pro"] .panel-head { gap: 12px; }
html[data-skin="pro"] .relation-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }

html[data-skin="pro"] .units-summary { gap: 14px; margin-bottom: 18px; }
html[data-skin="pro"] .units-summary article {
  position: relative; overflow: hidden; min-height: 92px; padding: 16px 18px 16px 22px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 4%, transparent);
  border-radius: 18px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
html[data-skin="pro"] .units-summary article::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--red), var(--red-deep)); }
html[data-skin="pro"] .units-summary article:nth-child(2)::before { background: linear-gradient(180deg, var(--chart-accent), color-mix(in srgb, var(--chart-accent) 70%, var(--surface))); }
html[data-skin="pro"] .units-summary article:nth-child(3)::before { background: linear-gradient(180deg, #9a9da4, #6c6f76); }
html[data-skin="pro"] .units-summary article:nth-child(4)::before { background: linear-gradient(180deg, #e04a62, var(--red-deep)); }
html[data-skin="pro"] .units-summary article:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
html[data-skin="pro"] .units-summary span { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
html[data-skin="pro"] .units-summary strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.05; }
@media (max-width: 760px) { html[data-skin="pro"] .units-summary strong { font-size: 24px; } }
html[data-skin="pro"] .relation-toolbar .btn-owner, html[data-skin="pro"] .btn-primary.btn-owner { background: linear-gradient(135deg, var(--nav-1), var(--nav-2)); box-shadow: 0 6px 16px rgba(20, 20, 24, .25); }

/* ---------- 21. Kompakt, düzenli listeler ---------- */
html[data-skin="pro"] th { padding: 10px 14px; font-size: 10.5px; letter-spacing: .07em; }
html[data-skin="pro"] td { padding: 9px 14px; font-size: 13.5px; line-height: 1.35; }
html[data-skin="pro"] .units-table thead th { padding: 10px 14px; }
html[data-skin="pro"] .units-table tbody td { padding: 8px 14px; font-size: 13.5px; }
html[data-skin="pro"] .units-table th:first-child, html[data-skin="pro"] .units-table td:first-child { padding-left: 20px; }
html[data-skin="pro"] .units-table th:last-child, html[data-skin="pro"] .units-table td:last-child { padding-right: 16px; }
html[data-skin="pro"] .unit-relations-table th, html[data-skin="pro"] .unit-relations-table td { padding: 9px 14px; }
html[data-skin="pro"] .relation-past-table tbody td { padding: 7px 14px; }
html[data-skin="pro"] .badge { padding: 2px 9px; font-size: 11.5px; }
html[data-skin="pro"] .unit-row-go { width: 26px; height: 26px; border-radius: 9px; }
html[data-skin="pro"] .btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
html[data-skin="pro"] td .btn-sm { padding: 5px 10px; }
html[data-skin="pro"] .rent-edit-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
html[data-skin="pro"] .rent-new-input { width: 104px; min-height: 34px; padding: 4px 10px; border-radius: 10px; background: var(--fill); border: 1px solid transparent; font-size: 13.5px; }
html[data-skin="pro"] .rent-new-input:focus { outline: none; background: var(--surface); border-color: color-mix(in srgb, var(--red) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent); }
html[data-skin="pro"] .rent-suggest { white-space: nowrap; }
html[data-skin="pro"] .dash-list { gap: 8px; }
html[data-skin="pro"] .dash-list-item { padding: 10px 14px; border-radius: 14px; }
html[data-skin="pro"] .dash-list-item b { font-size: 13.5px; }
html[data-skin="pro"] .dash-list-item span { font-size: 12px; }
html[data-skin="pro"] .task { padding: 9px 12px; border-radius: 12px; }
html[data-skin="pro"] .contact-actions .btn-call, html[data-skin="pro"] .contact-actions .btn-wa, html[data-skin="pro"] .contact-actions .btn-mail { padding: 4px 10px; font-size: 12px; }
html[data-skin="pro"] .badge { white-space: nowrap; }
html[data-skin="pro"] tr:has([data-save-rent]) td:nth-last-child(2), html[data-skin="pro"] tr:has([data-save-rent]) td:nth-last-child(3) { white-space: nowrap; }

/* Giriş ekranı: antrasit marka paneli */
html[data-skin="pro"] .admin-card::before {
  background:
    radial-gradient(ellipse at 8% 8%, rgba(200, 16, 46, .30), transparent 48%),
    linear-gradient(150deg, #3a3d43 0%, #2b2d32 70%, #1f2023 100%);
}

/* Malik (kat maliki) vurgusu: mavi yerine antrasit; kiracı kırmızı */
html[data-skin="pro"] .person-avatar-owner,
html[data-skin="pro"] .rp-owner { background: linear-gradient(135deg, #4a4d54, #2d2f34) !important; }
html[data-skin="pro"] .rel-section-owner,
html[data-skin="pro"] .rel-type-owner { --rel-accent: var(--chart-accent); }
html[data-skin="pro"] .unit-relations-table tbody tr[data-open-owner] td,
html[data-skin="pro"] .unit-relations-table tbody tr[data-open-owner] td.rel-type-cell,
html[data-skin="pro"] .unit-relations-table tbody tr.rel-owner-empty td,
html[data-skin="pro"] .unit-relations-table tbody tr.rel-owner-empty td.rel-type-cell { border-top-color: var(--chart-accent); }
html[data-skin="pro"] .person-hero-owner { --hero-accent: var(--chart-accent); }
html[data-skin="pro"] .person-hero-owner ~ .person-detail-tabs button.active {
  background: color-mix(in srgb, var(--chart-accent) 11%, var(--surface)); color: var(--ink);
}
@media (max-width: 760px) {
  html[data-skin="pro"] .unit-relations-table tbody tr[data-open-owner] { border-top-color: var(--chart-accent); }
}
