/**
 * Neler Oluyor — designs/design4.html ile birebir hizalı (portal gömülü mod).
 * Sarmalayıcı: .nf-d4-wrap
 */
.page-neler-d4 #main-content {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.nf-d4-wrap {
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 16px 88px;
  font-family: var(--font);
}

.nf-d4-wrap * {
  box-sizing: border-box;
}

/* ── Dashboard layout (sidebar gömülü — fixed değil) ── */
.nf-d4-wrap .layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: auto;
}

.nf-d4-wrap .sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

.nf-d4-wrap .sb-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nf-d4-wrap .sb-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.nf-d4-wrap .sb-logo-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
}
.nf-d4-wrap .sb-logo-text small {
  font-size: 0.58rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nf-d4-wrap .sb-user {
  margin: 14px 14px 10px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nf-d4-wrap .sb-user--guest {
  align-items: flex-start;
}
.nf-d4-wrap .sb-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.nf-d4-wrap .sb-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nf-d4-wrap .sb-user-info strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dark);
}
.nf-d4-wrap .sb-user-info span {
  font-size: 0.62rem;
  color: var(--text-soft);
}
.nf-d4-wrap .sb-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
  border: 2px solid var(--card-bg);
  flex-shrink: 0;
}
.nf-d4-wrap .sb-guest-in {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.nf-d4-wrap .sb-guest-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nf-d4-wrap .sb-guest-btn:hover {
  background: var(--primary-dark);
}

.nf-d4-wrap .sb-nav {
  flex: 1;
  padding: 8px 12px;
  overflow: visible;
}
.nf-d4-wrap .sb-section {
  margin-bottom: 18px;
}
.nf-d4-wrap .sb-section-lbl {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 8px;
  margin-bottom: 6px;
}
.nf-d4-wrap .sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1px;
  position: relative;
  text-decoration: none;
}
.nf-d4-wrap .sb-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nf-d4-wrap .sb-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.nf-d4-wrap .sb-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.nf-d4-wrap .sb-item i {
  width: 16px;
  text-align: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.nf-d4-wrap .sb-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.nf-d4-wrap .sb-dot {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.nf-d4-wrap .sb-bottom {
  padding: 14px;
}
.nf-d4-wrap .sb-premium {
  background: linear-gradient(135deg, var(--primary-light), #fff3e0);
  border: 1px solid #ffcdd2;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}
.nf-d4-wrap .sb-premium p {
  font-size: 0.7rem;
  color: var(--text-mid);
  margin-bottom: 10px;
  line-height: 1.5;
}
.nf-d4-wrap .sb-premium-btn,
.nf-d4-wrap .sb-premium a.sb-premium-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff !important;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.nf-d4-wrap .sb-premium-btn:hover {
  background: var(--primary-dark);
}

.nf-d4-wrap .main {
  margin-left: 0;
  flex: 1;
  min-width: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.nf-d4-wrap .d4-topbar {
  height: 56px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky;
  top: var(--header-h, 68px);
  z-index: 4;
  box-shadow: var(--shadow-sm);
}
.nf-d4-wrap .tb-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}
.nf-d4-wrap .tb-loc {
  font-size: 0.72rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nf-d4-wrap .tb-loc i {
  color: var(--primary);
  font-size: 0.7rem;
}

.nf-d4-wrap .tb-head {
  flex-shrink: 0;
  min-width: 0;
}
.nf-d4-wrap .topbar-search {
  flex: 1;
  max-width: 420px;
  position: relative;
  margin-left: 4px;
}
.nf-d4-wrap .topbar-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.8rem;
  pointer-events: none;
}
.nf-d4-wrap .topbar-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text-dark);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.nf-d4-wrap .topbar-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.08);
}
.nf-d4-wrap .tb-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nf-d4-wrap .tb-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
}
.nf-d4-wrap .tb-icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #ffcdd2;
}
.nf-d4-wrap .tb-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  border: 1.5px solid var(--card-bg);
}
.nf-d4-wrap .tb-add {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff !important;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
  text-decoration: none;
  white-space: nowrap;
}
.nf-d4-wrap .tb-add:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

@media (max-width: 900px) {
  .nf-d4-wrap .d4-topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nf-d4-wrap .topbar-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
    margin-top: 4px;
  }
  .nf-d4-wrap .tb-actions {
    margin-left: 0;
  }
}

.nf-d4-wrap .content {
  padding: 24px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}
.nf-d4-wrap .mc {
  min-width: 0;
}
.nf-d4-wrap .rc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  min-width: 0;
}

/* HERO STRIP */
.nf-d4-wrap .hero-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #e53935 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.25);
}
.nf-d4-wrap .hero-strip::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.nf-d4-wrap .hero-strip::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 160px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.nf-d4-wrap .hs-left {
  z-index: 1;
  flex: 1;
  min-width: 220px;
}
.nf-d4-wrap .hs-left h1 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.nf-d4-wrap .hs-left p {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  line-height: 1.45;
}
.nf-d4-wrap .hs-lead {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
  line-height: 1.55;
  max-width: 36rem;
}
.nf-d4-wrap .hs-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.nf-d4-wrap .hs-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font);
}
.nf-d4-wrap .hs-pill:hover,
.nf-d4-wrap .hs-pill:focus,
.nf-d4-wrap .hs-pill.active {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  outline: none;
}
.nf-d4-wrap .hs-stats {
  display: flex;
  gap: 20px;
  z-index: 1;
  flex-wrap: wrap;
}
.nf-d4-wrap .hs-stat {
  text-align: center;
  min-width: 4rem;
}
.nf-d4-wrap .hs-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.nf-d4-wrap .hs-stat span {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nf-d4-wrap .kvkk-note {
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: -8px 0 18px;
  max-width: 52rem;
}
.nf-d4-wrap .kvkk-note strong {
  color: var(--text-mid);
  font-weight: 600;
}

/* Kompakt hero + hub (admin qi_img ile ikonlar) */
.nf-d4-wrap .nf-hero-compact {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px 12px;
  margin-bottom: 12px;
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.nf-d4-wrap .nf-hero-compact__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 12px;
}
.nf-d4-wrap .nf-hero-compact__lead {
  flex: 1;
  min-width: 200px;
}
.nf-d4-wrap .nf-hero-h1 {
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.nf-d4-wrap .nf-hero-meta-inline {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.nf-d4-wrap .nf-hero-meta-inline__sep {
  opacity: 0.45;
}
.nf-d4-wrap .nf-hero-meta-inline__hi {
  color: var(--text-mid);
  font-weight: 600;
}
.nf-d4-wrap .nf-pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nf-d4-wrap .nf-pill-tabs--compact {
  gap: 6px;
}
.nf-d4-wrap .nf-pill-tab {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-mid);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.nf-d4-wrap .nf-pill-tab:hover {
  border-color: rgba(211, 47, 47, 0.35);
  color: var(--primary);
}
.nf-d4-wrap .nf-pill-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.nf-d4-wrap .nf-hero-metrics {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
.nf-d4-wrap .nf-hero-metrics--compact {
  gap: 12px;
  padding: 6px 10px;
}
.nf-d4-wrap .nf-metric {
  text-align: center;
  min-width: 3.2rem;
}
.nf-d4-wrap .nf-metric strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.nf-d4-wrap .nf-metric span {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nf-d4-wrap .nf-kvkk-details {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0 0 14px;
  max-width: 52rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: var(--card-bg);
}
.nf-d4-wrap .nf-kvkk-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-mid);
  padding: 12px 0;
  list-style: none;
}
.nf-d4-wrap .nf-kvkk-details.nf-kvkk-details--compact summary {
  padding: 8px 0;
  font-size: 0.7rem;
}
.nf-d4-wrap .nf-kvkk-details summary::-webkit-details-marker {
  display: none;
}
.nf-d4-wrap .nf-kvkk-details summary::after {
  content: "";
  float: right;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg);
  margin-top: 0.3em;
  opacity: 0.55;
}
.nf-d4-wrap .nf-kvkk-details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.45em;
}
.nf-d4-wrap .nf-kvkk-details p {
  margin: 0 0 10px;
  padding-top: 2px;
}

.nf-d4-wrap .sc-icon--qi {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.nf-d4-wrap .nf-stat-qi {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nf-d4-wrap .sc-icon--qi .nf-stat-qi {
  border-radius: var(--radius-sm);
}
.nf-d4-wrap .qa-img--qi {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nf-d4-wrap .nf-qa-qi {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nf-d4-wrap .qa-img--qi i {
  font-size: 1.45rem;
}

.nf-d4-wrap button.stat-card {
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card-bg);
  appearance: none;
  -webkit-appearance: none;
}
.nf-d4-wrap button.qa-card {
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card-bg);
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.nf-d4-wrap .qa-card .qa-body {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.nf-d4-wrap .nf-inline-hub {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  overflow: hidden;
}
.nf-d4-wrap .nf-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--card-bg) 100%);
}
.nf-d4-wrap .nf-hub-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}
.nf-d4-wrap .nf-hub-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nf-d4-wrap .nf-hub-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-mid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.nf-d4-wrap .nf-hub-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nf-d4-wrap .nf-hub-body {
  padding: 16px 18px 20px;
}
.nf-d4-wrap .nf-hub-empty {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}
.nf-d4-wrap .nf-hub-empty a {
  color: var(--primary);
  font-weight: 600;
}
.nf-d4-wrap .nf-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.nf-d4-wrap .nf-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card-bg);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.nf-d4-wrap .nf-tile:hover {
  border-color: rgba(211, 47, 47, 0.35);
  box-shadow: var(--shadow-sm);
}
.nf-d4-wrap .nf-tile-img {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nf-d4-wrap .nf-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nf-d4-wrap .nf-tile-ph {
  color: var(--text-soft);
  font-size: 1.5rem;
  opacity: 0.35;
}
.nf-d4-wrap .nf-tile-body {
  padding: 10px 12px;
}
.nf-d4-wrap .nf-tile-body strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
}
.nf-d4-wrap .nf-tile-body span {
  font-size: 0.65rem;
  color: var(--text-soft);
}
.nf-d4-wrap .nf-tile--row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}
.nf-d4-wrap .nf-tile--row .nf-tile-body {
  padding: 0;
  flex: 1;
  min-width: 0;
}
.nf-d4-wrap .nf-tile-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.nf-d4-wrap .nf-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nf-d4-wrap .nf-hub-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.nf-d4-wrap .nf-hub-list li:last-child {
  border-bottom: none;
}
.nf-d4-wrap .nf-muted {
  color: var(--text-soft);
  font-weight: 500;
  margin-left: 6px;
}
.nf-d4-wrap .nf-hub-evlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nf-d4-wrap .nf-hub-ev {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), background 0.15s;
}
.nf-d4-wrap .nf-hub-ev:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.nf-d4-wrap .nf-hub-ev__date {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nf-d4-wrap .nf-hub-ev__date strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.nf-d4-wrap .nf-hub-ev__date small {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}
.nf-d4-wrap .nf-hub-ev__body {
  flex: 1;
  min-width: 0;
}
.nf-d4-wrap .nf-hub-ev__body strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
}
.nf-d4-wrap .nf-hub-ev__body small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-soft);
  margin-top: 2px;
}
.nf-d4-wrap .nf-hub-ev__pill {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .nf-d4-wrap .nf-hero-compact {
    padding: 12px 14px 10px;
  }
  .nf-d4-wrap .nf-hero-metrics--compact {
    width: 100%;
    justify-content: space-around;
  }
}

/* STAT CARDS */
.nf-d4-wrap .stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.nf-d4-wrap .stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.nf-d4-wrap .stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.nf-d4-wrap .sc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.nf-d4-wrap .sc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.nf-d4-wrap .sc-trend {
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 7px;
  border-radius: var(--radius-full);
}
.nf-d4-wrap .trend-up {
  color: var(--green);
  background: var(--green-light);
}
.nf-d4-wrap .trend-dn {
  color: var(--primary);
  background: var(--primary-light);
}
.nf-d4-wrap .stat-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 3px;
  line-height: 1;
}
.nf-d4-wrap .stat-card p {
  font-size: 0.68rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* SECTION + QA */
.nf-d4-wrap .sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.nf-d4-wrap .sh-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.nf-d4-wrap .sh-title .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.nf-d4-wrap .sh-link {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}
.nf-d4-wrap .sh-link:hover {
  text-decoration: underline;
}

.nf-d4-wrap .qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.nf-d4-wrap .qa-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: block;
}
.nf-d4-wrap .qa-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary);
}
.nf-d4-wrap .qa-img {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
}
.nf-d4-wrap .qa-body {
  padding: 9px 10px;
}
.nf-d4-wrap .qa-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dark);
}
.nf-d4-wrap .qa-sub {
  font-size: 0.6rem;
  color: var(--text-soft);
  margin-top: 1px;
}
.nf-d4-wrap .qa-live {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--card-bg);
}

/* Instagram tarzı paylaşım şeridi */
.nf-d4-wrap .nf-stories-wrap {
  background: #0c0c0c;
  border: 1px solid #1f1f1f;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.nf-d4-wrap .nf-stories-tabs {
  display: flex;
  border-bottom: 1px solid #222;
}
.nf-d4-wrap .nf-stories-tab {
  flex: 1;
  padding: 11px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font);
  color: #8a8a8a;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.nf-d4-wrap .nf-stories-tab:hover {
  color: #ccc;
}
.nf-d4-wrap .nf-stories-tab.active {
  color: #fafafa;
  box-shadow: inset 0 -2px 0 #fafafa;
}
.nf-d4-wrap .nf-stories-panel[hidden] {
  display: none !important;
}
.nf-d4-wrap .nf-stories-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.nf-d4-wrap .nf-stories-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 44px 16px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.nf-d4-wrap .nf-stories-scroller::-webkit-scrollbar {
  display: none;
}
.nf-d4-wrap .nf-stories-chev {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #333;
  background: rgba(30, 30, 30, 0.92);
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 0.72rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nf-d4-wrap .nf-stories-chev:hover {
  background: #2a2a2a;
}
.nf-d4-wrap .nf-story {
  flex: 0 0 auto;
  width: 72px;
  text-decoration: none;
  color: #fafafa;
  text-align: center;
  scroll-snap-align: start;
  position: relative;
  padding: 0 2px;
}
.nf-d4-wrap button.nf-story {
  display: block;
  font: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  width: 72px;
  margin: 0;
  padding: 0 2px;
}
.nf-d4-wrap .nf-story:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}
.nf-d4-wrap .nf-story-ring {
  width: 66px;
  height: 66px;
  margin: 0 auto 8px;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(
    from 200deg,
    #f09433 0deg,
    #e6683c 55deg,
    #dc2743 120deg,
    #cc2366 200deg,
    #bc1888 280deg,
    #f09433 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.nf-d4-wrap .nf-story-ring--self {
  background: #2a2a2a;
  border: 1px solid #444;
  padding: 2px;
}
.nf-d4-wrap .nf-story-av {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a1a;
  border: 2px solid #0c0c0c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  box-sizing: border-box;
}
.nf-d4-wrap .nf-story-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nf-d4-wrap .nf-story-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.25;
  color: #e0e0e0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nf-d4-wrap .nf-story--self .nf-story-add {
  position: absolute;
  right: 4px;
  bottom: 26px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0095f6;
  border: 2px solid #0c0c0c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  color: #fff;
  pointer-events: none;
}
.nf-d4-wrap .nf-stories-empty {
  margin: 0;
  padding: 20px 16px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #9e9e9e;
  text-align: center;
  flex: 1 1 100%;
  min-width: 0;
}

/* Feed posts */
.nf-d4-wrap .d4-feed-block {
  margin-bottom: 20px;
}
.nf-d4-wrap .nf-post {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  scroll-margin-top: calc(var(--header-h, 68px) + 72px);
}
.nf-d4-wrap .nf-post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(211, 47, 47, 0.25);
}
.nf-d4-wrap .nf-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.nf-d4-wrap a.nf-av {
  text-decoration: none;
  color: #fff;
}
.nf-d4-wrap .nf-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.nf-d4-wrap .nf-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nf-d4-wrap .nf-head-text {
  flex: 1;
  min-width: 0;
}
.nf-d4-wrap .nf-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
}
.nf-d4-wrap .nf-name:hover {
  color: var(--primary);
}
.nf-d4-wrap .nf-meta {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 2px;
}
.nf-d4-wrap .nf-media-wrap {
  background: #0a0a0a;
}
.nf-d4-wrap .nf-media-wrap img,
.nf-d4-wrap .nf-media-wrap video {
  width: 100%;
  display: block;
  max-height: 70vh;
  object-fit: contain;
}
.nf-d4-wrap .nf-metin {
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-dark);
  white-space: pre-wrap;
  word-break: break-word;
}
.nf-d4-wrap .nf-caption {
  padding: 10px 16px 4px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-mid);
}
.nf-d4-wrap .nf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
}
.nf-d4-wrap .nf-like,
.nf-d4-wrap .nf-comment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  background: var(--card-bg);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.nf-d4-wrap .nf-like:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.nf-d4-wrap .nf-like.liked {
  border-color: #e57373;
  color: #e53935;
}
.nf-d4-wrap .nf-comment:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.nf-d4-wrap .nf-badge-firma {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.58rem;
  font-weight: 800;
  background: var(--blue-light);
  color: var(--blue);
}
.nf-d4-wrap .nf-badge-adm {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.58rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  color: #fff;
}

.nf-d4-wrap .d4-empty {
  text-align: center;
  padding: 40px 22px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px dashed var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.nf-d4-wrap .d4-empty i {
  font-size: 2.4rem;
  opacity: 0.22;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}
.nf-d4-wrap .d4-empty p {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
  max-width: 24rem;
  margin-inline: auto;
}

.nf-d4-wrap .pagination,
.nf-d4-wrap .nf-pagination-wrap {
  margin-top: 12px;
}

/* RIGHT: widgets */
.nf-d4-wrap .weather-w {
  background: linear-gradient(135deg, var(--blue) 0%, #1976d2 100%);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.3);
}
.nf-d4-wrap .weather-w::before {
  content: "⛅";
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 5rem;
  opacity: 0.12;
  line-height: 1;
}
.nf-d4-wrap .ww-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.nf-d4-wrap .ww-temp {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.nf-d4-wrap .ww-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 3px;
}
.nf-d4-wrap .ww-loc {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2px;
}
.nf-d4-wrap .ww-icon {
  font-size: 2.6rem;
}
.nf-d4-wrap .ww-row {
  display: flex;
  gap: 10px;
}
.nf-d4-wrap .ww-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 7px 6px;
  text-align: center;
}
.nf-d4-wrap .ww-stat i {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 3px;
}
.nf-d4-wrap .ww-stat strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.nf-d4-wrap .ww-stat span {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.65);
}
.nf-d4-wrap .weather-more {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: none;
}
.nf-d4-wrap .weather-more:hover {
  text-decoration: underline;
}

.nf-d4-wrap .widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.nf-d4-wrap .wh {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nf-d4-wrap .wh strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}
.nf-d4-wrap .wh span,
.nf-d4-wrap .wh a {
  font-size: 0.68rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.nf-d4-wrap .wh a:hover {
  text-decoration: underline;
}
.nf-d4-wrap .wb {
  padding: 12px 16px;
}

.nf-d4-wrap a.notif-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background 0.12s;
  border-radius: var(--radius-sm);
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}
.nf-d4-wrap a.notif-item:hover {
  background: var(--bg);
}
.nf-d4-wrap .notif-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.nf-d4-wrap .ni-ic {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.nf-d4-wrap .ni-ic.ni-blue {
  background: var(--blue-light);
  color: var(--blue);
}
.nf-d4-wrap .ni-ic.ni-red {
  background: var(--primary-light);
  color: var(--primary);
}
.nf-d4-wrap .ni-ic.ni-grn {
  background: var(--green-light);
  color: var(--green);
}
.nf-d4-wrap .ni-ic.ni-amb {
  background: var(--yellow-light);
  color: var(--yellow);
}
.nf-d4-wrap .ni-b p {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1px;
  line-height: 1.4;
}
.nf-d4-wrap .ni-b span {
  font-size: 0.6rem;
  color: var(--text-soft);
}

.nf-d4-wrap a.ev-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background var(--transition);
}
.nf-d4-wrap a.ev-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.nf-d4-wrap a.ev-item:hover .ev-body strong {
  color: var(--primary);
}
.nf-d4-wrap .ev-date {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #ffcdd2;
}
.nf-d4-wrap .ev-date strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.nf-d4-wrap .ev-date span {
  font-size: 0.52rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
}
.nf-d4-wrap .ev-body {
  flex: 1;
  min-width: 0;
}
.nf-d4-wrap .ev-body strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--transition);
}
.nf-d4-wrap .ev-body span {
  font-size: 0.62rem;
  color: var(--text-soft);
}
.nf-d4-wrap .ev-pill {
  font-size: 0.57rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.nf-d4-wrap .mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}
.nf-d4-wrap .bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--border);
  transition: background var(--transition);
}
.nf-d4-wrap .bar:hover,
.nf-d4-wrap .bar.a {
  background: var(--primary);
}
.nf-d4-wrap .chart-lbl {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}
.nf-d4-wrap .chart-lbl span {
  flex: 1;
  text-align: center;
  font-size: 0.52rem;
  color: var(--text-soft);
}
.nf-d4-wrap .chart-lbl span.a {
  color: var(--primary);
  font-weight: 600;
}

.nf-d4-wrap a.trend-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.nf-d4-wrap a.trend-item:last-child {
  border-bottom: none;
}
.nf-d4-wrap a.trend-item:hover .trend-b strong {
  color: var(--primary);
}
.nf-d4-wrap .trend-n {
  width: 18px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-soft);
  flex-shrink: 0;
  text-align: center;
}
.nf-d4-wrap .trend-n.top {
  color: var(--primary);
}
.nf-d4-wrap .trend-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}
.nf-d4-wrap .trend-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nf-d4-wrap .trend-b {
  flex: 1;
  min-width: 0;
}
.nf-d4-wrap .trend-b strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nf-d4-wrap .trend-b span {
  font-size: 0.6rem;
  color: var(--text-soft);
}
.nf-d4-wrap .trend-p {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nf-d4-wrap .rc-sub {
  font-size: 0.65rem;
  color: var(--text-soft);
  padding: 0 16px 10px;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .nf-d4-wrap .content {
    grid-template-columns: 1fr;
  }
  .nf-d4-wrap .rc {
    position: relative;
    top: auto;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .nf-d4-wrap .layout {
    flex-direction: column;
  }
  .nf-d4-wrap .sidebar {
    position: relative;
    top: auto;
    max-height: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .nf-d4-wrap .sb-logo {
    flex: 1 1 100%;
  }
  .nf-d4-wrap .sb-user {
    flex: 1 1 200px;
  }
  .nf-d4-wrap .sb-nav {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nf-d4-wrap .sb-section {
    flex: 1 1 auto;
    min-width: 140px;
    margin-bottom: 8px;
  }
  .nf-d4-wrap .sb-item.active::before {
    display: none;
  }
  .nf-d4-wrap .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .nf-d4-wrap .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nf-d4-wrap .content {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .nf-d4-wrap .hs-stats {
    width: 100%;
    justify-content: space-between;
  }
  .nf-d4-wrap .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .nf-d4-wrap .stat-card {
    padding: 12px 10px;
  }
  .nf-d4-wrap .stat-card h3 {
    font-size: 1.35rem;
  }
  .nf-d4-wrap .stat-card p {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }
  .nf-d4-wrap .stat-card .sc-top {
    margin-bottom: 8px;
  }
  .nf-d4-wrap .stat-card .sc-icon {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .nf-d4-wrap .stat-card .sc-icon--qi .nf-stat-qi {
    width: 34px;
    height: 34px;
  }
  .nf-d4-wrap .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Sosyal akış (FB/IG tarzı) ───────────────────────────── */
.nf-d4-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1rem;
}
.nf-d4-menu-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.sb-drawer-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text-mid);
  cursor: pointer;
  font-size: 1rem;
}
.nf-sidebar-backdrop {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
}
.nf-sidebar-backdrop[hidden] {
  display: none !important;
}

@media (min-width: 1101px) {
  .nf-d4-wrap .content {
    grid-template-columns: 1fr 300px;
    max-width: 1180px;
    margin-inline: auto;
  }
  .nf-d4-wrap .mc {
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .nf-d4-wrap .mc {
    display: flex;
    flex-direction: column;
  }
  .nf-d4-wrap .d4-feed-block,
  .nf-d4-wrap .d4-empty {
    order: -1;
  }
  .nf-d4-wrap .nf-feed-hero {
    order: 1;
  }
}

@media (max-width: 900px) {
  .nf-d4-menu-btn {
    display: inline-flex;
  }
  .sb-drawer-close {
    display: inline-flex;
  }
  .nf-d4-wrap .layout {
    flex-direction: column;
  }
  .nf-d4-wrap .sidebar {
    position: fixed;
    left: 0;
    top: calc(var(--header-h, 68px));
    bottom: 0;
    width: min(292px, 88vw);
    max-height: none;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    border-right: 1px solid var(--border);
    border-bottom: none;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.14);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .nf-d4-wrap .sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .nf-d4-wrap .sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
  }
  .nf-d4-wrap .sidebar::-webkit-scrollbar-track {
    background: transparent;
  }
  .nf-d4-wrap .layout.nf-drawer-open .sidebar {
    transform: translateX(0);
  }
  .nf-sidebar-backdrop:not([hidden]) {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
  }
  .nf-d4-wrap .sb-logo {
    padding-right: 48px;
  }
  .nf-d4-wrap .sb-nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .nf-d4-wrap .sb-section {
    min-width: 0;
  }
  .nf-d4-wrap .sb-item.active::before {
    display: none;
  }
}

/* Gönderi kartı — Instagram benzeri */
.nf-d4-wrap .nf-post--social {
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nf-d4-wrap .nf-post--social:hover {
  transform: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.nf-d4-wrap .nf-post--social .nf-head {
  border-bottom: none;
  padding: 12px 14px 10px;
  align-items: center;
}
.nf-d4-wrap .nf-post--social .nf-av {
  width: 40px;
  height: 40px;
  font-size: 0.74rem;
}
.nf-d4-wrap .nf-head-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}
.nf-d4-wrap .nf-post--social .nf-name {
  font-size: 0.86rem;
  font-weight: 700;
}
.nf-d4-wrap .nf-post-more {
  margin-left: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.nf-d4-wrap .nf-post-more:hover {
  background: var(--bg);
  color: var(--text-dark);
}
.nf-d4-wrap .nf-post--social .nf-media-wrap {
  background: #000;
  aspect-ratio: 4 / 5;
  max-height: min(85vh, 680px);
}
.nf-d4-wrap .nf-post--social .nf-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video {
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 520px);
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .nf-media-hit--video {
  cursor: pointer;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-src,
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  max-height: none;
  background: #000;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-src {
  opacity: 0;
  z-index: 0;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb.is-poster-ready .kp-video-src,
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb.is-poster-fail .kp-video-src {
  display: none;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-poster {
  z-index: 1;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-poster[hidden] {
  display: none;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-play {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  pointer-events: none;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-src::-webkit-media-controls,
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-src::-webkit-media-controls-enclosure,
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-src::-webkit-media-controls-panel,
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-src::-webkit-media-controls-play-button,
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-src::-webkit-media-controls-start-playback-button,
.nf-d4-wrap .nf-post--social .nf-media-wrap--video.kp-video-thumb .kp-video-src::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  -webkit-appearance: none;
}
.nf-d4-wrap .nf-post--social .nf-metin {
  padding: 16px;
  font-size: 0.9rem;
}
.nf-d4-wrap .nf-post--social .nf-caption {
  padding: 0 16px 12px;
  font-size: 0.86rem;
}
.nf-d4-wrap .nf-actions--social {
  border-top: none;
  padding: 6px 12px 14px;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}
.nf-d4-wrap .nf-actions--social .nf-act {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 1.25rem;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.nf-d4-wrap .nf-actions--social .nf-act:hover {
  background: var(--bg);
  color: var(--primary);
}
.nf-d4-wrap .nf-actions--social .nf-like.liked {
  color: #e53935;
 background: rgba(229, 57, 53, 0.08);
}
.nf-d4-wrap .nf-actions--social .nf-act-spacer {
  flex: 1;
  min-width: 8px;
}
.nf-d4-wrap .nf-counts {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42%;
}
@media (max-width: 480px) {
  .nf-d4-wrap .nf-counts {
    max-width: 36%;
    font-size: 0.65rem;
  }
}
.nf-d4-wrap .nf-feed-loading,
.nf-d4-wrap .nf-feed-end {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
  padding: 16px 12px;
  margin: 0;
}
.nf-d4-wrap .nf-feed-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

.nf-d4-wrap .mc {
  overflow-x: clip;
}
.nf-d4-wrap .sh--feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}
.nf-d4-wrap .sh-feed-head__txt {
  flex: 1;
  min-width: 200px;
}
.nf-d4-wrap .nf-feed-hint {
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.45;
  margin: 6px 0 0;
 max-width: 36rem;
}
.nf-d4-wrap .sh-link--cta {
  flex-shrink: 0;
  align-self: center;
}

.nf-d4-wrap .nf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nf-d4-wrap button.nf-post-more {
  margin-left: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-soft);
  font-size: 0.95rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.nf-d4-wrap button.nf-post-more:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.nf-d4-wrap .nf-post--social .nf-media-wrap {
  position: relative;
}
.nf-d4-wrap .nf-post--social .nf-media-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  display: block;
  line-height: 0;
}
.nf-d4-wrap .nf-post--social .nf-media-hit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video .nf-video-modal-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.nf-d4-wrap .nf-post--social .nf-media-wrap--video .nf-video-modal-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}
.nf-d4-wrap .nf-metin-hit {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  border: none;
  background: transparent;
  padding: 16px;
  cursor: pointer;
  color: inherit;
  border-radius: 0;
}
.nf-d4-wrap .nf-metin-hit:hover {
  background: var(--bg);
}
.nf-d4-wrap .nf-metin-hit__inner {
  display: block;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.nf-d4-wrap .nf-post-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.nf-d4-wrap .nf-post-modal[hidden] {
  display: none !important;
}
.nf-d4-wrap .nf-post-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.nf-d4-wrap .nf-post-modal__panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(92vh, 880px);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nf-d4-wrap .nf-post-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nf-d4-wrap .nf-post-modal__close:hover {
  background: rgba(0, 0, 0, 0.65);
}
.nf-d4-wrap .nf-post-modal__grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  flex: 1;
  min-height: 0;
}
.nf-d4-wrap .nf-post-modal__grid--text {
  grid-template-columns: 1fr;
}
.nf-d4-wrap .nf-post-modal__grid--text .nf-post-modal__media {
  max-height: 40vh;
}
.nf-d4-wrap .nf-post-modal__media {
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
}
.nf-d4-wrap .nf-post-modal__media img {
  max-width: 100%;
  max-height: min(85vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.nf-d4-wrap .nf-post-modal__media video {
  max-width: 100%;
  max-height: min(78vh, 640px);
  width: 100%;
}
.nf-d4-wrap .nf-post-modal__textonly {
  padding: 24px;
  color: var(--text-dark);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-y: auto;
  max-height: 50vh;
}
.nf-d4-wrap .nf-post-modal__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--border);
}
.nf-d4-wrap .nf-post-modal__grid--text .nf-post-modal__side {
  border-left: none;
  border-top: 1px solid var(--border);
}
.nf-d4-wrap .nf-post-modal__head {
  padding: 16px 16px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.nf-d4-wrap .nf-pm-author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.nf-d4-wrap .nf-pm-author img,
.nf-d4-wrap .nf-pm-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nf-d4-wrap .nf-pm-ava {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}
.nf-d4-wrap .nf-pm-authortxt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nf-d4-wrap .nf-pm-authortxt strong {
  font-size: 0.88rem;
}
.nf-d4-wrap .nf-pm-time {
  font-size: 0.7rem;
  color: var(--text-soft);
}
.nf-d4-wrap .nf-pm-badge {
  font-size: 0.58rem;
  margin-left: 4px;
  vertical-align: middle;
}
.nf-d4-wrap .nf-pm-cap {
  margin: 10px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-mid);
}
.nf-d4-wrap .nf-post-modal__stats {
  padding: 8px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.nf-d4-wrap .nf-pm-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nf-d4-wrap .nf-pm-like {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-dark);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nf-d4-wrap .nf-pm-like:hover {
  background: var(--bg);
  color: var(--primary);
}
.nf-d4-wrap .nf-pm-like.liked {
  color: #e53935;
}
.nf-d4-wrap .nf-pm-counts {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
}
.nf-d4-wrap .nf-post-modal__comments {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}
.nf-d4-wrap .nf-pm-y {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.nf-d4-wrap .nf-pm-yav {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.nf-d4-wrap .nf-pm-yav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nf-d4-wrap .nf-pm-yav-txt {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary);
}
.nf-d4-wrap .nf-pm-ybody {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
}
.nf-d4-wrap .nf-pm-yhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nf-d4-wrap .nf-pm-ydel {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nf-d4-wrap .nf-pm-ydel:hover {
  color: #c62828;
  background: #ffebee;
}
.nf-d4-wrap .nf-pm-ybody a {
  color: var(--text-dark);
  text-decoration: none;
}
.nf-d4-wrap .nf-pm-ybody p {
  margin: 4px 0 0;
  color: var(--text-mid);
  line-height: 1.45;
}
.nf-d4-wrap .nf-pm-yt {
  font-size: 0.65rem;
  color: var(--text-soft);
}
.nf-d4-wrap .nf-pm-empty,
.nf-d4-wrap .nf-pm-loading,
.nf-d4-wrap .nf-pm-err {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
}
.nf-d4-wrap .nf-pm-err {
  color: var(--primary);
}
.nf-d4-wrap .nf-post-modal__formwrap {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}
.nf-d4-wrap .nf-post-modal__form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.nf-d4-wrap .nf-post-modal__form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
}
.nf-d4-wrap .nf-post-modal__send {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
}
.nf-d4-wrap .nf-post-modal__formnote {
  font-size: 0.72rem;
  color: var(--primary);
  margin: 8px 0 0;
}
.nf-d4-wrap .nf-post-modal__guest {
  font-size: 0.82rem;
  margin: 0;
}
.nf-d4-wrap .nf-post-modal__guest a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 767px) {
  .nf-d4-wrap .nf-post-modal__grid {
    grid-template-columns: 1fr;
    max-height: min(94vh, 900px);
  }
  .nf-d4-wrap .nf-post-modal__side {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 52vh;
  }
  .nf-d4-wrap .nf-post-modal__media img {
    max-height: 45vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-d4-wrap .sidebar {
    transition: none;
  }
  .nf-d4-wrap .nf-post--social:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
  .nf-d4-wrap .nf-sv-prog-fill {
    transition: none !important;
  }
}

/* ── Tam ekran hikâye görüntüleyici ───────────────────────────────────── */
.nf-d4-wrap .nf-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}
.nf-d4-wrap .nf-story-viewer[hidden] {
  display: none !important;
}
.nf-d4-wrap .nf-story-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}
.nf-d4-wrap .nf-story-viewer__shell {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
  box-sizing: border-box;
}
.nf-d4-wrap .nf-story-viewer__progress {
  display: flex;
  gap: 4px;
  padding: 10px 12px 6px;
  flex-shrink: 0;
}
.nf-d4-wrap .nf-sv-prog {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.nf-d4-wrap .nf-sv-prog-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: #fff;
}
.nf-d4-wrap .nf-story-viewer__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 10px;
  flex-shrink: 0;
}
.nf-d4-wrap .nf-story-viewer__author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  flex: 1;
}
.nf-d4-wrap .nf-story-viewer__author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.nf-d4-wrap .nf-sv-top-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.nf-d4-wrap .nf-story-viewer__author strong {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nf-d4-wrap .nf-story-viewer__time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}
.nf-d4-wrap .nf-story-viewer__iconbtn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.nf-d4-wrap .nf-story-viewer__iconbtn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.nf-d4-wrap .nf-story-viewer__stage {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.nf-d4-wrap .nf-sv-slide {
  width: 100%;
  max-height: min(72vh, 620px);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.nf-d4-wrap .nf-sv-slide--foto img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 620px);
  object-fit: contain;
  display: block;
}
.nf-d4-wrap .nf-sv-slide--video video {
  width: 100%;
  max-height: min(72vh, 620px);
  display: block;
  background: #000;
}
.nf-d4-wrap .nf-sv-slide--text .nf-sv-slide-text {
  padding: 28px 20px;
  min-height: 200px;
  max-height: min(72vh, 620px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nf-d4-wrap .nf-sv-slide--text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #f5f5f5;
  text-align: left;
}
.nf-d4-wrap .nf-story-viewer__hit {
  position: absolute;
  top: 52px;
  bottom: 72px;
  width: 28%;
  max-width: 140px;
  z-index: 4;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nf-d4-wrap .nf-story-viewer__hit--prev {
  left: 0;
}
.nf-d4-wrap .nf-story-viewer__hit--next {
  right: 0;
}
.nf-d4-wrap .nf-story-viewer__bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 16px;
  flex-shrink: 0;
}
.nf-d4-wrap .nf-story-viewer__reply {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.nf-d4-wrap .nf-story-viewer__reply:hover {
  background: rgba(255, 255, 255, 0.14);
}
.nf-d4-wrap .nf-story-viewer__like {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nf-d4-wrap .nf-story-viewer__like.liked {
  color: #ff4081;
}
.nf-d4-wrap .nf-story-viewer__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
}
.nf-d4-wrap .nf-story-viewer__err {
  position: absolute;
  bottom: 100px;
  left: 16px;
  right: 16px;
  margin: 0;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(30, 30, 30, 0.95);
  color: #ffcdd2;
  font-size: 0.84rem;
  line-height: 1.45;
  z-index: 11;
  text-align: center;
}
.nf-d4-wrap .nf-story-viewer__err a {
  color: #90caf9;
  font-weight: 600;
}
@media (min-width: 900px) {
  .nf-d4-wrap .nf-story-viewer__shell {
    width: min(100%, 400px);
  }
}

/* Gönderi yönetimi (sahip / admin) */
.nf-d4-wrap .nf-post-manage { position: relative; flex-shrink: 0; }
.nf-d4-wrap .nf-post-manage-btn {
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: transparent; color: var(--text-soft); cursor: pointer;
}
.nf-d4-wrap .nf-post-manage-btn:hover { background: var(--bg); color: var(--text-dark); }
.nf-d4-wrap .nf-post-manage-menu {
  position: absolute; top: 100%; right: 0; z-index: 20; min-width: 148px;
  margin-top: 4px; padding: 6px; border-radius: var(--radius-md);
  background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.nf-d4-wrap .nf-post-manage-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; border: none; border-radius: var(--radius-sm);
  background: transparent; font: inherit; font-size: .78rem; font-weight: 600;
  color: var(--text-mid); cursor: pointer; text-align: left;
}
.nf-d4-wrap .nf-post-manage-menu button:hover { background: var(--bg); color: var(--text-dark); }
.nf-d4-wrap .nf-post-manage-menu button.danger { color: #c62828; }
.nf-d4-wrap .nf-pm-admin {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.nf-d4-wrap .nf-pm-admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card-bg);
  font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; color: var(--text-mid);
}
.nf-d4-wrap .nf-pm-admin-btn:hover { border-color: var(--primary); color: var(--primary); }
.nf-d4-wrap .nf-pm-admin-btn.danger { color: #c62828; border-color: #ffcdd2; }
.nf-d4-wrap .nf-pm-admin-btn.danger:hover { background: #ffebee; }
