/* Sosyal profil tam ekran modal */
.sp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(8, 14, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}
.sp-modal-overlay.open {
  display: flex;
}
.sp-modal {
  flex: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100dvh;
  background: var(--bg, #f5f6fa);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: spSlideUp .28s ease;
}
@keyframes spSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sp-modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(135deg, #311b92 0%, #4527a0 45%, #5e35b1 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(69, 39, 160, 0.28);
}
.sp-modal-back {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
  visibility: hidden;
}
.sp-modal-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.sp-modal-back:active,
.sp-modal-close:active { background: rgba(255,255,255,.28); }
.sp-modal-title-wrap { flex: 1; min-width: 0; }
.sp-modal-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-modal-sub {
  font-size: .68rem;
  opacity: .82;
  margin-top: 2px;
}
.sp-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px max(18px, env(safe-area-inset-bottom));
}
.sp-intro {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ede7f6 0%, #e8eaf6 100%);
  border: 1px solid #d1c4e9;
  margin-bottom: 14px;
  text-align: center;
}
.sp-intro-logo {
  font-size: 1.05rem;
  font-weight: 900;
  color: #4527a0;
  margin: 0 0 4px;
}
.sp-intro-logo b { color: #311b92; }
.sp-intro-text {
  margin: 0;
  font-size: .74rem;
  color: #5e35b1;
  line-height: 1.45;
}
.sp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  background: var(--card-bg, #fff);
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.sp-item:hover,
.sp-item:focus-visible {
  border-color: #b39ddb;
  box-shadow: 0 6px 20px rgba(94, 53, 177, 0.12);
  outline: none;
}
.sp-item:active { transform: scale(.992); }
.sp-item-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.sp-item-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.sp-item-label {
  display: block;
  width: 100%;
  font-size: .92rem;
  font-weight: 800;
  color: var(--text-dark, #1a1f2e);
  line-height: 1.25;
}
.sp-item-user,
.sp-item-meta {
  display: block;
  width: 100%;
  font-size: .72rem;
  color: var(--text-soft, #64748b);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-item-go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ede7f6;
  color: #5e35b1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  flex-shrink: 0;
}
.sp-loading,
.sp-empty,
.sp-error {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-soft);
  font-size: .86rem;
}
.sp-error { color: #c62828; }
.sp-loading i { font-size: 1.4rem; color: #5e35b1; }

@media (min-width: 540px) {
  .sp-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .sp-modal-overlay {
    padding: 24px;
    align-items: center;
    justify-content: center;
  }
  .sp-modal {
    max-width: 560px;
    max-height: min(88vh, 760px);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(8, 18, 36, 0.28);
  }
}
