/* ══════════════════════════════════
   Öğrenci Profil Modalı — modern / cam efektli tasarım
══════════════════════════════════ */

.profile-modal-overlay {
  position: fixed; inset: 0; z-index: 10010;
  background: rgba(20, 14, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.profile-modal-overlay.open { opacity: 1; pointer-events: auto; }

.profile-modal {
  background: var(--cream, #FAF6F0);
  border-radius: 28px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow:
    0 24px 60px rgba(40, 25, 10, 0.28),
    0 2px 8px rgba(40, 25, 10, 0.12);
  transform: translateY(24px) scale(0.94);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  color: var(--brown, #2c1f14);
  scrollbar-width: thin;
}
.profile-modal-overlay.open .profile-modal { transform: translateY(0) scale(1); }
.profile-modal::-webkit-scrollbar { width: 6px; }
.profile-modal::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 6px; }

/* ── Header ─────────────────────────────────────────── */
.profile-header {
  position: relative;
  background: linear-gradient(150deg, var(--gold, #c9962f) 0%, var(--orange, #c9650f) 55%, #b8471f 100%);
  padding: 1.15rem 1rem 4.75rem;
  text-align: center;
  color: white;
}
.profile-header-clip {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  z-index: 0;
}
.profile-header-glow {
  position: absolute; inset: -40% -20% auto -20%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.35), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.profile-close-btn {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.profile-close-btn:hover { background: rgba(255, 255, 255, 0.32); transform: rotate(90deg); }

.profile-settings-btn {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9); cursor: pointer;
  transition: transform 0.3s ease, color 0.2s ease;
}
.profile-settings-btn:hover { color: #fff; transform: rotate(35deg); }

.profile-avatar-container {
  position: absolute; bottom: -48px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 116px;
  border-radius: 50%;
  border: 4px solid var(--cream, #FAF6F0);
  background: linear-gradient(135deg, #f0e4d0, #e6d5ba);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(40, 25, 10, 0.25);
  z-index: 2;
}
.profile-avatar-container img, .profile-avatar-container svg { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile-avatar-container.editable { cursor: pointer; }
.profile-avatar-camera {
  position: absolute; right: -1px; bottom: -1px; z-index: 4;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(150deg, var(--gold, #c9962f), #b8892a); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--cream, #FAF6F0);
  box-shadow: 0 3px 8px rgba(40, 25, 10, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.profile-avatar-camera > svg { width: 13px; height: 13px; flex-shrink: 0; }
.profile-avatar-camera:hover { transform: scale(1.1); }
.profile-avatar-skeleton {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(100deg, #ecdfc8 30%, #f8f0df 50%, #ecdfc8 70%);
  background-size: 200% 100%;
  animation: profileShimmer 1.3s ease-in-out infinite;
  display: none;
}
@keyframes profileShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.profile-avatar-frame {
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 140px; height: 140px;
  pointer-events: none;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  z-index: 3;
}

/* ── Body ───────────────────────────────────────────── */
.profile-body { padding: 62px 1.5rem 1.75rem; text-align: center; }

.profile-name {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.profile-grade-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-bg, #eaf3de), #dcecc7);
  color: var(--green, #3b6d11);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(59, 109, 17, 0.18);
}

/* ── Unvan rozeti (Pena Market) ────────────────────────
   chat.js'teki .title-badge stilleriyle aynı (4 kademe: bronz/gümüş/altın/
   efsanevi) — profil kartı chat.js olmadan da açılabildiği için burada
   kendi kendine yeterli şekilde tanımlanıyor. */
.profile-title-badge-wrap {
  display: flex;
  justify-content: center;
  margin: -0.1rem 0 0.6rem;
  min-height: 0;
}
.profile-title-badge-wrap:empty { margin: 0; }

.title-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  line-height: 1.5;
  vertical-align: middle;
}
.title-badge.tier-bronze { background: #f1e4d3; color: #7a4a26; border-color: #d9bd9a; }
.title-badge.tier-silver { background: linear-gradient(120deg, #eef1f4, #dfe4e9); color: #4a545c; border-color: #c3cbd2; }
.title-badge.tier-gold { background: linear-gradient(120deg, #fff3d2, #f8e8c8 60%, #f6d98a); color: #7a5a10; border-color: #e0b658; }
.title-badge.tier-legendary {
  background: linear-gradient(120deg, #3a2410, #6b4420 45%, #c6952e 100%);
  color: #ffe9b8;
  border-color: #eac26a;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(120, 80, 10, 0.35);
}
.title-badge.tier-legendary::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: profileTitleBadgeShimmer 2.6s ease-in-out infinite;
}
.title-badge.tier-legendary-pink {
  background: linear-gradient(120deg, #6b1a3a, #a3286b 45%, #e888b8 100%);
  color: #ffe3f1;
  border-color: #f0a8cf;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(160, 20, 90, 0.35);
}
.title-badge.tier-legendary-pink::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: profileTitleBadgeShimmer 2.6s ease-in-out infinite;
}
.title-badge.tier-legendary-blue {
  background: linear-gradient(120deg, #0c2a4a, #155a92 45%, #5bb8e8 100%);
  color: #e6f6ff;
  border-color: #8fd4f5;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(10, 90, 150, 0.35);
}
.title-badge.tier-legendary-blue::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: profileTitleBadgeShimmer 2.6s ease-in-out infinite;
}
.title-badge.tier-legendary-green {
  background: linear-gradient(120deg, #0d3a1f, #1f7a3f 45%, #5fd97e 100%);
  color: #e8ffef;
  border-color: #8ee8a3;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(20, 120, 60, 0.35);
}
.title-badge.tier-legendary-green::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: profileTitleBadgeShimmer 2.6s ease-in-out infinite;
}
@keyframes profileTitleBadgeShimmer {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.profile-stat-box {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 18px;
  padding: 0.85rem 0.4rem;
  text-align: center;
  transition: transform 0.2s ease;
}
.profile-stat-box:hover { transform: translateY(-2px); }
.profile-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  color: var(--gold, #b8892a);
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
  line-height: 1.1;
}
.profile-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted, #8a7660);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* ── Pena Market kısayolu ───────────────────────────── */
.profile-market-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f0c896, #e8ac6e);
  border: 1px solid rgba(184, 100, 20, 0.25);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #6b3d10;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(184, 100, 20, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.profile-market-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(184, 100, 20, 0.24); }
.profile-market-btn:active { transform: scale(0.98); }
.profile-market-btn-left { display: flex; align-items: center; gap: 0.5rem; }
.profile-market-btn-icon { font-size: 1.05rem; }
.profile-market-btn-arrow { font-size: 1.2rem; font-weight: 700; opacity: 0.7; }

.profile-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border, #e9ddc8);
  color: #3d2c1a;
}
.profile-section-title:not(:first-of-type) { margin-top: 1.5rem; }

/* #profile-month-section kendi section-title'ını saran ayrı bir div
   olduğu için :not(:first-of-type) kuralı ona uygulanmıyor (kendi
   parent'ı içinde tek/ilk eleman oluyor) — üst boşluğu burada elle
   veriyoruz ki Turnuva Şampiyonlukları'na yapışık durmasın. */
#profile-month-section { margin-top: 1.5rem; }

.profile-section-title-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.profile-inline-settings-btn {
  background: transparent;
  border: none;
  padding: 2px;
  color: var(--gold, #b8892a);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.2s ease;
  opacity: 0.75;
}
.profile-inline-settings-btn:hover { opacity: 1; transform: rotate(35deg); }

.profile-empty-note {
  color: var(--muted, #8a7660);
  font-size: 0.82rem;
  padding: 0.6rem 0;
  text-align: left;
}

/* ── Son Düellolar ──────────────────────────────────── */
.profile-duels { text-align: left; display: flex; flex-direction: column; gap: 0.5rem; }
.profile-duel-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #faf5ea);
  border: 1px solid var(--border, #e9ddc8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.15s ease;
}
.profile-duel-row:hover { transform: translateX(2px); }
.profile-duel-row.profile-duel-win {
  background: linear-gradient(135deg, #f3fae7, #e6f3d3);
  border-color: rgba(59, 109, 17, 0.22);
}
.profile-duel-row.profile-duel-loss {
  background: linear-gradient(135deg, #fdf1ef, #fbe1dd);
  border-color: rgba(180, 50, 40, 0.2);
}
.profile-duel-row.profile-duel-draw {
  background: linear-gradient(135deg, #fff8ec, #faf0da);
  border-color: rgba(140, 120, 90, 0.2);
}
.profile-duel-icon {
  font-size: 1.15rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.65);
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}
.profile-duel-info { min-width: 0; flex: 1; }
.profile-duel-game {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--gold, #b8892a);
  margin-bottom: 0.1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-duel-title {
  font-size: 0.88rem; font-weight: 700; color: #3d2c1a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-duel-sub { font-size: 0.72rem; color: var(--muted, #8a7660); margin-top: 0.15rem; }
.profile-duel-score { text-align: right; flex-shrink: 0; }
.profile-duel-score-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  display: block;
  color: #6b5a3f;
}
.profile-duel-win .profile-duel-score-num { color: #3b6d11; }
.profile-duel-loss .profile-duel-score-num { color: #b4322a; }
.profile-duel-result-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted, #8a7660);
  font-weight: 600;
}

/* ── Turnuva Şampiyonlukları ────────────────────────── */
.profile-trophies { text-align: left; display: flex; flex-direction: column; gap: 0.5rem; }
.profile-trophy-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e8, #fdf0d8);
  border: 1px solid rgba(184, 137, 42, 0.18);
  box-shadow: 0 2px 6px rgba(184, 137, 42, 0.08);
  transition: transform 0.15s ease;
}
.profile-trophy-row:hover { transform: translateX(2px); }
.profile-trophy-icon {
  font-size: 1.4rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #ffd76a, #d99a1f);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(184, 137, 42, 0.35);
  flex-shrink: 0;
  overflow: hidden;
}
.profile-trophy-icon-frame {
  background: #fff;
  padding: 3px;
  border: 1px solid rgba(0,0,0,0.06);
}
.profile-trophy-icon-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.profile-trophy-info { min-width: 0; }
.profile-trophy-title {
  font-size: 0.88rem; font-weight: 700; color: #4a3419;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-trophy-sub {
  font-size: 0.75rem; color: var(--muted, #8a7660); margin-top: 0.1rem;
}

/* ── Bu Ayki Performansın (aylık düello istatistiği) ────────────────── */
.profile-month-card {
  background: linear-gradient(150deg, #fffdf9, #faf5ea);
  border: 1px solid var(--border, #e9ddc8);
  border-radius: 18px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.profile-month-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.profile-month-top-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted, #8a7660);
  letter-spacing: 0.2px;
}
.profile-month-top-value {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold, #b8892a);
  line-height: 1;
}
.profile-month-progress {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(180, 50, 40, 0.14);
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.profile-month-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9a441, var(--gold, #b8892a));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-month-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.profile-month-pill {
  text-align: center;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 0.5rem 0.3rem;
}
.profile-month-pill-value {
  display: block;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #3d2c1a;
  line-height: 1.2;
}
.profile-month-pill.won .profile-month-pill-value { color: var(--green, #3b6d11); }
.profile-month-pill.lost .profile-month-pill-value { color: #b4322a; }
.profile-month-pill-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted, #8a7660);
  margin-top: 0.15rem;
  font-weight: 600;
}

/* ── Avatar Çerçevem (frame seçimi) — "Tak/Kaldır" butonu ──────────── */
.profile-frame-row.active { border-color: rgba(184, 137, 42, 0.4); background: linear-gradient(135deg, #fff8e8, #fdf0d8); }
.profile-frame-btn {
  font-family: inherit; font-size: 0.72rem; font-weight: 700;
  padding: 7px 11px; border: none; border-radius: 10px; cursor: pointer;
  white-space: nowrap; background: var(--gold, #b8892a); color: #fff;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.profile-frame-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.profile-frame-btn.remove { background: var(--cream, #FAF6F0); color: var(--muted, #8a7660); border: 1px solid var(--border, #e9ddc8); }

/* ── Şifre Değiştir popup'ı (gear butonuyla açılır) ──────────────────── */
.profile-pin-popup-overlay {
  position: fixed; inset: 0; z-index: 10020;
  background: rgba(20, 14, 8, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.profile-pin-popup-overlay.open { opacity: 1; pointer-events: auto; }
.profile-pin-popup {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--cream, #FAF6F0);
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: 0 20px 50px rgba(40, 25, 10, 0.3);
  text-align: center;
  color: var(--brown, #2c1f14);
  transform: translateY(16px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.profile-pin-popup-overlay.open .profile-pin-popup { transform: translateY(0) scale(1); }

.profile-frames-popup { max-width: 340px; text-align: center; }
.profile-frames-popup-list {
  text-align: left;
  max-height: 50vh;
  overflow-y: auto;
  margin-top: 0.2rem;
  scrollbar-width: thin;
}
.profile-pin-popup-close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  background: rgba(0,0,0,0.05);
  border: none; border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted, #8a7660); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.profile-pin-popup-close:hover { background: rgba(0,0,0,0.1); transform: rotate(90deg); }
.profile-pin-popup-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold, #c9962f), #b8892a);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.7rem;
  box-shadow: 0 4px 12px rgba(184, 137, 42, 0.35);
}
.profile-pin-popup-title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.profile-pin-box { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.profile-pin-input {
  font-family: inherit; font-size: 0.85rem; letter-spacing: 0.05em; text-align: center;
  border: 1px solid var(--border, #e9ddc8); border-radius: 10px;
  padding: 10px 12px; width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.7); color: var(--brown, #2c1f14);
}
.profile-pin-input::placeholder { letter-spacing: 0.02em; color: var(--muted, #8a7660); }
.profile-pin-msg { font-size: 0.78rem; min-height: 1.1em; text-align: center; }
.profile-pin-save-btn {
  font-family: inherit; font-size: 0.85rem; font-weight: 700; color: #fff;
  background: var(--gold, #b8892a); border: none; border-radius: 12px;
  padding: 11px; cursor: pointer; width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.profile-pin-save-btn:hover:not(:disabled) { transform: translateY(-1px); }
.profile-pin-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════════════════
   Koyu Mod — bu dosyadaki kartların çoğu sabit açık renk zemin +
   sabit koyu kahve/siyah yazı ile yazılmıştı (theme.css'in --brown/
   --muted/--surface değişkenlerine bağlı değildi). Koyu modda modal
   zemini karardığında bu sabit koyu yazılar okunmaz hale geliyordu.
   ══════════════════════════════════ */
[data-theme="dark"] .profile-section-title { color: var(--brown) !important; }

[data-theme="dark"] .profile-grade-badge {
  background: var(--green-bg) !important;
  color: var(--green) !important;
  border-color: rgba(90, 171, 40, 0.3) !important;
}

[data-theme="dark"] .profile-stat-box {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .profile-duel-row,
[data-theme="dark"] .profile-trophy-row,
[data-theme="dark"] .profile-month-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .profile-duel-row.profile-duel-win {
  background: var(--green-bg) !important;
  border-color: rgba(90, 171, 40, 0.3) !important;
}
[data-theme="dark"] .profile-duel-row.profile-duel-loss {
  background: var(--red-bg) !important;
  border-color: rgba(224, 85, 85, 0.3) !important;
}
[data-theme="dark"] .profile-duel-row.profile-duel-draw {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .profile-duel-icon,
[data-theme="dark"] .profile-month-pill,
[data-theme="dark"] .profile-trophy-icon-frame,
[data-theme="dark"] .profile-pin-input {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .profile-duel-title,
[data-theme="dark"] .profile-duel-score-num,
[data-theme="dark"] .profile-trophy-title,
[data-theme="dark"] .profile-month-pill-value {
  color: var(--brown) !important;
}
[data-theme="dark"] .profile-duel-win .profile-duel-score-num { color: var(--green) !important; }
[data-theme="dark"] .profile-duel-loss .profile-duel-score-num { color: var(--red) !important; }
[data-theme="dark"] .profile-month-pill.won .profile-month-pill-value { color: var(--green) !important; }
[data-theme="dark"] .profile-month-pill.lost .profile-month-pill-value { color: var(--red) !important; }
[data-theme="dark"] .profile-pin-input { color: var(--brown) !important; }

[data-theme="dark"] .profile-frame-row.active {
  background: var(--surface-2) !important;
  border-color: rgba(212, 168, 67, 0.3) !important;
}
[data-theme="dark"] .profile-frame-btn.remove {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
