/* Bizon — Profil paneli (tema ile uyumlu) */

/* Sticky sidebar: html/body üzerinde overflow kesme — üst öğe sticky'yi iptal eder.
   Yatay taşmayı içerikte sınırla, scroll konteynerini body'de oluşturma. */
body.pf-page-body {
  overflow-x: clip;
}
@supports not (overflow: clip) {
  body.pf-page-body { overflow-x: hidden; }
}

.pf-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 20px 80px;
  width: 100%;
  box-sizing: border-box;
}

/* Kapak + başlık */
.pf-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 26, 26, 0.22);
  background: var(--dark2);
  margin-bottom: 26px;
}
.pf-cover {
  height: 200px;
  background: linear-gradient(135deg, #2a0012, #12000a);
  background-size: cover;
  background-position: center;
  position: relative;
}
.pf-cover-edit {
  position: absolute;
  top: 14px;
  right: 14px;
}
.pf-hero-body {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 28px 22px;
  margin-top: -52px;
  position: relative;
}
.pf-avatar {
  width: 104px;
  height: 104px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--dark2);
  background: linear-gradient(135deg, var(--red), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.pf-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
}
.pf-avatar-edit {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.pf-avatar-edit svg { width: 16px; height: 16px; }
.pf-identity { flex: 1; padding-bottom: 6px; }
.pf-identity h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.pf-identity .pf-username {
  color: var(--gray);
  font-size: 0.95rem;
}
.pf-place-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.pf-place-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.pf-place-badge--1 {
  background: rgba(243, 186, 47, 0.14);
  color: #f3ba2f;
  border-color: rgba(243, 186, 47, 0.35);
}
.pf-place-badge--2 {
  background: rgba(186, 199, 214, 0.12);
  color: #c5d0dc;
  border-color: rgba(186, 199, 214, 0.28);
}
.pf-place-badge--3 {
  background: rgba(205, 127, 50, 0.16);
  color: #d08a4a;
  border-color: rgba(205, 127, 50, 0.38);
}
.pf-place-badge--4 {
  background: rgba(140, 150, 165, 0.14);
  color: #9aa6b4;
  border-color: rgba(140, 150, 165, 0.32);
}
.pf-hero-hint {
  margin-top: 8px;
  color: rgba(173, 160, 170, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.pf-hero-hint a {
  color: var(--white);
}
.pf-on-takimim > #pf-user-hero {
  display: none;
}
.pf-role-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  border: 1px solid transparent;
}

.pf-role-badge.pf-role-super_admin {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.pf-role-badge.pf-role-admin {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

.pf-role-badge.pf-role-moderator {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.pf-role-badge.pf-role-premium {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.35);
}

/* Düzen */
.pf-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Sekme menüsü — kaydırınca sabit kalır */
.pf-tabs {
  grid-column: 1;
  grid-row: 1;
  background: var(--dark2);
  border: 1px solid rgba(255, 26, 26, 0.18);
  border-radius: 16px;
  padding: 10px;
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pf-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}
.pf-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: none;
  border-radius: 11px;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.pf-tab svg { width: 19px; height: 19px; flex-shrink: 0; }
.pf-tab-label { min-width: 0; }
.pf-tab:hover { color: var(--white); background: rgba(255, 255, 255, 0.04); }
.pf-tab.active { color: #fff; background: rgba(255, 26, 26, 0.14); }
.pf-tab.active::before {
  content: '';
  position: absolute;
  left: 0; top: 18%;
  height: 64%;
  width: 3px;
  border-radius: 3px;
  background: var(--red);
}
.pf-tab-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

/* İçerik panelleri */
.pf-panel { display: none; }
.pf-panel.active { display: block; animation: pfIn 0.2s ease; }
@keyframes pfIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pf-card {
  background: var(--dark2);
  border: 1px solid rgba(255, 26, 26, 0.16);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.pf-card h2 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.pf-card .pf-card-sub {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.pf-field { margin-bottom: 16px; }
.pf-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.pf-input, .pf-textarea, .pf-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.pf-select option {
  background: #1a0008;
  color: #fff;
}
.pf-input:focus, .pf-textarea:focus, .pf-select:focus {
  outline: none;
  border-color: var(--red);
}
.pf-textarea { resize: vertical; min-height: 90px; }
.pf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.pf-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 26, 26, 0.3); }
.pf-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.pf-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
}
.pf-btn-ghost:hover { border-color: var(--red); box-shadow: none; }
.pf-btn-danger { background: transparent; border: 1px solid rgba(255, 26, 26, 0.5); color: var(--red); }
.pf-btn-danger:hover:not(:disabled) { background: rgba(255, 26, 26, 0.12); box-shadow: none; }
.pf-btn-danger:disabled { opacity: 0.4; cursor: not-allowed; }
.pf-btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.pf-btn-checkin-done {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gray);
  opacity: 1;
  cursor: default;
}
.pf-btn-checkin-done:hover {
  transform: none;
  box-shadow: none;
}

/* Tehlike Bölgesi */
.pf-danger-zone { border-color: rgba(255, 26, 26, 0.35) !important; background: rgba(255, 26, 26, 0.04); }
.pf-danger-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pf-danger-header svg { flex-shrink: 0; color: var(--red); }
.pf-danger-header h2 { margin: 0; color: var(--red); font-size: 1rem; }
.pf-danger-desc { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; line-height: 1.6; }
.pf-danger-desc strong { color: #ff6b6b; }
.pf-danger-list { color: var(--muted); font-size: 0.83rem; margin: 0 0 20px 18px; line-height: 1.8; }
.pf-danger-list li::marker { color: rgba(255, 26, 26, 0.6); }

/* Durum rozetleri / satırlar */
.pf-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.pf-status-row:last-child { border-bottom: none; }
.pf-status-info { display: flex; align-items: center; gap: 12px; }
.pf-status-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray);
  flex-shrink: 0;
}
.pf-status-icon svg { width: 20px; height: 20px; }
.pf-status-text strong { display: block; font-size: 0.95rem; }
.pf-status-text span { font-size: 0.82rem; color: var(--gray); }

.pf-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pf-badge-ok { background: rgba(46, 204, 113, 0.16); color: #2ecc71; }
.pf-badge-warn { background: rgba(243, 156, 18, 0.16); color: #f39c12; }
.pf-badge-off { background: rgba(153, 119, 136, 0.18); color: var(--gray); }

.pf-alert {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 16px;
}
.pf-alert-info { background: rgba(52,152,219,0.12); border: 1px solid rgba(52,152,219,0.3); color: #aad4f0; }
.pf-alert-warn { background: rgba(243,156,18,0.12); border: 1px solid rgba(243,156,18,0.3); color: #f0d9aa; }
.pf-alert-success { background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.3); color: #9be7bd; }
.pf-alert-error { background: rgba(255,26,26,0.12); border: 1px solid rgba(255,26,26,0.32); color: #ffb3b3; }

.pf-hint { font-size: 0.78rem; margin-top: 5px; min-height: 1em; color: var(--gray); }
.pf-hint.error { color: #ff6b6b; }
.pf-hint.ok { color: #2ecc71; }

.pf-team-cover {
  height: 132px;
  margin: -24px -26px 18px;
  background: linear-gradient(135deg, #2a0012, #12000a);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 26, 26, 0.16);
}
.pf-team-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pf-team-hero {
  margin-bottom: 20px;
}
.pf-team-hero .pf-identity h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  margin-bottom: 4px;
  color: var(--white);
}
.pf-create-hero {
  margin: 4px 0 18px;
}
.pf-create-hero .pf-cover {
  height: 148px;
}
.pf-create-hero .pf-avatar {
  width: 84px;
  height: 84px;
  font-size: 1.7rem;
}
.pf-team-logo {
  width: 76px; height: 76px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: var(--red);
}
.pf-team-logo img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.pf-team-meta h2 { margin-bottom: 4px; }
.pf-team-tag { color: var(--red); font-weight: 700; letter-spacing: 1px; }

.pf-members { list-style: none; padding: 0; margin: 0; }
.pf-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pf-member:last-child { border-bottom: none; }
.pf-member-av {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), var(--orange));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.pf-member-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pf-member-info { flex: 1; min-width: 0; }
.pf-member-info strong { display: block; font-size: 0.92rem; }
.pf-member-info span { font-size: 0.78rem; color: var(--gray); }
.pf-member-role {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 16px;
}
.pf-role-captain { background: rgba(255,215,0,0.16); color: #ffd24a; }
.pf-role-starter { background: rgba(46,204,113,0.16); color: #2ecc71; }
.pf-role-substitute { background: rgba(153,119,136,0.2); color: var(--gray); }
.pf-member-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.pf-code-box {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,26,26,0.08);
  border: 1px dashed rgba(255,26,26,0.4);
  border-radius: 12px;
  padding: 14px 18px;
  flex-wrap: wrap;
}
.pf-code-value {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
}

.pf-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.pf-stat {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.pf-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.pf-stat-label { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* 2FA QR */
.pf-qr {
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  margin: 12px 0;
}
.pf-qr img, .pf-qr canvas { display: block; }
.pf-recovery {
  list-style: none;
  padding: 14px;
  margin: 12px 0;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: var(--font-brand);
  letter-spacing: 2px;
}

/* Turnuva / bildirim listeleri */
.pf-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin-bottom: 10px;
}
.pf-list-item img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.pf-list-info { flex: 1; min-width: 0; }
.pf-list-info strong { display: block; }
.pf-list-info span { font-size: 0.82rem; color: var(--gray); }

/* Turnuvalarım kartları */
.pf-tourney-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s ease;
}
.pf-tourney-card:hover { border-color: rgba(255, 26, 26, 0.28); }
.pf-tourney-logo {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}
.pf-tourney-main { flex: 1; min-width: 0; }
.pf-tourney-title {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-tourney-meta { display: block; font-size: 0.82rem; color: var(--gray); line-height: 1.4; }
.pf-tourney-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .pf-tourney-card { flex-wrap: wrap; }
  .pf-tourney-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
}

.pf-tourney-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pf-checkin-badge {
  font-size: 0.78rem;
  color: var(--gray);
  text-align: right;
  line-height: 1.35;
}

/* Check-in modal */
.pf-checkin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pf-checkin-backdrop[hidden] { display: none !important; }
.pf-checkin-modal {
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--dark2, #110008);
  border: 1px solid rgba(255, 26, 26, 0.25);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.pf-checkin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pf-checkin-head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.pf-checkin-sub { margin: 0; font-size: 0.88rem; color: var(--gray); }
.pf-checkin-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.pf-checkin-close:hover { color: var(--white); }
.pf-checkin-hint {
  font-size: 0.86rem;
  color: var(--gray);
  margin: 0 0 14px;
  line-height: 1.5;
}
.pf-checkin-section { margin-bottom: 18px; }
.pf-checkin-section:last-child { margin-bottom: 0; }
.pf-checkin-section-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
}
.pf-checkin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pf-checkin-section-head .pf-checkin-section-title { margin: 0; }
.pf-checkin-progress {
  font-size: 0.78rem;
  color: var(--gray);
  white-space: nowrap;
}
.pf-checkin-self {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.pf-checkin-toggle-self { width: 100%; }
.pf-checkin-toggle-self .pf-checkin-opt { flex: 1; }
.pf-checkin-roster { display: flex; flex-direction: column; gap: 8px; }
.pf-checkin-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pf-checkin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.pf-checkin-player strong { display: block; font-size: 0.95rem; }
.pf-checkin-player span { font-size: 0.78rem; color: var(--gray); }
.pf-checkin-toggle { display: flex; gap: 6px; flex-shrink: 0; }
.pf-checkin-opt {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--gray);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.pf-checkin-opt.is-yes.is-active { background: rgba(34, 197, 94, 0.15); border-color: #22c55e; color: #86efac; }
.pf-checkin-opt.is-no.is-active { background: rgba(239, 68, 68, 0.12); border-color: #ef4444; color: #fca5a5; }
.pf-checkin-row-readonly {
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
}
.pf-checkin-row-readonly.is-me {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}
.pf-checkin-you {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray);
}
.pf-checkin-status-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.pf-checkin-status-badge.is-coming {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}
.pf-checkin-status-badge.is-no {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.pf-checkin-status-badge.is-pending {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--gray);
}
.pf-checkin-actions { display: flex; justify-content: flex-end; gap: 10px; }

.pf-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray);
}
.pf-empty svg { width: 48px; height: 48px; opacity: 0.4; margin-bottom: 12px; }

.pf-guest {
  max-width: 460px;
  margin: 120px auto;
  text-align: center;
  background: var(--dark2);
  border: 1px solid rgba(255,26,26,0.2);
  border-radius: 20px;
  padding: 44px 32px;
}
.pf-guest h1 { font-family: var(--font-heading); margin-bottom: 10px; }
.pf-guest p { color: var(--gray); margin-bottom: 24px; }

.pf-loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray);
}

@media (max-width: 860px) {
  .pf-wrap {
    padding: 96px 14px 56px;
  }

  .pf-layout {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .pf-hero {
    border-radius: 16px;
    margin-bottom: 18px;
  }

  .pf-cover {
    height: 140px;
  }

  .pf-cover-edit {
    top: 10px;
    right: 10px;
  }

  .pf-hero-body {
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 0 16px 16px;
    margin-top: -42px;
  }

  .pf-avatar {
    width: 84px;
    height: 84px;
    font-size: 2rem;
    border-radius: 16px;
  }

  .pf-avatar img {
    border-radius: 13px;
  }

  .pf-identity {
    flex: 1 1 calc(100% - 100px);
    min-width: 0;
    padding-bottom: 0;
  }

  .pf-identity h1 {
    font-size: 1.28rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .pf-role-badge {
    display: inline-block;
    margin: 6px 0 0;
  }

  .pf-tabs {
    grid-column: 1;
    position: static;
    max-height: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 6px;
    padding: 8px;
    margin-bottom: 4px;
  }

  .pf-tabs::-webkit-scrollbar {
    display: none;
  }

  .pf-content {
    grid-column: 1;
    min-width: 0;
  }

  .pf-tab {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 12px;
    scroll-snap-align: start;
  }

  .pf-tab.active::before {
    display: none;
  }

  .pf-tab.active {
    box-shadow: inset 0 -2px 0 var(--red);
  }

  .pf-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .pf-card h2 {
    font-size: 1.05rem;
  }

  .pf-grid-2 { grid-template-columns: 1fr; }

  .pf-status-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pf-member {
    flex-wrap: wrap;
  }

  .pf-member-actions {
    width: 100%;
    margin-top: 4px;
  }

  .pf-code-box {
    flex-direction: column;
    align-items: stretch;
  }

  .pf-code-value {
    font-size: 1.25rem;
    letter-spacing: 3px;
    word-break: break-all;
  }

  .pf-recovery {
    grid-template-columns: 1fr;
  }

  .pf-guest {
    margin: 96px 14px 40px;
    padding: 32px 20px;
  }

  .pf-view-banner {
    padding: 0 2px;
  }

  .pf-public-view {
    padding: 0 2px 40px;
  }
}

@media (max-width: 520px) {
  .pf-wrap {
    padding: 88px 10px 40px;
  }

  .pf-hero-body {
    padding: 0 12px 14px;
    margin-top: -36px;
  }

  .pf-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.7rem;
  }

  .pf-identity {
    flex-basis: calc(100% - 86px);
  }

  .pf-identity h1 {
    font-size: 1.12rem;
  }

  .pf-tab {
    position: relative;
    justify-content: center;
    min-width: 44px;
    padding: 10px;
    gap: 0;
  }

  .pf-tab-label {
    display: none;
  }

  .pf-tab svg {
    width: 20px;
    height: 20px;
  }

  .pf-tab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
    margin-left: 0;
  }

  .pf-card > .pf-btn,
  .pf-card form .pf-btn,
  .pf-status-row > .pf-btn,
  .pf-status-row .pf-btn:not(.pf-btn-sm),
  .pf-guest .pf-btn,
  .pf-empty .pf-btn {
    width: 100%;
    justify-content: center;
  }

  .pf-btn-sm,
  .pf-member-actions .pf-btn,
  .pf-code-box .pf-btn,
  .pf-tourney-actions .pf-btn {
    width: auto;
  }

  .pf-checkin-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pf-checkin-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .pf-checkin-opt {
    flex: 1;
    text-align: center;
  }

  .pf-checkin-actions {
    flex-direction: column;
  }

  .pf-checkin-actions .pf-btn {
    width: 100%;
  }
}

/* ——— Başka kullanıcı profili (salt okunur) ——— */
.pf-view-banner {
  max-width: 1100px;
  margin: 0 auto 12px;
  padding: 0 16px;
}

.pf-app--public .pf-layout {
  display: none !important;
}

.pf-public-view {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pf-public-stats .pf-stats-grid {
  margin: 0;
}

.pf-team-head--compact {
  margin-bottom: 16px;
}

.pf-public-team-name {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.pf-members--compact {
  margin-top: 4px;
}

.pf-public-empty {
  margin: 0;
  color: var(--gray);
  font-size: 0.92rem;
}

.pf-app--public .pf-cover-edit,
.pf-app--public .pf-avatar-edit,
.pf-app--public #pf-cover-input,
.pf-app--public #pf-avatar-input,
.pf-app--public .pf-hero-hint {
  display: none !important;
}

.pf-public-info { margin-top: 4px; }

.pf-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 20px;
  margin-bottom: 18px;
}

.pf-public-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-public-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
}

.pf-public-value {
  font-size: 0.95rem;
  color: #fff;
  word-break: break-word;
}

.pf-public-about {
  margin-bottom: 18px;
}
.pf-public-about p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  white-space: pre-wrap;
}

.pf-public-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 8px 0 12px;
  color: rgba(255,255,255,0.75);
}

.pf-profile-link,
.pf-social-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}
.pf-profile-link:hover,
.pf-social-link:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

.pf-member-info .pf-profile-link {
  font-size: 0.78rem;
}

.pf-empty-sm {
  padding: 24px 16px;
}
.pf-empty-sm p { margin: 0; }

.ci-page {
  max-width: 720px;
  margin: 32px auto 64px;
  padding: 0 20px;
}
