/* ===== Account / Configuration ===== */
.acc-config {
  margin-bottom: calc(2 * var(--size));
  padding: calc(1.25 * var(--size));
  background: linear-gradient(180deg, rgba(255, 92, 138, 0.06), rgba(255, 92, 138, 0.015)), var(--gray);
  border: 1px solid rgba(255, 92, 138, 0.25);
  border-radius: 0.75rem;
}

.acc-config .entry-title {
  font-size: calc(1.5 * var(--f-size));
  font-weight: 700;
  color: #ff7ba6;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: calc(1 * var(--size));
}

.acc-cn {
  display: flex;
  flex-direction: column;
  gap: calc(1 * var(--size));
}

.acc-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--light-1);
  border-radius: 0.6rem;
  padding: calc(1 * var(--size));
}

.acc-t {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 calc(0.6 * var(--size));
  font-size: calc(1.05 * var(--f-size));
  font-weight: 700;
  color: #ff7ba6;
}

.acc-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(0.5 * var(--size));
}

.acc-form input[type="text"],
.acc-form input[type="email"],
.acc-form input[type="password"],
.acc-form input[type="file"] {
  color: var(--text);
  background: var(--gray-light);
  border: 1px solid var(--light-2);
  border-radius: 0.35rem;
  padding: calc(0.4 * var(--size)) calc(0.6 * var(--size));
}

.acc-form input[type="text"],
.acc-form input[type="email"],
.acc-form input[type="password"] {
  min-width: 0;
  flex: 1 1 200px;
}

.acc-msg {
  flex: 1 1 100%;
  font-size: calc(0.85 * var(--f-size));
}

.acc-msg.ok { color: var(--success); }
.acc-msg.err { color: var(--danger); }

.acc-av {
  width: 96px;
  height: 96px;
  margin-bottom: calc(0.6 * var(--size));
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 92, 138, 0.5);
}

.acc-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.acc-file input { display: none; }

.acc-file span {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(255, 92, 138, 0.14);
  color: #ff7ba6;
  border: 1px solid rgba(255, 92, 138, 0.45);
  border-radius: 999px;
  padding: calc(0.35 * var(--size)) calc(0.8 * var(--size));
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.acc-file span:hover {
  background: rgba(255, 92, 138, 0.25);
  color: #ffb3cc;
}

.acc-rm {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(255, 80, 80, 0.12);
  color: #ff7b7b;
  border: 1px solid rgba(255, 80, 80, 0.4);
  border-radius: 999px;
  padding: calc(0.35 * var(--size)) calc(0.8 * var(--size));
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.acc-rm:hover {
  background: rgba(255, 80, 80, 0.25);
  color: #ffb3b3;
}

.acc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acc-list li {
  padding: calc(0.5 * var(--size)) 0;
  border-bottom: 1px solid var(--light-1);
}

.acc-list li:last-child {
  border-bottom: none;
}

.acc-li {
  display: flex;
  align-items: flex-start;
  gap: calc(0.75 * var(--size));
}

.acc-av-min {
  flex: 0 0 auto;
}

.acc-av-min img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.acc-li-tx {
  flex: 1 1 auto;
  min-width: 0;
}

.acc-li-tx a {
  color: var(--text);
}

.acc-li-tx strong {
  display: block;
  font-size: calc(1.05 * var(--f-size));
  font-weight: 700;
  line-height: 1.25;
  color: #ff7ba6;
}

.acc-list p {
  margin: 0.15rem 0 0;
  font-size: var(--f-size);
}

.acc-hnt {
  margin-bottom: calc(1 * var(--size));
}
/* ===== Account / Configuration tabs ===== */
.acc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--light-1);
  border-radius: 0.7rem;
}
.acc-tab {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.55rem 0.9rem;
  border-radius: 0.45rem;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.acc-tab:hover { color: #ff7ba6; }
.acc-tab.on { background: #ff5c8a; color: #fff; }

.acc-panel { display: none; }
.acc-panel.on {
  display: flex;
  flex-direction: column;
  gap: calc(1 * var(--size));
}

/* ===== Profile cover header (config) ===== */
.acc-cover {
  position: relative;
  height: 12rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0.6rem;
  background: #151717;
  background-size: cover;
  background-position: center;
}
.acc-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7));
}
.acc-avatar-wrap {
  position: relative;
  z-index: 2;
  margin: 0 0 -1.5rem 1rem;
}
.acc-avatar-wrap img {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--gray-dark);
  border: 4px solid var(--gray);
}
.acc-id {
  position: relative;
  z-index: 2;
  margin: 0 1rem 0.7rem;
}
.acc-id-name {
  margin: 0;
  color: var(--light);
  font-size: 1.3rem;
}

/* ===== Points / ranks ===== */
.acc-pts .acc-t { margin-bottom: calc(0.8 * var(--size)); }
.pts-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.pts-xp {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffd700;
}
.pts-missing {
  font-size: 0.9rem;
  opacity: 0.95;
}
.pts-missing b { color: #ffd700; }
.pts-bar {
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--light-2);
  overflow: hidden;
}
.pts-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5c8a, #ffd700);
  transition: width 0.4s ease;
}
.pts-cur {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
.pts-ranks {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pts-ranks li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--light-2);
  border-radius: 999px;
  opacity: 0.55;
}
.pts-ranks li.on {
  opacity: 1;
  border-color: rgba(255, 215, 0, 0.7);
  background: rgba(255, 215, 0, 0.08);
}
.pts-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex: 0 0 auto;
}
.pts-ranks b { font-size: 0.8rem; white-space: nowrap; }
.pts-ranks span { font-size: 0.7rem; opacity: 0.7; white-space: nowrap; flex: 0 0 auto; }
.pts-how-t {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.95rem;
  color: #ff7ba6;
}
.pts-how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.5rem;
}
.pts-how li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--light-1);
  border-radius: 0.5rem;
  font-size: 0.88rem;
}
.pts-how b { color: #ffd700; flex: 0 0 auto; white-space: nowrap; }

/* ===== Public profile cover ===== */
.pf-cover {
  width: 100%;
  height: 8rem;
  background-size: cover;
  background-position: center;
  border-radius: 0.6rem 0.6rem 0 0;
}
.pf-avatar {
  position: relative;
  z-index: 2;
  width: 5rem;
  height: 5rem;
  margin: -2.5rem auto 0;
}
.pf-avatar img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray);
  display: block;
}

/* ===== Cropper modal ===== */
.tn-cropper-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
  padding: 1rem;
}
.tn-cropper-modal.open {
  opacity: 1;
  visibility: visible;
}
.tn-cropper-box {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: var(--gray-dark);
  border: 1px solid var(--light-2);
  border-radius: 0.8rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform .2s ease;
}
.tn-cropper-modal.open .tn-cropper-box {
  transform: scale(1) translateY(0);
}
.tn-cropper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--light-1);
}
.tn-cropper-header h4 { margin: 0; font-size: 1.1rem; color: var(--light); }
.tn-cropper-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .15s;
}
.tn-cropper-close:hover { opacity: 1; color: #ff5c8a; }

.tn-cropper-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 65vh;
  background: var(--gray);
}
.tn-cropper-body img { max-width: 100%; max-height: 100%; }

.tn-cropper-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--light-1);
}
.tn-cropper-cancel { background: transparent; border-color: var(--light-2); color: var(--text); }
.tn-cropper-cancel:hover { border-color: #ff5c8a; color: #ff5c8a; }

@media (max-width: 600px) {
  .tn-cropper-modal { padding: 0; align-items: flex-end; }
  .tn-cropper-box { max-height: 100vh; border-radius: 0.8rem 0.8rem 0 0; max-width: 100%; }
  .tn-cropper-body { min-height: 50vh; }
}