/* ============================================================
   Musiqi.net — Müasir Sosial Musiqi Platforması
   Dark + Light tema (data-theme attribute)
   ============================================================ */

/* ---------- Tema dəyişənləri ---------- */
:root {
  --accent: #8b5cf6;
  --accent2: #ec4899;
  --grad: linear-gradient(135deg, #8b5cf6, #ec4899);
  --grad-soft: linear-gradient(135deg, rgba(139,92,246,.14), rgba(236,72,153,.14));
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --shadow-lg: 0 18px 44px rgba(0,0,0,.18);
  --transition: all .25s cubic-bezier(.4,0,.2,1);
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0d0d13;
  --bg2: #17171f;
  --bg3: #20202b;
  --card: #17171f; /* kart səthi — bg2 ilə eyni (əvvəllər təyin olunmamışdı → şəffaf fon bug-u) */
  --border: rgba(255,255,255,.07);
  --text: #f2f2f7;
  --text2: #9898a6;
  --text3: #6b6b78;
  --hover: rgba(255,255,255,.05);
  --player-bg: rgba(23,23,31,.92);
  --header-bg: rgba(13,13,19,.82);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f4f4f8;
  --bg2: #ffffff;
  --bg3: #ececf2;
  --card: #ffffff; /* kart səthi — bg2 ilə eyni (əvvəllər təyin olunmamışdı → şəffaf fon bug-u) */
  --border: rgba(0,0,0,.08);
  --text: #16161d;
  --text2: #666675;
  --text3: #9999a8;
  --hover: rgba(0,0,0,.04);
  --player-bg: rgba(255,255,255,.94);
  --header-bg: rgba(244,244,248,.85);
  color-scheme: light;
}

/* ---------- Baza ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background .3s ease, color .3s ease;
  padding-bottom: 150px; /* alt menyu + player üçün yer */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

/* Skrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 54px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---------- Düymələr ---------- */
/* Tema ikonları — yalnız biri görünsün: dark-da günəş, light-da ay */
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }

/* Tema düyməsi — profil səhifəsində */
.profile-theme {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  margin-top: 10px;
}
.profile-theme:hover { color: var(--text); border-color: var(--accent); background: var(--bg3); }
.profile-theme svg { width: 18px; height: 18px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--bg2);
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.icon-btn:hover {
  color: var(--text);
  background: var(--bg3);
  transform: translateY(-1px);
}
.icon-btn svg { width: 20px; height: 20px; }

/* Mesaj düyməsi — nota balonlu unikal ikon */
.msg-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(139,92,246,.35);
}
.msg-btn svg { width: 22px; height: 22px; }
.msg-btn:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 6px 18px rgba(139,92,246,.5);
}
.msg-btn:active { transform: scale(.95); }

.msg-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-sizing: border-box;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 5px 18px rgba(139,92,246,.38);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(139,92,246,.5);
}

.btn-ghost {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg3);
  transform: translateY(-2px);
}

/* Like düyməsi aktiv */
.like-btn.liked { color: var(--accent2); }
.like-btn.liked .heart { fill: var(--accent2); stroke: var(--accent2); }

/* ---------- Feed tablar (TikTok üslubu, neon, yapışan) ---------- */
.feed-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.feed-tab {
  border: none;
  background: none; /* arxa fon yoxdur */
  color: var(--text3);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 6px;
  cursor: pointer;
  transition: color .25s ease, text-shadow .25s ease;
  position: relative;
  letter-spacing: .2px;
}
.feed-tab:hover {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(139,92,246,.55);
}
.feed-tab.active {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(139,92,246,.6), 0 0 36px rgba(236,72,153,.45);
}
.feed-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.feed-tab.active::after {
  transform: scaleX(1);
  box-shadow: 0 0 14px rgba(139,92,246,.7);
}

.feed-section { margin: 28px 0 36px; }
.feed-section[hidden] { display: none; }

/* ---------- Musiqi kartları ---------- */
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.track-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeUp .5s ease backwards;
}
.track-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.track-card.playing {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(236,72,153,.08));
}

.track-art {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.92);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.track-art svg { width: 22px; height: 22px; }

.track-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .2s ease;
  backdrop-filter: blur(2px);
}
.track-play svg { width: 20px; height: 20px; fill: #fff; }
.track-card:hover .track-play,
.track-card.playing .track-play { opacity: 1; }

.track-info { flex: 1; min-width: 0; }
.track-title {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist { font-size: 13px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.track-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.track-plays { font-size: 12px; color: var(--text3); white-space: nowrap; }

.track-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

.save-btn.track-save {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text3);
  transition: var(--transition);
}
.save-btn.track-save:hover { background: var(--hover); color: var(--accent); }
.save-btn.track-save.saved { color: var(--accent); }
.save-btn.track-save.saved svg { fill: var(--accent); stroke: var(--accent); }
.save-btn.track-save svg { width: 17px; height: 17px; }

.like-btn.track-like {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text3);
  transition: var(--transition);
}
.like-btn.track-like:hover { background: var(--hover); color: var(--accent2); }
.like-btn.track-like.liked { color: var(--accent2); }
.like-btn.track-like.liked .heart { fill: var(--accent2); stroke: var(--accent2); }
.like-btn.track-like svg { width: 17px; height: 17px; }

/* ---------- Player səhifəsi (mərkəzdə mp3 player) ---------- */
.player-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 16px 20px;
  min-height: calc(100vh - 150px);
}
.player-page[hidden] { display: none; }

.mp3-player {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeUp .4s ease;
}

.mp3-disc {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(0,0,0,.35), 0 0 0 7px rgba(255,255,255,.05), 0 0 0 14px rgba(255,255,255,.025);
  position: relative;
  transition: transform .3s;
}
.mp3-disc svg { width: 60px; height: 60px; }
.mp3-disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid rgba(255,255,255,.75);
}
.mp3-disc.spinning { animation: spin-disc 12s linear infinite; }

.mp3-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}
.mp3-artist { font-size: 15px; color: var(--text2); text-align: center; }


/* Paylaşan istifadəçi — player yuxarı sağ künc (dairəvi avatar) */
.mp3-owner {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  border: 2px solid var(--bg2);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .15s ease;
  z-index: 2;
}
.mp3-owner:hover { transform: scale(1.08); }
.mp3-owner img { width: 100%; height: 100%; object-fit: cover; }
.mp3-owner[hidden] { display: none; }
.mp3-owner .owner-letter { line-height: 1; }

/* Başqa istifadəçinin profili (profile.php?user=N) */
.profile-view-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; align-self: stretch; width: 100%; }
.profile-more-wrap { position: relative; }
.profile-more {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.profile-more svg { width: 18px; height: 18px; }
.profile-more:hover { color: var(--accent); border-color: var(--accent); }
.profile-username {
  font-size: 13px;
  color: var(--text3);
  margin-top: 2px;
  font-weight: 600;
  width: 100%;
  text-align: left;
}
.profile-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10000;
  min-width: 210px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.profile-more-menu[hidden] { display: none; }
.pm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  border: none;
  background: none;
  border-radius: 12px;
  color: var(--text1);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
}
.pm-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.pm-item:hover { background: var(--hover); }
.pm-item.danger { color: #ef4444; }
.pm-item.danger:hover { background: rgba(239,68,68,.1); }
/* Şikayət modalı */
.pm-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.55);
}
.pm-modal[hidden] { display: none; }
.pm-modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.pm-modal-title { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--text); }
.pm-modal-sub { margin: 0 0 14px; font-size: 13px; color: var(--text3); }
.pm-field { display: block; margin-bottom: 12px; }
.pm-field-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text2); margin-bottom: 6px; }
.pm-field select, .pm-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--text1);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.pm-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.pm-modal-actions .modal-btn { flex: 1; }
.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: color .15s ease, border-color .15s ease;
}
.profile-back:hover { color: var(--accent); border-color: var(--accent); }
.profile-follow {
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 999px;
  border: none;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.profile-follow:hover { transform: translateY(-1px); }
.profile-follow.following { background: var(--bg2); color: var(--text1); border: 1px solid var(--border); }
.profile-tracks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (max-width: 640px) {
  .profile-tracks { grid-template-columns: minmax(0,1fr); }
}


.mp3-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.mp3-bar {
  flex: 1;
  height: 5px;
  background: var(--bg3);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
}
.mp3-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 99px;
  transition: width .25s linear;
}

.mp3-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}
.mp3-controls .ctrl-main { width: 72px; height: 72px; }
.mp3-controls .ctrl-main svg { width: 30px; height: 30px; }
.mp3-nav { width: 48px; height: 48px; }
.mp3-nav svg { width: 26px; height: 26px; }

.mp3-ctrl {
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  color: var(--text3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.mp3-ctrl svg { width: 20px; height: 20px; }
.mp3-ctrl:hover { color: var(--text); background: var(--hover); }
.mp3-ctrl.on { color: var(--accent); }
.mp3-ctrl.on svg { fill: var(--accent); stroke: var(--accent); }

.mp3-stats {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 6px;
}
.stat-link {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px;
  color: var(--text3);
  transition: var(--transition);
  font-family: inherit;
}
.stat-link svg { width: 22px; height: 22px; transition: var(--transition); }
.stat-link:hover { color: var(--text); transform: translateY(-2px); }
.stat-link.on { color: var(--text); }
.stat-link.liked { color: var(--accent2); }
.stat-link.liked svg { fill: var(--accent2); stroke: var(--accent2); }
.stat-link.saved { color: var(--accent); }
.stat-link.saved svg { fill: var(--accent); stroke: var(--accent); }
.stat-num { font-size: 13px; font-weight: 700; color: inherit; }

.mp3-reviews {
  width: 100%;
  margin-top: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  animation: fadeUp .3s ease;
}
.mp3-reviews[hidden] { display: none; }
.reviews-list { text-align: left; }
.reviews-list .reviews-empty { text-align: center; }
.review-item {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.review-item:first-child { padding-top: 0; }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-avatar {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-soft); color: var(--text); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-decoration: none;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-body { flex: 1; min-width: 0; }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.review-name { font-size: 13.5px; font-weight: 700; color: var(--text); text-decoration: none; }
.review-name:hover { color: var(--accent); }
.review-time { font-size: 12px; color: var(--text3); margin-left: auto; flex-shrink: 0; }
.review-text { font-size: 14px; color: var(--text2); line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.reviews-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reviews-form[hidden] { display: none; }

/* Cavab rejimi göstəricisi — əsas formanın üstündə */
.reviews-replybar {
  flex-basis: 100%; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--bg2);
  border: 1px solid var(--accent); border-radius: 12px;
  font-size: 13px; color: var(--text2);
}
.reviews-replybar[hidden] { display: none; }
.reviews-replyto-name { color: var(--accent); font-weight: 700; }
.reviews-replybar-cancel {
  margin-left: auto; background: none; border: none; color: var(--text3);
  font-size: 14px; line-height: 1; cursor: pointer; padding: 4px 6px;
  border-radius: 8px; -webkit-tap-highlight-color: transparent;
}
.reviews-replybar-cancel:hover { color: var(--accent); }

/* Qonaq üçün "daxil olun" düyməsi — rəy yazma yerinin əvəzi */
.reviews-login-btn {
  flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border: 1px solid var(--accent); border-radius: 12px;
  background: var(--bg2); color: var(--accent);
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: var(--transition); -webkit-tap-highlight-color: transparent;
}
.reviews-login-btn:hover { background: var(--accent); color: #fff; }

/* Qonaq üçün statik like sayı (düymə deyil — sadəcə göstərici) */
.review-likes-static {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text3); font-size: 12px; font-weight: 700; padding: 4px 6px;
}
.review-likes-static svg { width: 15px; height: 15px; fill: #f43f5e; stroke: #f43f5e; }
.review-likes-static.review-like-sm svg { width: 13px; height: 13px; }

.reviews-input {
  flex: 1; resize: none; min-height: 42px; max-height: 120px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 14px; font-family: inherit; padding: 10px 12px; outline: none;
}
.reviews-input:focus { border-color: var(--accent); }
.reviews-send {
  flex-shrink: 0; padding: 0 16px; border: none; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: var(--transition);
}
.reviews-send:hover { filter: brightness(1.1); }
.reviews-send:disabled { opacity: .6; cursor: default; }

/* Rəy aksiyaları: bəyən / cavab / sil */
.review-actions { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.review-like, .review-reply-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 4px 6px; margin: 0;
  color: var(--text3); font-size: 12px; font-weight: 700; cursor: pointer;
  border-radius: 8px; -webkit-tap-highlight-color: transparent;
}
.review-like svg { width: 15px; height: 15px; transition: transform .15s; }
.review-like.on { color: #f43f5e; }
.review-like.on svg { fill: #f43f5e; stroke: #f43f5e; }
.review-like:active svg { transform: scale(1.3); }
.review-reply-btn:hover { color: var(--accent); }
.review-del {
  background: none; border: none; padding: 4px; margin: 0 0 0 auto;
  color: var(--text3); cursor: pointer; border-radius: 8px; display: inline-flex;
  -webkit-tap-highlight-color: transparent;
}
.review-del:hover { color: #ef4444; }
.review-del svg { width: 14px; height: 14px; }
.review-del.sm { margin-left: auto; }
.review-del.sm svg { width: 12px; height: 12px; }
.review-replies {
  margin-top: 8px; padding-left: 44px; border-left: 2px solid var(--border);
}
.review-item.review-reply { padding: 8px 0; }
.review-avatar-sm { flex-basis: 26px; width: 26px; height: 26px; font-size: 12px; }
.review-like-sm svg { width: 13px; height: 13px; }
.review-replybox {
  margin-top: 8px; padding: 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
}
.review-replybox-actions { display: flex; gap: 8px; margin-top: 8px; }
.review-reply-cancel {
  background: none; border: none; color: var(--text3);
  font-size: 13px; font-weight: 700; cursor: pointer; padding: 0 8px;
}

/* Redaktə modalı: rəylər açıq/bağlı */
.te-comments-row { display: flex; gap: 10px; margin: 4px 0 8px; }

/* ---------- Upload: rəylər açıq/bağlı ---------- */
.up-reviews-row { display: flex; gap: 10px; }
.up-radio {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: var(--transition);
}
.up-radio:has(input:checked) { border-color: var(--accent); }
.up-radio input { position: absolute; opacity: 0; pointer-events: none; }
.up-radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--card); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: border-color .15s;
}
.up-radio-dot::after {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: transparent; transition: background .15s;
}
.up-radio input:checked + .up-radio-dot { border-color: var(--accent); }
.up-radio input:checked + .up-radio-dot::after { background: var(--accent); }
.up-radio-label { font-size: 14px; color: var(--text); font-weight: 700; }
.reviews-empty { color: var(--text3); font-size: 13.5px; line-height: 1.7; }

/* Musiqi haqqında məlumat paneli */
.mp3-info {
  width: 100%;
  margin-top: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  animation: fadeUp .3s ease;
}
.mp3-info[hidden] { display: none; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text3); white-space: nowrap; }
.info-row b { color: var(--text); font-weight: 700; text-align: right; word-break: break-word; }

/* İnfo paneli — paylaşan istifadəçi (avatar + ad + izlə) */
.info-sharer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.info-sharer[hidden] { display: none; }
.info-sharer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--grad);
  text-decoration: none;
  transition: var(--transition);
}
.info-sharer-avatar:hover { transform: scale(1.06); }
.info-sharer-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-sharer-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.info-sharer-label { font-size: 11px; color: var(--text3); }
.info-sharer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}
.info-sharer-name:hover { color: var(--accent); }
.info-follow { margin-left: 0; flex: 0 0 auto; padding: 4px 14px; font-size: 12px; }

/* ---------- Mesajlar səhifəsi — Inbox (Instagram DM stili) ---------- */
.messages-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 150px);
  width: 100%;
  max-width: 935px;
  margin: 0 auto;
}
.messages-page[hidden] { display: none; }

/* Inbox başlığı */
.inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 8px;
}
.inbox-title { font-size: 20px; font-weight: 800; color: var(--text); }
.inbox-new {
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: none; color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.inbox-new:hover { background: var(--hover); color: var(--text); }
.inbox-new svg { width: 22px; height: 22px; }

/* Söhbət siyahısı */
.chat-list { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 10px; }
.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: none;
  background: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  font-family: inherit;
  width: 100%;
}
.chat-item:hover { background: var(--hover); }
.chat-item.blocked, .chat-item:disabled { cursor: default; opacity: .55; }
.chat-item.blocked:hover, .chat-item:disabled:hover { background: none; }
.chat-item.blocked .chat-last { color: var(--text3); }
.chat-item .chat-avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
  border: 2px solid transparent;
  box-shadow: none;
}
.chat-item .chat-name { font-size: 15px; font-weight: 600; }
.chat-item .chat-last { font-size: 13.5px; color: var(--text2); }
.chat-item.unread .chat-name { font-weight: 800; }
.chat-item.unread .chat-last { color: var(--text); font-weight: 600; }
.chat-item.unread .chat-time { color: var(--accent); font-weight: 700; }
.chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(139,92,246,.25);
}
.chat-body { flex: 1; min-width: 0; }
.chat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-time { font-size: 11px; color: var(--text3); white-space: nowrap; flex-shrink: 0; }
.chat-last {
  font-size: 13px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.chat-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

/* Status ikonları — inbox kartında son mesajda */
.chat-last .msg-seen {
  display: inline-flex;
  vertical-align: -2px;
  margin-left: 3px;
  flex-shrink: 0;
  color: var(--text3);
}
.chat-last .msg-seen.read { color: #0095f6; }
.chat-last .msg-seen .st-ic { width: 15px; height: 15px; }

/* ---------- Çat səhifəsi (chat.php) — tam ekran, menyusuz ---------- */
body[data-page="chat"] {
  padding-bottom: 0;
  overflow: hidden;
  position: fixed;   /* viewport-a bərkidilir — URL bar dəyişsə də yerindən oynamır */
  inset: 0;
  width: 100%;
  overscroll-behavior: none;
}
/* Çat səhifəsi tam ekran: ümumi sayt padding-i (alt menyu) tətbiq edilmir */
body.chat-full {
  padding-bottom: 0;
  min-height: 100dvh; /* mobil klaviatura/URL bar dəyişəndə də dəqiq */
}
.chat-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 935px;
  margin: 0 auto;
  width: 100%;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.chat-back {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--text2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.chat-back:hover { background: var(--hover); color: var(--text); }
.chat-back svg { width: 22px; height: 22px; }
.chat-header .chat-avatar { width: 40px; height: 40px; font-size: 16px; box-shadow: none; }
.chat-user-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.chat-user-link:hover .chat-name { color: var(--accent); }
.chat-user { flex: 1; min-width: 0; }
.chat-user .chat-name { font-size: 15px; font-weight: 700; }
.chat-status { font-size: 12px; color: var(--text3); }

/* ---------- Mövcudluq (onlayn status) — REAL məlumat ---------- */
.chat-status.online { color: #22c55e; font-weight: 600; }
.chat-avatar-wrap { position: relative; flex-shrink: 0; }
.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid var(--bg);
  box-sizing: border-box;
  pointer-events: none;
}
.pres-online { color: #22c55e; font-weight: 600; }
.pres-offline { color: var(--text3); }

/* ---------- Basıb saxla → alt panel menyu (səssizə al / arxivlə / sil) ---------- */
.chat-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 120;
}
.chat-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg2);
  border-radius: 18px 18px 0 0;
  z-index: 121;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 30px rgba(0,0,0,.35);
}
.chat-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg3);
  margin: 4px auto 12px;
}
.chat-sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.chat-sheet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.chat-sheet-avatar.has-img img { width: 100%; height: 100%; object-fit: cover; }
.chat-sheet-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-sheet-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 6px;
  background: none;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease;
}
.chat-sheet-opt:hover { background: var(--hover); }
.chat-sheet-opt svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text2); }
.chat-sheet-opt.danger { color: #ef4444; }
.chat-sheet-opt.danger svg { color: #ef4444; }

/* Kartda səssiz ikonu + ad sətri */
.chat-mute-ic { width: 14px; height: 14px; color: var(--text3); flex-shrink: 0; }
.chat-name-wrap { display: flex; align-items: center; gap: 5px; min-width: 0; }
.chat-name-wrap .chat-name { flex-shrink: 1; }

/* Arxiv düyməsi (inbox başlığı altında) */
.inbox-arch-row { display: flex; padding: 2px 4px 6px; }
.inbox-arch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.inbox-arch:hover { background: var(--hover); }
.inbox-arch svg { width: 16px; height: 16px; }
.arch-count {
  background: var(--accent2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Sil təsdiq düyməsi (qırmızı) */
.modal-danger { background: #ef4444; color: #fff; }

/* Yeni söhbət bölmə başlıqları (Əvvəlki söhbətlər / İzlədiklərin / İzləyənlər) */
.chat-sec-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 16px 6px 6px;
}
.chat-sec-title:first-of-type { padding-top: 8px; }

/* Mesaj sahəsi — Instagram baloncukları */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 10px 100px; /* alt boşluq JS ilə dinamik yenilənir (sabit input üçün) */
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain; /* scroll sonunda səhifə bounce etmir */
  scroll-behavior: auto; /* html-dəki smooth mirasını override — scroll dərhal çatır */
}
.msg-day {
  align-self: center;
  font-size: 12px;
  color: var(--text3);
  background: var(--bg3);
  padding: 4px 14px;
  border-radius: 999px;
  margin: 10px 0 8px;
}
.msg {
  max-width: 78%;
  display: flex;
  flex-direction: column;
  margin: 2px 0;
  animation: fadeUp .25s ease;
}
.msg-me { align-self: flex-end; align-items: flex-end; }
.msg-them { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 22px;
  word-break: break-word;
}
.msg-them .msg-bubble {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.msg-me .msg-bubble {
  background: #0095f6;
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg-text { display: block; white-space: pre-wrap; }
.msg-time {
  font-size: 10px;
  opacity: .85;
  margin-top: 3px;
  text-align: right;
  white-space: nowrap;
  display: block;
}
.msg-me .msg-time { color: rgba(255,255,255,.85); }
.msg-them .msg-time { color: var(--text3); }

/* Status ikonları — saat / qapalı göz / açıq göz (baloncuğun içində) */
.msg-seen { margin-left: 4px; display: inline-flex; vertical-align: -2px; }
.msg-seen .st-ic { width: 14px; height: 14px; }
.msg-me .msg-seen { color: rgba(255,255,255,.9); }
.msg-me .msg-seen.read { color: #b3e0ff; }
.msg-seen.sending { opacity: .85; }

/* Input — sabit (sticky) aşağıda */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: fixed;             /* viewport-un altına bərkidilir — heç vaxt itmir */
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 935px;
  z-index: 20;
}
.chat-input-row input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.chat-input-row input:focus {
  border-color: var(--accent);
  background: var(--bg2);
  box-shadow: 0 0 0 4px rgba(139,92,246,.12);
}
.chat-input-row input::placeholder { color: var(--text3); }
.chat-input-row textarea {
  flex: 1;
  min-height: 44px;
  max-height: 96px; /* ~3 sətir */
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  border-radius: 22px;
  padding: 11px 18px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  resize: none;
  overflow-y: hidden;
  transition: var(--transition);
}
.chat-input-row textarea:focus {
  border-color: var(--accent);
  background: var(--bg2);
  box-shadow: 0 0 0 4px rgba(139,92,246,.12);
}
.chat-input-row textarea::placeholder { color: var(--text3); }
.chat-send {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(139,92,246,.35);
  flex-shrink: 0;
  align-self: flex-end; /* textarea böyüyəndə aşağıda qalır */
}
.chat-send:hover { transform: scale(1.06); }
.chat-send:active { transform: scale(.95); }
.chat-send svg { width: 19px; height: 19px; }

/* Desktop — çat və inbox genişliyi */
@media (min-width: 900px) {
  .chat-page { height: calc(100vh - 170px); }
  .inbox-head { padding: 16px 4px 10px; }
  .chat-item { border-radius: 12px; padding: 12px; }
}

/* Zəng düyməsi nişanı */
.notif-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

/* ---------- Bildirişlər səhifəsi ---------- */
.notif-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 150px);
}
.notif-page[hidden] { display: none; }
.notif-list { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; }
.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border: none;
  background: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  font-family: inherit;
  width: 100%;
}
.notif-item:hover { background: var(--hover); }
.notif-item.unread { background: rgba(139,92,246,.08); }
.notif-item.unread:hover { background: rgba(139,92,246,.14); }
.notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--bg2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.notif-text b { font-weight: 800; }
.notif-time { font-size: 11.5px; color: var(--text3); margin-top: 2px; }
.notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}
.notif-item:not(.unread) .notif-dot { background: transparent; }

/* ---------- Profil səhifəsi ---------- */
.profile-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 30px 0 20px;
}
.profile-page[hidden] { display: none; }
.profile-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}
.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(139,92,246,.35), 0 0 0 5px rgba(255,255,255,.06);
}
.profile-settings-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.profile-settings-btn svg { width: 20px; height: 20px; }
.profile-settings-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(30deg); }

/* Sağdakı düymə qrupu: [Gecə rejimi] [Ayarlar] */
.profile-head-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Gecə rejimi düyməsi — ayarlar ikonundan solda, fırlanma effekti yox */
.profile-theme-btn:hover { transform: none; }
.profile-name { font-size: 20px; font-weight: 800; color: var(--text); width: 100%; }
.profile-bio { font-size: 13px; color: var(--text3); width: 100%; line-height: 1.5; text-align: left; }
.profile-stats {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 22px 0 6px;
}
.pstat {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pstat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: .8;
}
.pstat b { font-size: 21px; font-weight: 800; color: var(--text); line-height: 1.1; }
.pstat span {
  font-size: 10px;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pstat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.profile-section { width: 100%; margin-top: 18px; }
.profile-section-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.profile-saved { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.profile-saved-item:hover { border-color: var(--accent); transform: translateX(2px); }
.saved-art {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}
.saved-meta { flex: 1; min-width: 0; }
.saved-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-artist { font-size: 12px; color: var(--text3); }
.saved-empty {
  font-size: 13px;
  color: var(--text3);
  text-align: center;
  padding: 18px;
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

/* ---------- Boş feed mesajı ---------- */
.feed-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text3);
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Animasiyalar ---------- */
.g1 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.g2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.g3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.g4 { background: linear-gradient(135deg, #10b981, #84cc16); }
.g5 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.g6 { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.g7 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.g8 { background: linear-gradient(135deg, #a855f7, #d946ef); }

/* ---------- Animasiyalar ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Alt menyu (köhnə Instagram stili) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 96;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--player-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.nav-item {
  flex: 1;
  max-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  border-radius: 12px;
  transition: var(--transition);
}
.nav-item svg { width: 24px; height: 24px; transition: var(--transition); }
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--accent); }
.nav-item.active svg {
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 2px 8px rgba(139,92,246,.5));
}

/* ---------- Player bar ---------- */
.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px; /* alt menyunun üstündə */
  z-index: 95;
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  background: var(--player-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0,0,0,.08);
}
.player.active { transform: translateY(0); }

.player-progress {
  height: 3px;
  background: var(--bg3);
  cursor: pointer;
}
.player-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 0 3px 3px 0;
  transition: width .25s linear;
  position: relative;
}
.player-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(139,92,246,.7);
  opacity: 0;
  transition: opacity .2s;
}
.player:hover .player-progress-fill::after { opacity: 1; }

.player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}

.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.player-art {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.9);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.player.playing .player-art { animation: spin-disc 6s linear infinite; }
@keyframes spin-disc { to { transform: rotate(360deg); } }
.player-art svg { width: 18px; height: 18px; }

.player-meta { min-width: 0; }
.player-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-like { width: 36px; height: 36px; border: none; background: transparent; color: var(--text3); }
.player-like:hover { color: var(--accent2); background: var(--hover); }
.player-like.liked { color: var(--accent2); }
.player-like.liked .heart { fill: var(--accent2); stroke: var(--accent2); }

.player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ctrl-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.ctrl-btn svg { width: 20px; height: 20px; }
.ctrl-btn:hover { color: var(--text); background: var(--hover); }

.ctrl-main {
  width: 46px;
  height: 46px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139,92,246,.4);
}
.ctrl-main:hover { color: #fff; transform: scale(1.06); background: var(--grad); }
.ctrl-main svg { width: 22px; height: 22px; }

.ic-pause { display: none; }
.player.playing .ic-play { display: none; }
.player.playing .ic-pause { display: block; }

.player-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.time { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }

/* Səs düyməsi — səsli / səssiz ikon keçidi */
.volume-btn .ic-sound { display: block; }
.volume-btn .ic-muted { display: none; }
.volume-btn.muted .ic-sound { display: none; }
.volume-btn.muted .ic-muted { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body { padding-bottom: 150px; }

  .header-inner { gap: 12px; height: 58px; }
  .logo-text { display: none; }

  .feed-tabs { gap: 24px; top: 58px; }
  .feed-tab { font-size: 14px; padding: 7px 4px; }

  .track-grid, .profile-saved { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .player-inner { padding: 10px 14px; }
  .player-right .time { display: none; }
  .player-like { display: none; }
  .player-controls { gap: 8px; }

  .nav-item { font-size: 10px; }
}

@media (min-width: 769px) {
  .player { bottom: 64px; }
}

/* ---------- Kiçik ekranlar ---------- */
@media (max-width: 380px) {
  .btn { padding: 10px 18px; font-size: 13px; }
}

/* ---------- Giriş düyməsi + istifadəçi avatarı ---------- */
.login-link{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 16px; border-radius:10px; background:var(--grad);
  color:#fff; font-size:14px; font-weight:600; text-decoration:none;
  border:none; cursor:pointer; transition:var(--transition);
  white-space:nowrap;
}
.login-link:hover{ opacity:.9; transform:translateY(-1px); }
.user-avatar{ width:36px; height:36px; padding:0; overflow:hidden; border-radius:50%; border:2px solid var(--accent); }
.user-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ---------- Alt menyu profil avatarı ---------- */
.nav-avatar{
  width:26px; height:26px; border-radius:50%; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; line-height:1;
  background:var(--hover);
}
.nav-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.nav-item.active .nav-avatar{ border:2px solid var(--accent); }

/* ---------- İzlə düyməsi (mahnı kartında) ---------- */
.follow-btn{
  margin-left:8px; padding:2px 10px; font-size:11px; font-weight:600;
  border-radius:20px; border:1px solid var(--border); background:none;
  color:var(--text2); cursor:pointer; transition:var(--transition);
  vertical-align:middle;
}
.follow-btn:hover{ border-color:var(--accent); color:var(--accent); }
.follow-btn.following{ border-color:var(--accent); color:var(--accent); background:var(--grad-soft); }

/* ---------- Yeni söhbət / boş siyahı ---------- */
.chat-new{
  display:flex; align-items:center; justify-content:center; gap:6px;
  width:calc(100% - 24px); margin:12px; padding:10px; border-radius:12px;
  background:var(--grad); color:#fff; font-size:14px; font-weight:600;
  border:none; cursor:pointer; transition:var(--transition);
}
.chat-new:hover{ opacity:.9; transform:translateY(-1px); }
.chat-new svg{ width:16px; height:16px; }
.chat-empty{
  padding:40px 20px; text-align:center; color:var(--text2);
  font-size:14px; line-height:1.7;
}
.notif-empty{
  padding:60px 20px; text-align:center; color:var(--text2);
  font-size:14px;
}

/* ---------- Avatar şəkilləri (mesaj + bildiriş) ---------- */
.chat-avatar.has-img{ overflow:hidden; padding:0; }
.chat-avatar.has-img img{ width:100%; height:100%; object-fit:cover; }
.notif-icon.has-img{ overflow:hidden; padding:0; }
.notif-avatar-img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }

/* Mesaj badge — oxunmamış sayı */
.msg-badge{
  position:absolute; top:-4px; right:-4px;
  min-width:16px; height:16px; padding:0 4px; border-radius:8px;
  background:#ef4444; color:#fff; font-size:10px; font-weight:800;
  align-items:center; justify-content:center;
  border:2px solid var(--bg);
}
.msg-btn{ position:relative; }

/* ---------- Mahnı şəkli (cover) ---------- */
.track-art.has-cover{ background:var(--bg2); }
.track-cover{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.mp3-cover{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%; }

/* ---------- Sözlər paneli ---------- */
.mp3-lyrics{
  margin-top:14px; padding:16px; border-radius:var(--radius);
  background:var(--bg2); border:1px solid var(--border);
  max-height:300px; overflow-y:auto;
}
.lyrics-text{
  font-size:14px; line-height:1.9; color:var(--text);
  white-space:normal; text-align:center; font-style:italic;
}
.lyrics-empty{
  text-align:center; color:var(--text2); font-size:13px; padding:20px 10px;
}
.player-art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%; }

/* ---------- Böyük player səhifəsi: play/pause keçidi ---------- */
.mp3-play .ic-pause { display: none; }
.mp3-play.playing .ic-play { display: none; }
.mp3-play.playing .ic-pause { display: block; }

/* ---------- MPA: link nav elementləri ---------- */
a.nav-item, a.icon-btn, a.msg-btn { text-decoration: none; color: var(--text3); }
a.nav-item:hover { color: var(--text); }
a.icon-btn:hover { color: var(--text); background: var(--hover); }

/* ---------- Grid daşmasının qarşısı (kartlar ekrandan çıxmasın) ---------- */
.track-card { min-width: 0; }
html { overflow-x: hidden; }

/* ---------- Axtarış səhifəsi (search.php) ---------- */
.search-page { padding: 18px 0 8px; }
.search-box { position: relative; margin-bottom: 20px; }
.search-box > svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text3); pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text3); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--hover); color: var(--text2); font-size: 14px;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s;
}
.search-clear:hover { background: var(--border); }
.search-clear.show { display: flex; }

/* ---------- Axtarış tarixçəsi (search.php) ---------- */
.history-block { margin-bottom: 24px; }
.history-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.history-title {
  font-size: 14px; font-weight: 800; color: var(--text2);
  letter-spacing: .3px; text-transform: uppercase;
}
.history-clear {
  font-size: 12px; font-weight: 600; color: var(--text3);
  background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 8px; transition: color .2s, background .2s;
}
.history-clear:hover { color: var(--accent); background: var(--hover); }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg2); border: 1px solid var(--border);
  padding: 7px 8px 7px 14px; border-radius: 999px; font-size: 13px;
  color: var(--text); transition: border-color .2s, background .2s;
  max-width: 100%;
}
.search-chip:hover { border-color: var(--accent); background: var(--hover); }
.chip-term {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer; user-select: none;
}
.chip-del {
  background: none; border: none; color: var(--text3); font-size: 11px;
  cursor: pointer; padding: 2px 4px; line-height: 1; flex-shrink: 0;
  border-radius: 50%; transition: color .2s;
}
.chip-del:hover { color: var(--accent); }

/* ===== Profil: aksiyalar (İzlə + Mesaj yaz) ===== */
.profile-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 0;
  width: 100%;
}
.profile-actions .profile-follow { margin: 0; padding: 10px 22px; }
.profile-msg-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text1);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.profile-msg-btn svg { width: 17px; height: 17px; }
.profile-msg-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.profile-msg-btn.blocked, .profile-msg-btn:disabled {
  opacity: .6;
  cursor: default;
  border-color: var(--border);
  background: var(--card2);
  color: var(--text3);
}
.profile-msg-btn.blocked:hover, .profile-msg-btn:disabled:hover { transform: none; border-color: var(--border); }
.profile-locked {
  margin: 14px 0;
  padding: 22px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text3);
  background: var(--card2);
  border: 1px dashed var(--border);
  border-radius: 14px;
}

/* ===== Profil: Redaktə et düyməsi ===== */
.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text1);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.profile-edit-btn svg { width: 14px; height: 14px; }
.profile-edit-btn:hover { transform: translateY(-1px); border-color: var(--accent); }

/* ===== Profil tablar ===== */
.profile-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 22px 0 2px;
  padding: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.profile-tab {
  flex: 1;
  padding: 10px 6px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text3);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.profile-tab.active { background: var(--grad); color: #fff; }

/* ===== Redaktə modalı ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text3);
  transition: var(--transition);
  padding: 0;
}
.modal-close:hover { background: var(--hover); color: var(--text); }
.modal-close svg { width: 18px; height: 18px; }
.modal-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.modal-label { display: block; font-size: 12px; font-weight: 700; color: var(--text3); margin: 12px 0 6px; }
.modal-hint { font-size: 12px; color: var(--text3); margin-top: 5px; }
.modal-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888899' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
.modal-input, .modal-textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 15px;
  outline: none;
  resize: none;
  box-sizing: border-box;
}
.modal-input:focus, .modal-textarea:focus { border-color: var(--accent); }
.modal-error {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(239,68,68,.12);
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
}
.modal-error[hidden] { display: none; }
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.modal-btn {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s ease;
}
.modal-btn:disabled { opacity: .5; cursor: default; }
.modal-cancel { background: var(--bg2); color: var(--text3); border: 1px solid var(--border); }
.modal-save { background: var(--grad); color: #fff; }

/* ===== Ayarlar modalı (profil) ===== */
.settings-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 16px 0 4px;
}
.settings-divider { height: 1px; background: var(--border); margin: 16px 0 0; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .15s ease, transform .15s ease;
}
.settings-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.s-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text1); }
.s-val { font-size: 13px; font-weight: 600; color: var(--text3); }
.settings-row.danger { justify-content: center; color: #ef4444; font-size: 14px; font-weight: 700; }
.settings-row.danger:hover { border-color: #ef4444; }
.settings-save { width: 100%; flex: none; margin-top: 12px; }

/* ===== Ayrıca Ayarlar səhifəsi (settings.php) ===== */
.settings-page { padding: 16px 0 90px; }
.settings-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.settings-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  flex: none;
  transition: border-color .15s ease, color .15s ease;
}
.settings-back svg { width: 20px; height: 20px; }
.settings-back:hover { border-color: var(--accent); color: var(--accent); }
.settings-title-head { font-size: 19px; font-weight: 800; color: var(--text); margin: 0; }
.settings-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.settings-card .settings-title { margin-top: 0; }
.settings-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
}
.settings-profile .profile-avatar { width: 56px; height: 56px; font-size: 22px; margin: 0; box-shadow: 0 6px 18px rgba(139,92,246,.3), 0 0 0 3px rgba(255,255,255,.05); }
/* Avatar dəyişmə — qələm ikonu (settings.php) */
.avatar-edit { position: relative; flex-shrink: 0; width: 56px; height: 56px; }
.avatar-edit .profile-avatar { width: 56px; height: 56px; }
.avatar-edit-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--bg);
  cursor: pointer;
  transition: transform .15s ease;
  z-index: 2;
}
.avatar-edit-badge svg { width: 11px; height: 11px; }
.avatar-edit-badge:hover { transform: scale(1.15); }
.avatar-edit-badge:active { transform: scale(.92); }
/* Ayarlar menyusu (settings.php) */
.settings-menu { padding: 4px 8px; }
.settings-menu .settings-row {
  background: transparent;
  border: none;
  border-radius: 0;
  margin-top: 0;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
}
.settings-menu .settings-row:hover { transform: none; border-bottom-color: var(--accent); }
.settings-menu .settings-row:last-child { border-bottom: none; }
.s-chevron { display: flex; align-items: center; color: var(--text3); flex-shrink: 0; transition: color .15s ease; }
.s-chevron svg { width: 16px; height: 16px; }
.settings-row:hover .s-chevron { color: var(--accent); }
.s-check { display: flex; align-items: center; color: var(--accent); }
.s-check svg { width: 18px; height: 18px; }
.settings-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 10px;
  color: var(--text3);
  text-align: center;
}
.settings-empty svg { width: 34px; height: 34px; opacity: .6; }
.settings-empty p { margin: 0; font-size: 13px; }
.settings-note { font-size: 12px; color: var(--text3); margin-top: 10px; text-align: center; }
.settings-help-text { font-size: 13px; color: var(--text2); line-height: 1.65; margin: 10px 0 12px; }
.settings-profile-meta { min-width: 0; }
.settings-profile-name { font-size: 16px; font-weight: 800; color: var(--text); }
.settings-profile-hint { font-size: 12px; color: var(--text3); margin-top: 2px; }
.settings-card .modal-btn { width: 100%; }
.settings-card .settings-title { margin-bottom: 4px; }
/* Mesaj məxfilik radio seçimləri */
.s-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}
.s-radio:last-of-type { border-bottom: none; }
.s-radio input { position: absolute; opacity: 0; pointer-events: none; }
.s-radio-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.s-radio-dot::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background .15s;
}
.s-radio input:checked + .s-radio-dot { border-color: var(--accent); }
.s-radio input:checked + .s-radio-dot::after { background: var(--accent); }
.s-radio-label { font-size: 14px; color: var(--text); flex: 1; }
.settings-card .modal-error { margin-top: 10px; }
a.settings-row { text-decoration: none; }
.settings-row .s-label { color: inherit; }
.settings-row.danger .s-label { color: #ef4444; }
.settings-version {
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  margin-top: 18px;
  letter-spacing: .04em;
}

/* ============================================================
   Statistika kartları link (İzləyən / İzlənilən) + İzləyənlər siyahısı
   ============================================================ */
.profile-stats a.pstat {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* --- fl.php — izləyənlər / izlənilənlər siyahısı --- */
.fl-page { width: 100%; padding-top: 6px; }
.fl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 14px;
}
.fl-head-meta { display: flex; flex-direction: column; gap: 1px; }
.fl-title { font-size: 19px; font-weight: 800; color: var(--text); margin: 0; }
.fl-sub { font-size: 12px; color: var(--text3); }
.fl-list { display: flex; flex-direction: column; gap: 6px; }
.fl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.fl-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}
.fl-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.fl-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fl-follow {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.fl-follow:hover { opacity: .88; }
.fl-follow.following {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}
.fl-empty {
  text-align: center;
  color: var(--text3);
  padding: 44px 0;
  font-size: 14px;
}

/* Şikayətlərim / Əngəllədiklərim (settings bölmələri) */
.fl-handle { font-size: 12px; color: var(--text3); font-weight: 600; }
.rp-item { flex-direction: column; align-items: stretch; gap: 8px; }
.rp-top { display: flex; align-items: center; gap: 10px; }
.rp-top .fl-link { min-width: 0; }
.rp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 52px; font-size: 12px; color: var(--text3); }
.rp-reason { font-weight: 600; color: var(--text2); }
.rp-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.rp-status.pending { background: rgba(245,158,11,.16); color: #f59e0b; }
.rp-status.reviewed { background: rgba(16,185,129,.16); color: #10b981; }
.rp-status.dismissed { background: rgba(239,68,68,.13); color: #ef4444; }
.rp-date { opacity: .85; }
.rp-note { font-size: 12.5px; color: var(--text2); background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-left: 52px; white-space: pre-wrap; word-break: break-word; }
.rp-cancel {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.rp-cancel:hover { border-color: #ef4444; color: #ef4444; }
.rp-cancel:disabled { opacity: .6; cursor: default; }
.fl-unblock {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.fl-unblock:hover { border-color: #ef4444; color: #ef4444; }
.fl-unblock:disabled { opacity: .6; cursor: default; }

/* ============================================================
   Şəkillər grid (profil — Instagram üslubu)
   ============================================================ */
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.img-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
  display: block;
  min-width: 0;
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-card-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Şəkil paylaş kartı (profil — grid-in ilk kartı)
   ============================================================ */
.img-share-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--border);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.img-share-card:hover { border-color: var(--accent); color: var(--accent); background: var(--hover); }
.img-share-card:disabled { opacity: .6; cursor: wait; }
.img-share-card .img-share-plus-ic { font-size: 34px; line-height: 1; }
.img-share-card .img-share-txt { font-size: 12px; font-weight: 700; }
.img-err {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  color: #ef4444; font-size: 13px; font-weight: 600;
  margin-bottom: 10px;
}
.img-err.show { display: block; }

/* ============================================================
   Şəkil paylaşma modalı (crop + mətn)
   ============================================================ */
.img-modal{
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.img-modal[hidden]{ display:none; }
.img-modal-head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; gap: 10px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.img-modal-back{
  width: 38px; height: 38px; border: none; border-radius: 12px;
  background: var(--bg2); color: var(--text);
  font-size: 16px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.img-modal-back:hover{ background: var(--hover); }
.img-modal-title{ font-size: 16px; font-weight: 800; color: var(--text); flex: 1; text-align: center; }
.img-modal-post{
  border: none; border-radius: 12px; padding: 9px 16px;
  background: var(--grad); color: #fff;
  font-size: 14px; font-weight: 800; cursor: pointer; transition: var(--transition);
}
.img-modal-post:hover{ opacity:.9; }
.img-modal-post:disabled{ opacity:.6; cursor: wait; }
.img-modal-body{ flex: 1; overflow-y: auto; padding: 12px 14px 24px; }
.crop-stage{
  position: relative; width: 100%; max-width: 420px; margin: 0 auto;
  aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: #000; touch-action: none;
  border: 1px solid var(--border);
}
.crop-stage canvas{ width: 100%; height: 100%; display: block; touch-action: none; }
.crop-zoom-row{
  display: flex; align-items: center; gap: 10px;
  max-width: 420px; margin: 14px auto 0;
  color: var(--text2);
}
.crop-zoom-row svg{ width: 18px; height: 18px; flex-shrink: 0; }
.crop-zoom-row input[type=range]{
  flex: 1; accent-color: var(--accent); height: 28px; cursor: pointer;
}
.crop-caption{
  display: block; width: 100%; max-width: 420px; margin: 14px auto 0;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  font-size: 14px; font-family: inherit; line-height: 1.55; resize: vertical;
}
.crop-caption:focus{ outline: none; border-color: var(--accent); }
.img-modal-body .img-err{ max-width: 420px; margin: 12px auto 0; }

/* ============================================================
   Şəkil paylaşım səhifəsi (pi.php) — Instagram üslubu
   ============================================================ */
.post-page{ max-width: 560px; margin: 0 auto; padding: 8px 0 90px; }
.post-head{
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 8px;
}
.post-head-title{ font-size: 17px; font-weight: 800; color: var(--text); }
.post-user{
  display: flex; align-items: center; gap: 12px;
  padding: 10px 2px 12px;
}
.post-menu-wrap{ position: relative; margin-left: auto; }
.post-menu-btn{
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; background: none;
  color: var(--text2); border-radius: 50%; cursor: pointer;
  transition: var(--transition);
}
.post-menu-btn:hover{ background: var(--hover); color: var(--text); }
.post-menu-btn svg{ width: 22px; height: 22px; }
.post-menu{
  position: absolute; top: 40px; right: 0; z-index: 60;
  min-width: 180px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  overflow: hidden; padding: 6px;
}
.post-menu[hidden]{ display: none; }
.post-menu-item{
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border: none; background: none;
  color: var(--text); font-size: 14px; font-weight: 600;
  border-radius: 10px; cursor: pointer; transition: var(--transition);
}
.post-menu-item svg{ width: 18px; height: 18px; flex-shrink: 0; }
.post-menu-item:hover{ background: var(--hover); }
.post-menu-item.danger{ color: #ff4757; }
.post-menu-item.danger:hover{ background: rgba(255,71,87,.08); }
.post-avatar{
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff; overflow: hidden;
  text-decoration: none;
}
.post-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.post-user-meta{ display: flex; flex-direction: column; min-width: 0; }
.post-username{
  font-size: 14px; font-weight: 800; color: var(--text);
  text-decoration: none;
}
.post-date{ font-size: 12px; color: var(--text2); margin-top: 2px; }
.post-img{
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: #000;
}
.post-img img{ width: 100%; height: auto; display: block; }
.post-caption{
  padding: 12px 4px 4px;
  font-size: 14px; line-height: 1.6; color: var(--text);
  white-space: pre-line; word-break: break-word;
}

/* ============================================================
   Şəkil paylaşımı bəyənmə (pi.php) — TikTok üslubu
   ============================================================ */
.post-actions{
  display: flex; align-items: center; gap: 8px;
  padding: 12px 2px 2px;
}
.post-like-btn{
  display: flex; align-items: center; gap: 7px;
  border: none; background: none; cursor: pointer;
  color: var(--text2); font-size: 13px; font-weight: 700;
  padding: 8px 12px; border-radius: 12px;
  transition: var(--transition);
}
.post-like-btn:hover{ background: var(--hover); color: var(--text); }
.post-heart{ width: 24px; height: 24px; transition: transform .15s ease; }
.post-like-btn.liked{ color: #ff2d55; }
.post-like-btn.liked .post-heart{ fill: #ff2d55; stroke: #ff2d55; }
.post-like-btn.liking .post-heart{ animation: heartPop .3s ease; }
@keyframes heartPop{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.35); }
  100%{ transform: scale(1); }
}
.post-img{ position: relative; }
.post-heart-burst{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 5;
  animation: burstAnim .9s ease forwards;
}
.post-heart-burst svg{
  width: 110px; height: 110px;
  filter: drop-shadow(0 4px 18px rgba(255,45,85,.55));
  animation: burstScale .9s ease forwards;
}
@keyframes burstAnim{
  0%{ opacity: 0; }
  15%{ opacity: 1; }
  70%{ opacity: 1; }
  100%{ opacity: 0; }
}
@keyframes burstScale{
  0%{ transform: scale(.3); }
  30%{ transform: scale(1.15); }
  50%{ transform: scale(1); }
  100%{ transform: scale(1.05); }
}

/* ============================================================
   Post ardıcıllığı (pi.php feed — İnstagram üslubu)
   ============================================================ */
.post-feed{ max-width: 560px; margin: 0 auto; }
.post-item{
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.post-item .post-user{ padding-top: 0; }
.feed-loader{
  max-width: 560px; margin: 14px auto 0;
  text-align: center; color: var(--text2);
  font-size: 13px; font-weight: 600;
  padding: 6px 0 16px;
}
.feed-loader::before{
  content: ''; display: inline-block; vertical-align: -2px;
  width: 16px; height: 16px; margin-right: 8px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ============================================================
   SVG ikon ölçüləri (emoji əvəzləri)
   ============================================================ */
.profile-tab svg{ width: 22px; height: 22px; display: block; margin: 0 auto; }
.notif-icon svg{ width: 20px; height: 20px; }
.saved-art svg{ width: 26px; height: 26px; }
.img-share-card .img-share-plus-ic{ display: flex; }
.img-share-card .img-share-plus-ic svg{ width: 32px; height: 32px; }
.s-label svg{ width: 18px; height: 18px; flex-shrink: 0; }
.up-cover-prev svg{ width: 34px; height: 34px; }

/* ============================================================
   Boş hissələrdə arxa fona sayt loqosu (boş görünməsin)
   ============================================================ */
.saved-empty, .fl-empty, .feed-empty, .reviews-empty, .notif-empty {
  position: relative;
  background-image: url('../img/logo.png');
  background-repeat: no-repeat;
  background-position: center 26%;
  background-size: 88px auto;
  min-height: 180px;
}

/* ---------- Öz mahnı menyusu (⋮ → Redaktə et / Sil) ---------- */
.track-menu-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text3);
  transition: var(--transition);
  padding: 0;
  flex: none;
}
.track-menu-btn:hover { background: var(--hover); color: var(--text); }
.track-menu-btn svg { width: 17px; height: 17px; }

.track-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 70;
  min-width: 180px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  padding: 4px;
}
.track-menu[hidden] { display: none; }

.track-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.track-menu-item:hover { background: var(--hover); }
.track-menu-item svg { width: 16px; height: 16px; flex: none; }
.track-menu-item.danger { color: #ef4444; }
.track-menu-item.danger:hover { background: rgba(239, 68, 68, .12); }

.modal-text { font-size: 14px; color: var(--text2); line-height: 1.55; margin: 0 0 4px; }
.modal-save.danger { background: #ef4444; }
.modal-save.danger:hover { background: #dc2626; }

/* ---------- Crop şəbəkəsi (CSS overlay — export-a düşmür) ---------- */
.crop-grid{
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(to right, transparent calc(33.333% - .5px), rgba(255,255,255,.35) calc(33.333% - .5px), rgba(255,255,255,.35) calc(33.333% + .5px), transparent calc(33.333% + .5px)),
    linear-gradient(to right, transparent calc(66.666% - .5px), rgba(255,255,255,.35) calc(66.666% - .5px), rgba(255,255,255,.35) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    linear-gradient(to bottom, transparent calc(33.333% - .5px), rgba(255,255,255,.35) calc(33.333% - .5px), rgba(255,255,255,.35) calc(33.333% + .5px), transparent calc(33.333% + .5px)),
    linear-gradient(to bottom, transparent calc(66.666% - .5px), rgba(255,255,255,.35) calc(66.666% - .5px), rgba(255,255,255,.35) calc(66.666% + .5px), transparent calc(66.666% + .5px));
}

/* ---------- Yadda saxlanılanlar: yaddaşdan sil düyməsi ---------- */
.saved-save-btn{
  width: 34px; height: 34px; flex: none;
  border: none; background: transparent; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text3);
  transition: var(--transition); padding: 0;
}
.saved-save-btn:hover { background: var(--hover); color: var(--accent); }
.saved-save-btn svg { width: 17px; height: 17px; }
.saved-save-btn.saved { color: var(--accent); }
.saved-save-btn.saved svg { fill: var(--accent); stroke: var(--accent); }

/* ===== Rəy paneli — Instagram stili sheet (yarım ekran ⇄ tam ekran) ===== */
.reviews-sheet { position: fixed; inset: 0; z-index: 300; }
.reviews-sheet[hidden] { display: none; }
body.reviews-open { overflow: hidden; }
.reviews-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .3s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.reviews-sheet.open .reviews-sheet-backdrop { opacity: 1; }
.reviews-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 50dvh; max-height: 100dvh;
  background: var(--bg2);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  transform: translateY(105%);
  transition: transform .32s cubic-bezier(.32,.72,.28,1), height .28s ease, border-radius .28s ease;
  will-change: transform;
  overscroll-behavior: contain;
}
.reviews-sheet.open .reviews-sheet-panel { transform: translateY(0); }
.reviews-sheet.full .reviews-sheet-panel { height: 100dvh; border-radius: 0; }
.reviews-sheet-handle {
  flex: 0 0 auto;
  width: 40px; height: 4px; border-radius: 4px;
  background: var(--text3); opacity: .6;
  margin: 10px auto 2px;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.reviews-sheet-handle:active { cursor: grabbing; }
.reviews-sheet-head {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 8px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.reviews-sheet.full .reviews-sheet-head { padding-top: calc(10px + env(safe-area-inset-top)); }
.reviews-sheet-title { font-size: 15px; font-weight: 800; color: var(--text); }
.reviews-sheet-count { font-size: 13px; color: var(--text3); font-weight: 600; }
.reviews-sheet-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: var(--card); color: var(--text2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.reviews-sheet-close svg { width: 16px; height: 16px; }
.reviews-sheet-close:hover { color: var(--text); background: var(--border); }
.reviews-sheet .reviews-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 16px 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.reviews-sheet .reviews-form {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

/* Yeni söhbət açıqkən başlıq geri düyməsi kimi (iş 86) */
.inbox-title.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text);
}
.inbox-title.back svg { width: 20px; height: 20px; flex: none; }
.inbox-title.back:active { opacity: .7; }

/* İstifadəçi axtarışı (iş 88) */
.inbox-search-row { padding: 2px 4px 10px; }
.inbox-search {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px; border-radius: 12px;
  background: var(--bg2); color: var(--text2);
  font-size: 14px; font-weight: 600; border: none;
  cursor: pointer; transition: var(--transition);
}
.inbox-search:hover { background: var(--hover); color: var(--text); }
.inbox-search svg { width: 18px; height: 18px; flex: none; }

.user-search-box {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 4px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg2);
}
.user-search-box svg { width: 18px; height: 18px; color: var(--text2); flex: none; }
.user-search-box input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  color: var(--text); font-size: 15px;
}
.user-search-box input::placeholder { color: var(--text2); }

/* hidden atributu CSS display-i override etməsin (arxiv düyməsi gizlənməsi) */
.inbox-arch[hidden] { display: none !important; }
