/* Nxt1Music — صفحات جانبی هماهنگ با اپ */
:root {
  --nx-orange: #FF5700;
  --nx-bg: #0b0b12;
  --nx-card: #161622;
  --nx-text: #f2f2f7;
  --nx-muted: #9a9aac;
  --nx-line: #2a2a38;
  --nx-input: #1c1c28;
}
[data-theme="light"], html[data-theme="light"] {
  --nx-bg: #f4f4f8;
  --nx-card: #ffffff;
  --nx-text: #1a1a22;
  --nx-muted: #6b6b7b;
  --nx-line: #e6e6ef;
  --nx-input: #f0f0f5;
}
.nx-page-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px 100px;
  min-height: 60vh;
}
.nx-page-wrap-wide { max-width: 720px; }
.nx-card-page {
  background: var(--nx-card);
  border: 1px solid var(--nx-line);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  color: var(--nx-text);
}
.nx-page-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #FF5700, #ff8a3d);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; margin-bottom: 16px;
}
.nx-page-title {
  font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; color: var(--nx-text);
}
.nx-page-sub { color: var(--nx-muted); font-size: .92rem; margin-bottom: 22px; line-height: 1.7; }
.nx-form .form-label { font-weight: 600; font-size: .88rem; color: var(--nx-muted); margin-bottom: 6px; }
.nx-form .form-control, .nx-card-page .form-control {
  background: var(--nx-input) !important;
  border: 1px solid var(--nx-line) !important;
  color: var(--nx-text) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  min-height: 48px;
}
.nx-form .form-control:focus {
  border-color: var(--nx-orange) !important;
  box-shadow: 0 0 0 3px rgba(255,87,0,.2) !important;
}
.btn-nx-submit, .nx-card-page .btn-warning, .nx-card-page .btn-primary {
  background: linear-gradient(135deg, #FF5700, #ff7a33) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  min-height: 50px;
}
.btn-nx-outline {
  background: transparent !important;
  border: 1px solid var(--nx-line) !important;
  color: var(--nx-text) !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
}
.nx-recipient { padding: 10px 12px; background: var(--nx-input); border-radius: 10px; color: var(--nx-muted); }
.nx-comment-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--nx-line);
}
.nx-comment-av {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  background: var(--nx-input); flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.nx-comment-av img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.nx-comment-letter { font-weight: 800; color: var(--nx-orange); font-size: 14px; }
.nx-comment-body { flex: 1; min-width: 0; }
.nx-comment-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.nx-comment-name { font-weight: 700; color: var(--nx-text); font-size: .92rem; }
.nx-comment-date { color: var(--nx-muted); font-size: .75rem; }
.nx-comment-text { color: var(--nx-text); font-size: .9rem; line-height: 1.7; word-break: break-word; }
.nx-comment-actions .btn-link { color: var(--nx-orange) !important; text-decoration: none; padding: 0; }
.nx-story-card {
  background: var(--nx-card); border: 1px solid var(--nx-line);
  border-radius: 16px; padding: 16px; margin-bottom: 12px; color: var(--nx-text);
}
.nx-story-card a { color: var(--nx-orange); text-decoration: none; font-weight: 700; }
.nx-user-hero {
  text-align: center; padding: 24px 16px;
}
.nx-user-hero img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--nx-orange); margin-bottom: 12px;
}
.nx-user-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 16px 0;
}
.nx-user-stat {
  background: var(--nx-input); border-radius: 12px; padding: 12px 8px; text-align: center;
}
.nx-user-stat b { display: block; font-size: 1.1rem; color: var(--nx-orange); }
.nx-user-stat span { font-size: .75rem; color: var(--nx-muted); }
.nx-info-list { list-style: none; padding: 0; margin: 0; }
.nx-info-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--nx-line);
  font-size: .9rem;
}
.nx-info-list li span:first-child { color: var(--nx-muted); }
.nx-nav-pages {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 16px;
}
.nx-nav-pages a, .nx-nav-pages span {
  min-width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nx-card); border: 1px solid var(--nx-line); color: var(--nx-text);
  text-decoration: none; font-weight: 600;
}
.nx-nav-pages .current, .nx-nav-pages span.nav_ext {
  background: var(--nx-orange); border-color: var(--nx-orange); color: #fff;
}
.nx-offline {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.nx-tag {
  display: inline-block; padding: 6px 12px; margin: 4px;
  background: var(--nx-input); border-radius: 999px; color: var(--nx-text);
  text-decoration: none; font-size: .85rem; border: 1px solid var(--nx-line);
}
.nx-tag:hover { border-color: var(--nx-orange); color: var(--nx-orange); }
