/* =====================================================
   SAATDURUM — DETAYLI KİŞİ PROFİLİ (PUBLIC PROFILE) STİLLERİ
   Instagram & Liquid Glass Integrated — 2026 Edition
   ===================================================== */

/* ── 1. ANA KAPSAYICI ── */
.sd-pubprof-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  animation: sdPubprofFadeIn 0.22s ease-out;
}

@keyframes sdPubprofFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 2. ÜST NAVİGASYON BARI ── */
.sd-pubprof-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--border);
}

.sd-pubprof-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  color: var(--text-p);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  font-family: inherit;
}

.sd-pubprof-back-btn:hover {
  background: var(--bg-card-hv, rgba(255, 255, 255, 0.08));
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-2px);
}

.sd-pubprof-topbar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-p);
  letter-spacing: -0.2px;
  font-family: var(--font-mono, monospace);
}

.sd-pubprof-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sd-pubprof-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  color: var(--text-s);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: inherit;
}

.sd-pubprof-share-btn:hover {
  background: var(--bg-card-hv, rgba(255, 255, 255, 0.08));
  color: var(--text-p);
  border-color: var(--border-focus, rgba(255, 255, 255, 0.2));
}

/* ── 3. INSTAGRAM PROFİL BAŞLIK KARTI (HERO HEADER) ── */
.sd-pubprof-ighdr {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sd-pubprof-ighdr::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 140px;
  background: radial-gradient(ellipse at top, var(--accent-glow, rgba(59, 130, 246, 0.25)), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sd-pubprof-ighdr-toprow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Avatar Story Ring */
.sd-pubprof-ighdr-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-pubprof-ighdr-avatar-wrap.is-studying {
  padding: 3.5px;
  background: conic-gradient(from 180deg, #22c55e, #10b981, #06b6d4, #3b82f6, #22c55e);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
  animation: sdPubprofRingSpin 6s linear infinite;
}

.sd-pubprof-ighdr-avatar-wrap.is-online:not(.is-studying) {
  padding: 3px;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
}

.sd-pubprof-ighdr-avatar-wrap.is-offline {
  padding: 2.5px;
  background: var(--border);
}

@keyframes sdPubprofRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sd-pubprof-avatar-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-mid);
  border: 2.5px solid var(--bg-deep, #08080a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-pubprof-ighdr-avatar-wrap.is-studying .sd-pubprof-avatar-container {
  animation: sdPubprofRingSpinRev 6s linear infinite;
}

@keyframes sdPubprofRingSpinRev {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.sd-pubprof-avatar-container img,
.sd-pubprof-avatar-container svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-pubprof-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-pubprof-avatar-circle img,
.sd-pubprof-avatar-circle svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Instagram 4'lü Sayısal İstatistik Şeridi */
.sd-pubprof-ighdr-stats {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sd-pubprof-ighdr-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: transform 0.15s ease;
}

.sd-pubprof-ighdr-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.sd-pubprof-ighdr-stat:not(.is-static):hover {
  transform: translateY(-1px);
}

.sd-pubprof-ighdr-stat.is-static {
  cursor: default;
}

.sd-pubprof-ighdr-stat strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-p);
  font-family: var(--font-mono, monospace);
  line-height: 1.15;
  white-space: nowrap;
}

.sd-pubprof-ighdr-stat span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-s);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Kimlik, Kullanıcı Adı, Etiketler */
.sd-pubprof-ighdr-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.sd-pubprof-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sd-pubprof-display-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-p);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.sd-pubprof-username {
  font-size: 13px;
  color: var(--text-s);
  font-family: var(--font-mono, monospace);
}

.sd-pubprof-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.sd-pubprof-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-s);
}

.sd-pubprof-pill.is-status.studying {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.35);
  font-weight: 800;
}

.sd-pubprof-pill.is-status.break {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  border-color: rgba(234, 179, 8, 0.35);
}

.sd-pubprof-pill.is-status.online {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.25);
}

.sd-pubprof-pill.is-status.offline {
  color: var(--text-m);
}

.sd-pubprof-pill.is-exam {
  color: var(--accent);
  border-color: var(--border);
  background: var(--accent-dim, rgba(148, 163, 184, 0.12));
}

.sd-pubprof-bio {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-p);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  word-break: break-word;
  font-style: italic;
  margin-top: 2px;
  max-width: 100%;
}

/* Instagram Aksiyon Butonları */
.sd-pubprof-actions-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.sd-pubprof-action-btn {
  flex: 1;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
  white-space: nowrap;
}

.sd-pubprof-action-btn:active {
  transform: scale(0.97);
}

.sd-pubprof-action-btn.primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px var(--accent-glow, rgba(59, 130, 246, 0.32));
}

.sd-pubprof-action-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.sd-pubprof-action-btn.secondary {
  background: var(--bg-card);
  color: var(--text-p);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sd-pubprof-action-btn.secondary:hover {
  background: var(--bg-card-hv, rgba(255, 255, 255, 0.08));
  border-color: var(--border-focus, rgba(255, 255, 255, 0.25));
  transform: translateY(-1px);
}

.sd-pubprof-action-btn.poke {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fb923c;
}

.sd-pubprof-action-btn.poke:hover:not(:disabled) {
  background: rgba(249, 115, 22, 0.22);
  transform: translateY(-1px);
}

.sd-pubprof-action-btn.poke:disabled {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-s) !important;
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.sd-pubprof-follow-btn.following {
  background: var(--bg-card);
  color: var(--text-p);
  border: 1px solid var(--border);
}

.sd-pubprof-follow-btn.following:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.sd-pubprof-follow-btn.following:hover .sd-pubprof-follow-btn-label::after {
  content: ' (Bırak)';
}

/* ── 4. INSTAGRAM HİKAYELER / ÖNE ÇIKAN BAŞARILAR (HIGHLIGHTS) ── */
.sd-igprof-highlights-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.sd-igprof-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  width: 68px;
  text-align: center;
  transition: transform 0.2s ease;
}

.sd-igprof-highlight-item:hover {
  transform: translateY(-2px);
}

.sd-igprof-highlight-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), #eab308);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sd-igprof-highlight-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-mid);
  border: 2px solid var(--bg-deep, #08080a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sd-igprof-highlight-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-p);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 66px;
}

/* ── 5. INSTAGRAM SEKME BUTONLARI (TAB BAR) ── */
.sd-igprof-tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2px 0;
  margin-top: 4px;
}

.sd-igprof-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-s);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-bottom: -1px;
}

.sd-igprof-tab-btn:hover {
  color: var(--text-p);
}

.sd-igprof-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.sd-igprof-tab-btn svg {
  width: 16px;
  height: 16px;
}

/* ── 6. SEKME İÇERİKLERİ (TAB PANES) ── */
.sd-igprof-tab-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: sdPubprofPaneFade 0.2s ease-out;
}

.sd-igprof-tab-pane.active {
  display: flex;
}

@keyframes sdPubprofPaneFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 7. ROZETLER & VİTRİN KARTLARI ── */
.sd-pubprof-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sd-pubprof-shelf-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.sd-pubprof-shelf-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #eab308);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.sd-pubprof-earned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.sd-pubprof-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sd-pubprof-badge-card:hover {
  background: var(--bg-card-hv, rgba(255, 255, 255, 0.08));
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.sd-pubprof-badge-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sd-pubprof-badge-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.sd-pubprof-badge-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-p);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-pubprof-badge-card-rarity {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sd-pubprof-badge-card-rarity.common { color: #94a3b8; }
.sd-pubprof-badge-card-rarity.rare { color: #60a5fa; }
.sd-pubprof-badge-card-rarity.epic { color: #c084fc; }
.sd-pubprof-badge-card-rarity.legendary { color: #facc15; }

/* ── 8. İSTATİSTİK & DERS DAĞILIMI ── */
.sd-pubprof-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sd-pubprof-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sd-pubprof-stat-box-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-p);
  font-family: var(--font-mono, monospace);
}

.sd-pubprof-stat-box-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-s);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sd-pubprof-subjects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sd-pubprof-subject-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sd-pubprof-subject-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-p);
}

.sd-pubprof-subject-name-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sd-pubprof-subject-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sd-pubprof-subject-time {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: var(--text-s);
}

.sd-pubprof-subject-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.sd-pubprof-subject-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 9. SERİ KARTI & 7 GÜNLÜK ŞERİT ── */
.sd-pubprof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.sd-pubprof-card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sd-pubprof-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-p);
  margin: 0;
}

.sd-pubprof-card-subtitle {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-s);
}

.sd-pubprof-streak-hero {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sd-pubprof-streak-flame-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 46, 99, 0.2));
  border: 1px solid rgba(255, 107, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.sd-pubprof-streak-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sd-pubprof-streak-count {
  font-size: 18px;
  font-weight: 800;
  color: #ff8c00;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sd-pubprof-streak-desc {
  font-size: 12px;
  color: var(--text-s);
}

.sd-pubprof-streak-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sd-pubprof-streak-subbox {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.sd-pubprof-streak-subbox-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-p);
  font-family: var(--font-mono, monospace);
}

.sd-pubprof-streak-subbox-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-s);
  margin-top: 2px;
  text-transform: uppercase;
}

.sd-pubprof-7day-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sd-pubprof-7day-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sd-pubprof-7day-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.sd-pubprof-7day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.sd-pubprof-7day-dayname {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-m);
}

.sd-pubprof-7day-bubble {
  width: 100%;
  aspect-ratio: 1;
  max-width: 36px;
  border-radius: 10px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-m);
  transition: all 0.2s ease;
}

.sd-pubprof-7day-bubble.done {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.sd-pubprof-7day-bubble.today-active {
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px var(--accent-glow, rgba(59, 130, 246, 0.4));
}

/* ── 10. SKELETON & MODALS ── */
.sd-skeleton-box {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.6s infinite ease-in-out;
  border-radius: 8px;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sd-skeleton-circle {
  border-radius: 50% !important;
}

/* Takipçi Modalı */
.sd-followlist-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.sd-followlist-modal.is-open {
  display: flex;
}

.sd-followlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sd-followlist-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  max-height: min(560px, 80vh);
  background: rgba(16, 18, 27, 0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sdFollowlistPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sdFollowlistPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0); }
}

.sd-followlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.sd-followlist-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-p);
}

.sd-followlist-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-s);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sd-followlist-close:hover {
  background: var(--bg-card-hv, rgba(255, 255, 255, 0.08));
  color: var(--text-p);
}

.sd-followlist-body {
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
}

.sd-followlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.sd-followlist-row:hover {
  background: var(--bg-card-hv, rgba(255, 255, 255, 0.05));
}

.sd-followlist-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.sd-followlist-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sd-followlist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-followlist-namewrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sd-followlist-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-p);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-followlist-username {
  font-size: 11.5px;
  color: var(--text-s);
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-followlist-followbtn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: none;
  transition: all 0.2s ease;
}

.sd-followlist-followbtn.following {
  background: var(--bg-mid);
  color: var(--text-p);
  border: 1px solid var(--border);
}

.sd-followlist-empty {
  padding: 36px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-s);
}

.sd-pubprof-error-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 420px;
  margin: 40px auto;
  box-shadow: var(--shadow);
}

.sd-pubprof-error-icon {
  font-size: 38px;
}

.sd-pubprof-error-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-p);
  margin: 0;
}

.sd-pubprof-error-desc {
  font-size: 13px;
  color: var(--text-s);
  line-height: 1.5;
  margin: 0;
}

/* ── 11. MOBİL RESPONSİVE ── */
@media (max-width: 768px) {
  .sd-pubprof-container {
    padding: 10px 12px 36px;
    gap: 12px;
  }

  .sd-pubprof-ighdr {
    padding: 16px 14px 14px;
    gap: 12px;
  }

  .sd-pubprof-ighdr-toprow {
    gap: 14px;
  }

  .sd-pubprof-ighdr-avatar-wrap {
    width: 72px;
    height: 72px;
  }

  .sd-pubprof-ighdr-stat strong {
    font-size: 13.5px;
  }

  .sd-pubprof-ighdr-stat span {
    font-size: 9px;
  }

  .sd-pubprof-display-name {
    font-size: 16px;
  }

  .sd-pubprof-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .sd-pubprof-earned-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .sd-igprof-tab-btn {
    font-size: 11.5px;
    padding: 9px 4px;
  }
}

@media (max-width: 400px) {
  .sd-pubprof-ighdr-stats {
    padding: 8px 2px;
  }
  
  .sd-pubprof-ighdr-stat strong {
    font-size: 12.5px;
  }

  .sd-pubprof-ighdr-stat span {
    font-size: 8.5px;
  }

  .sd-igprof-tab-btn span {
    font-size: 10.5px;
  }
}
