﻿.profile-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.profile-card {
  border: 1px solid rgba(var(--border-rgb), 0.4);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(var(--bg2-rgb), 0.55);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  box-shadow: 0 18px 34px rgba(3, 10, 25, 0.25);
}

.profile-card__cover {
  height: clamp(170px, 28vw, 260px);
  background:
    radial-gradient(440px 120px at -4% -20%, rgba(120, 224, 255, 0.2), transparent 65%),
    radial-gradient(360px 120px at 100% 0%, rgba(177, 230, 255, 0.24), transparent 70%),
    linear-gradient(135deg, #2796dd, #41b9f0 48%, #2ea3e5 100%);
}

.profile-card__body {
  position: relative;
  padding: 16px 18px 20px;
  display: grid;
  gap: 12px;
}

.profile-avatar {
  width: clamp(92px, 14vw, 118px);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 4px solid var(--bg2);
  background: linear-gradient(180deg, #0e4f90, #0b3f77);
  color: #d7ebff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(3, 10, 25, 0.35);
}

.profile-card__header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: calc(clamp(92px, 14vw, 118px) * -0.6);
  position: relative;
}

.profile-card__header .profile-info {
  flex: 1;
  min-width: 0;
}

.profile-card__header .profile-settings-btn {
  margin-left: auto;
  align-self: center;
}

.profile-avatar span {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  font-family: "Space Grotesk", "Sora", sans-serif;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.profile-info {
  display: grid;
}

.profile-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.profile-name i {
  font-size: clamp(18px, 2.2vw, 22px);
}

.profile-name__badge-gif {
  width: clamp(21px, 2.5vw, 26px);
  height: clamp(21px, 2.5vw, 26px);
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.profile-handle {
  color: var(--text-dim);
  font-family: "Nunito", sans-serif;
  font-size: 15px;
}

.profile-joined {
  color: var(--text-dim);
  font-size: 12px;
}

.profile-joined strong {
  color: var(--text-muted);
  font-weight: 600;
}

.profile-bio {
  color: var(--text-muted);
}

.profile-bio b, .profile-bio strong {
  color: var(--text);
  font-weight: 600;
}

.profile-bio i, .profile-bio em {
  font-style: italic;
}

.profile-bio a {
  color: var(--accent);
  text-decoration: none;
}

.profile-bio a:hover {
  text-decoration: underline;
}

.profile-bio code {
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

.profile-tagline {
  color: #4fc6fb;
  font-size: 13px;
}

.profile-menu {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.profile-settings-btn {
  position: absolute;
  right: 1px;
  top: calc(clamp(74px, 12vw, 94px) * -0.10);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(var(--bg-rgb), 0.76);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.profile-settings-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.profile-menu__item {
  border: 1px solid var(--border);
  background: rgba(var(--bg-rgb), 0.64);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 12px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 11px;
  font-family: "Nunito", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.profile-menu__item:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.profile-menu__item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-menu__item.is-active {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.14);
}

.profile-flash {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  transition: opacity 0.4s ease;
}

.profile-flash--error {
  border-color: rgba(255, 99, 132, 0.45);
  background: rgba(255, 99, 132, 0.08);
  color: var(--error-text);
}

.profile-flash--success {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.12);
  color: #a6eee7;
}

.profile-tab-panel {
  margin-top: 14px;
  display: none;
}

.profile-tab-panel.is-active {
  display: block;
}

.profile-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.profile-pane {
  border: 1px solid rgba(var(--border-rgb), 0.4);
  border-radius: 18px;
  background:
    radial-gradient(520px 180px at 0% -35%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    rgba(var(--bg2-rgb), 0.55);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  padding: 14px;
}

.profile-pane__title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: "Nunito", sans-serif;
  margin-bottom: 10px;
}

.profile-pane--stats {
  padding: 18px;
}

.profile-pane--stats .profile-pane__title {
  font-size: 15px;
}

.profile-mal-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(var(--bg-rgb), 0.62);
  padding: 14px 14px 12px;
  margin-bottom: 12px;
}

.profile-mal-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding: 8px 8px 10px;
  margin-bottom: 8px;
}

.profile-mal-block__head h3 {
  margin: 0;
  font-size: 15px;
}

.profile-mal-block__head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
}

.profile-mal-block__head strong {
  color: var(--text);
}

.profile-mal-block__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr;
  gap: 12px;
}

.profile-mal-days {
  margin: 0 4px 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.profile-mal-days strong {
  color: var(--text);
}

.profile-mal-days-bar {
  width: 100%;
  height: 10px;
  border-radius: 2px;
  background: rgba(var(--white-rgb), 0.16);
  overflow: hidden;
  margin: 0 4px 12px;
  display: flex;
}

.profile-mal-days-bar i {
  display: block;
  height: 100%;
}

.profile-mal-days-bar .status-dot--watching {
  background: #2cc56f;
}

.profile-mal-days-bar .status-dot--completed {
  background: var(--accent4);
}

.profile-mal-days-bar .status-dot--paused {
  background: #d9b74b;
}

.profile-mal-days-bar .status-dot--dropped {
  background: #cc4f58;
}

.profile-mal-days-bar .status-dot--planned {
  background: #8a8f9c;
}

.profile-mal-stats-list {
  display: grid;
  gap: 6px;
}

.profile-mal-stats-list p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(var(--white-rgb), 0.06);
  padding: 0 2px 4px;
  min-height: 28px;
  font-size: 12px;
}

.profile-mal-stats-list span {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-mal-stats-list strong {
  color: var(--text);
}

.profile-mal-updates h4 {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Nunito", sans-serif;
}

.profile-mal-update-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: start;
}

.profile-mal-update-item img {
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(var(--white-rgb), 0.05);
}

.profile-mal-update-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.25;
  display: block;
}

.profile-mal-update-item small {
  color: var(--text-dim);
  font-size: 11px;
}

.profile-mal-update-item time {
  color: var(--text-dim);
  font-size: 10px;
  font-family: "Nunito", sans-serif;
  white-space: nowrap;
  align-self: center;
}

.profile-mal-update-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--white-rgb), 0.1);
  overflow: hidden;
  margin-top: 5px;
}

.profile-mal-update-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent4), var(--accent));
}

.profile-mal-update-progress i.status-watching {
  background: #2cc56f;
}

.profile-mal-update-progress i.status-completed {
  background: var(--accent4);
}

.profile-mal-update-progress i.status-paused {
  background: #d9b74b;
}

.profile-mal-update-progress i.status-dropped {
  background: #cc4f58;
}

.profile-mal-update-progress i.status-planned {
  background: #8a8f9c;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.status-dot--watching {
  background: #2cc56f;
}

.status-dot--completed {
  background: var(--accent4);
}

.status-dot--paused {
  background: #d9b74b;
}

.status-dot--dropped {
  background: #cc4f58;
}

.status-dot--planned {
  background: #8a8f9c;
}

.profile-year-chart__subtitle {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.profile-year-chart__totals {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.profile-year-chart__totals strong {
  color: var(--text);
}

.profile-year-chart {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 30, 52, 0.72), rgba(11, 20, 36, 0.82));
  padding: 12px;
  display: grid;
  gap: 12px;
}

.profile-year-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-dim);
  font-size: 11px;
  font-family: "Nunito", sans-serif;
}

.profile-year-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot--progress {
  background: #9652ff;
}

.legend-dot--entries {
  background: #d9b74b;
}

.profile-year-chart__plot {
  min-height: 290px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(40px, 1fr);
  gap: 8px;
  align-items: end;
  overflow-x: auto;
  padding: 8px 4px 2px;
  border-top: 1px solid rgba(147, 164, 197, 0.22);
}

.profile-year-chart__col {
  display: grid;
  gap: 7px;
  justify-items: center;
}

.profile-year-chart__bars {
  width: 100%;
  height: 220px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
}

.profile-year-chart__bars i {
  width: 100%;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  display: block;
}

.profile-year-chart__bars .bar-progress {
  background: linear-gradient(180deg, #af7cff, #7f43df);
}

.profile-year-chart__bars .bar-entries {
  background: linear-gradient(180deg, #f0d66f, #c9a03c);
}

.profile-year-chart__labels {
  color: var(--text);
  font-size: 10px;
  font-family: "Nunito", sans-serif;
}

.profile-year-chart__meta {
  margin: 0;
  display: grid;
  justify-items: center;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.2;
}

.profile-year-chart__axis {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-dim);
  font-size: 10px;
  font-family: "Nunito", sans-serif;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.profile-stat-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  background: rgba(var(--bg-rgb), 0.62);
  display: grid;
  gap: 6px;
  box-shadow: 0 14px 28px rgba(2, 8, 20, 0.25);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.profile-stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-stat-card span {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Nunito", sans-serif;
}

.profile-stat-card strong {
  font-size: 24px;
  line-height: 1;
}

.profile-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.profile-chart-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: rgba(var(--bg-rgb), 0.62);
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 28px rgba(2, 8, 20, 0.25);
}

.profile-chart-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.profile-chart-card h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: "Nunito", sans-serif;
}

.profile-chart-card small {
  color: var(--text-dim);
  font-size: 11px;
}

.profile-split-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(var(--white-rgb), 0.06);
  display: flex;
}

.profile-split-bar i {
  display: block;
  height: 100%;
}

.profile-split-bar .is-anime {
  background: linear-gradient(90deg, #34b8f3, #4a97ff);
}

.profile-split-bar .is-manga {
  background: linear-gradient(90deg, #2fd6b2, #3fe0cc);
}

.profile-split-legend {
  display: grid;
  gap: 4px;
}

.profile-split-legend p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.profile-split-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.profile-split-legend .dot-anime {
  background: #43a9ff;
}

.profile-split-legend .dot-manga {
  background: #35d6c0;
}

.profile-status-chart {
  display: grid;
  gap: 8px;
}

.profile-status-row {
  display: grid;
  gap: 4px;
  padding: 4px 2px;
}

.profile-status-row__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.profile-status-row__meta strong {
  color: var(--text);
}

.profile-status-row__bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(var(--white-rgb), 0.08);
}

.profile-status-row__bar i {
  display: block;
  height: 100%;
}

.profile-status-row__bar .status-active {
  background: linear-gradient(90deg, #3ac5f6, #3ee2cf);
}

.profile-status-row__bar .status-completed {
  background: linear-gradient(90deg, #4eb6ff, #5f9dff);
}

.profile-status-row__bar .status-planned {
  background: linear-gradient(90deg, #8c7cff, #7d93ff);
}

.profile-status-row__bar .status-paused {
  background: linear-gradient(90deg, #ffaf57, #ffcd62);
}

.profile-status-row__bar .status-dropped {
  background: linear-gradient(90deg, #ff7f8f, #ff9a72);
}

.profile-status-row small {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.35;
}

.profile-goals-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-goal-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(var(--bg-rgb), 0.62);
  display: grid;
  gap: 6px;
  box-shadow: 0 14px 28px rgba(2, 8, 20, 0.25);
}

.profile-goal-card__label {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Nunito", sans-serif;
}

.profile-goal-card__value {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.profile-goal-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.profile-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-status-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px;
  background: rgba(var(--bg-rgb), 0.62);
  display: grid;
  gap: 6px;
  box-shadow: 0 14px 28px rgba(2, 8, 20, 0.25);
}

.profile-status-block h3 {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: "Nunito", sans-serif;
}

.profile-status-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-status-block strong {
  color: var(--text);
}

.profile-summary-note {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(var(--accent-rgb), 0.08);
}

.profile-summary-note p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
}

.profile-continue-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-continue-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(var(--bg-rgb), 0.62);
  display: grid;
  gap: 8px;
  box-shadow: 0 14px 28px rgba(2, 8, 20, 0.25);
}

.profile-continue-block h3 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: "Nunito", sans-serif;
}

.profile-continue-item {
  text-decoration: none;
  color: var(--text);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.profile-continue-item img {
  width: 42px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.profile-continue-item__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-continue-item__body strong {
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-continue-item__body span {
  color: var(--text-dim);
  font-size: 11px;
  font-family: "Nunito", sans-serif;
}

.profile-inline-progress {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--white-rgb), 0.08);
  overflow: hidden;
}

.profile-inline-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3ab7f3, #3b82f6);
}

.profile-inline-progress i.status-watching {
  background: #2cc56f;
}

.profile-inline-progress i.status-completed {
  background: var(--accent4);
}

.profile-inline-progress i.status-paused {
  background: #d9b74b;
}

.profile-inline-progress i.status-dropped {
  background: #cc4f58;
}

.profile-inline-progress i.status-planned {
  background: #8a8f9c;
}

.profile-activity-list {
  display: grid;
  gap: 8px;
}

.profile-activity-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 7px;
  background: rgba(var(--bg-rgb), 0.62);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 28px rgba(2, 8, 20, 0.25);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.profile-activity-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-activity-item img {
  width: 58px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.profile-activity-item__icon {
  width: 58px;
  height: 82px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(var(--accent-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-activity-item__icon--vip {
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.15), rgba(255, 165, 0, 0.1));
  border-color: rgba(var(--gold-rgb), 0.3);
  color: #ffd700;
}

.profile-activity-item__icon--vip_activated {
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.15), rgba(255, 165, 0, 0.1));
  border-color: rgba(var(--gold-rgb), 0.3);
  color: #ffd700;
}

.profile-activity-item__icon--blog_comment {
  background: rgba(var(--accent-rgb), 0.12);
  color: #4fc6fb;
}

.profile-activity-item__icon--blog_like {
  background: rgba(255, 100, 100, 0.12);
  color: #ff6b6b;
}

.profile-activity-item__icon--user_login {
  background: rgba(100, 200, 120, 0.12);
  color: #4ade80;
}

.profile-activity-item__icon--profile_update,
.profile-activity-item__icon--username_change,
.profile-activity-item__icon--bio_change {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.profile-activity-item__icon--*_list_delete {
  background: rgba(220, 53, 69, 0.12);
  color: #f87171;
}

.profile-activity-item__icon--*_favorite_toggle {
  background: rgba(255, 100, 130, 0.12);
  color: #ff6b8a;
}

.profile-activity-item__category {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  flex-shrink: 0;
}

.profile-activity-item__progress {
  display: inline-block;
  font-size: 11px;
  color: var(--text-dim);
  font-family: "Nunito", sans-serif;
}

.profile-activity-item__comment {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  margin: 2px 0 0;
  padding: 4px 8px;
  border-left: 2px solid var(--border);
  background: rgba(var(--bg-rgb), 0.4);
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.profile-activity-delete {
  opacity: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(220, 53, 69, 0.1);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 11px;
  transition: opacity 0.16s ease, background-color 0.16s ease;
  flex-shrink: 0;
}

.profile-activity-item:hover .profile-activity-delete {
  opacity: 1;
}

.profile-activity-delete:hover {
  background: rgba(220, 53, 69, 0.25);
}

.profile-activity-more {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.profile-activity-item p {
  color: var(--text);
  line-height: 1.4;
  font-size: 13px;
}

.profile-activity-item__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-activity-item__line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-activity-item__action {
  color: var(--text-dim);
}

.profile-activity-item__anime {
  color: #4fc6fb;
  text-decoration: none;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.profile-activity-item__anime:hover {
  text-decoration: underline;
}

.profile-activity-item small {
  color: var(--text-dim);
  font-size: 11px;
  font-family: "Nunito", sans-serif;
}

.profile-activity-item__engagement {
  margin-top: 2px;
  display: inline-flex;
  justify-self: end;
  gap: 10px;
  color: var(--text-dim);
  font-size: 11px;
  font-family: "Nunito", sans-serif;
}

.profile-activity-item__engagement span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


.profile-pane--favorite-group {
  margin-top: 14px;
}

.profile-pane--activities {
  margin-top: 14px;
}

.profile-favorite-row {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-template-rows: 1fr;
  grid-auto-columns: minmax(138px, 176px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 12px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.6) transparent;
}

.profile-favorite-row::-webkit-scrollbar {
  height: 6px;
}

.profile-favorite-row::-webkit-scrollbar-track {
  background: transparent;
}

.profile-favorite-row::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.45);
  border-radius: 999px;
}

.profile-favorite-item {
  text-decoration: none;
  color: var(--text);
  display: grid;
  gap: 7px;
  scroll-snap-align: start;
}

.profile-favorite-item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.profile-favorite-item:hover img {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.profile-favorite-item strong {
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.profile-favorite-item span {
  font-size: 11px;
  color: var(--text-dim);
}

.profile-pane--anime-list {
  margin-top: 14px;
  padding: 16px;
}

.profile-anime-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 14px;
}

.profile-anime-filters {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(var(--bg-rgb), 0.62);
  display: grid;
  gap: 12px;
  align-content: start;
  position: sticky;
  top: 12px;
}

.profile-anime-filters__field {
  display: grid;
  gap: 6px;
}

.profile-anime-filters__field span {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Nunito", sans-serif;
}

.profile-anime-filters__field input,
.profile-anime-filters__field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 12, 22, 0.9);
  color: var(--text);
  padding: 9px 10px;
  font-size: 13px;
}

.profile-anime-filters__field input:focus,
.profile-anime-filters__field select:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.8);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.16);
}

.profile-anime-filters__status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.profile-anime-status-btn {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 12, 22, 0.7);
  color: var(--text-dim);
  min-height: 36px;
  padding: 8px 8px;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-family: "Nunito", sans-serif;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.profile-anime-status-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.profile-anime-status-btn.is-active {
  border-color: rgba(var(--accent-rgb), 0.8);
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.14);
}

.profile-anime-results {
  display: grid;
  gap: 12px;
}

.profile-anime-results__meta {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  font-family: "Nunito", sans-serif;
}

.profile-anime-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(var(--bg-rgb), 0.5);
  box-shadow: 0 14px 28px rgba(2, 8, 20, 0.25);
}

.profile-anime-group.is-hidden {
  display: none;
}

.profile-anime-group header {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-anime-group h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Nunito", sans-serif;
}

.profile-anime-group small {
  color: var(--text-dim);
  font-size: 11px;
  font-family: "Nunito", sans-serif;
}

.profile-anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.profile-anime-card {
  text-decoration: none;
  color: var(--text);
  display: grid;
  gap: 6px;
}

.profile-anime-card--skeleton {
  pointer-events: none;
}

.profile-anime-card__skeleton-cover,
.profile-anime-card__skeleton-line {
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(var(--frost-rgb), 0.15);
  background: linear-gradient(110deg, rgba(var(--frost-rgb), 0.1) 8%, rgba(var(--frost-rgb), 0.2) 18%, rgba(var(--frost-rgb), 0.1) 33%);
  background-size: 220% 100%;
  animation: profileSkeleton 1.15s linear infinite;
}

.profile-anime-card__skeleton-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.profile-anime-card__skeleton-line {
  height: 12px;
}

.profile-anime-card__skeleton-line--short {
  width: 62%;
}

@keyframes profileSkeleton {
  to {
    background-position: -120% 0;
  }
}

.profile-anime-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.profile-anime-card:hover img {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.8);
}

.profile-anime-card__title {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.profile-anime-card__progress {
  margin: 0;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.2;
  font-family: "Nunito", sans-serif;
}

.profile-anime-empty {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  font-family: "Nunito", sans-serif;
}

.profile-empty-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  font-family: "Nunito", sans-serif;
}


/* Settings Modal */
.profile-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  pointer-events: none;
  overflow: hidden;
}

.profile-settings-modal.is-open {
  pointer-events: auto;
}

.profile-settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.profile-settings-modal.is-open .profile-settings-modal__backdrop {
  opacity: 1;
}

.profile-settings-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(440px, 92vw);
  max-height: 85vh;
  background: rgba(var(--bg2-rgb), 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 16px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  transform: translate(-50%, -48%) scale(0.96);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
  overflow: hidden;
}

.profile-settings-modal.is-open .profile-settings-modal__dialog {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.profile-settings-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 0;
}

.profile-settings-modal__head strong {
  font-size: 16px;
  font-family: "Space Grotesk", "Sora", sans-serif;
}

.profile-settings-modal__tabs {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-settings-modal__body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 0;
  align-content: start;
}

.profile-settings-tab {
  white-space: nowrap;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-family: "Nunito", sans-serif;
  letter-spacing: 0.04em;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.profile-settings-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.profile-settings-tab.is-active {
  border-color: rgba(var(--accent-rgb), 0.8);
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.14);
}

.profile-settings-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.profile-settings-close:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.profile-settings-form {
  display: grid;
  gap: 10px;
}

.profile-settings-field {
  display: grid;
  gap: 6px;
}

.profile-settings-field span {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Nunito", sans-serif;
}

.profile-settings-field input,
.profile-settings-field textarea,
.profile-settings-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  padding: 10px;
  font-size: 13px;
  font-family: "Sora", sans-serif;
}

.profile-settings-field textarea {
  min-height: 100px;
  resize: vertical;
}

.profile-settings-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

.profile-settings-upload {
  border: 1px dashed var(--border);
  border-radius: 9px;
  padding: 10px;
  background: rgba(6, 12, 22, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-settings-upload__btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(6, 12, 22, 0.85);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

.profile-settings-upload small {
  color: var(--text-dim);
  font-size: 11px;
  font-family: "Nunito", sans-serif;
}

.profile-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.profile-settings-action {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.profile-settings-action--primary {
  border-color: rgba(var(--accent-rgb), 0.8);
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--text);
}

.profile-settings-action--primary:hover {
  background: rgba(var(--accent-rgb), 0.28);
}

.profile-settings-action--danger {
  background: var(--danger);
  color: #fff;
  font-weight: 600;
}

.profile-settings-action--danger:hover {
  background: #dc2626;
  filter: brightness(1.15);
}

/* Danger zone — base in components.css */
.danger-zone {
  margin-top: 28px;
}

/* Settings groups (codes tab) */
.settings-group {
  display: grid;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.settings-group:last-child {
  border-bottom: none;
}

.settings-group--referral {
  padding-top: 18px;
}

.settings-group--vip-divider {
  padding: 18px 0 8px;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
  margin-top: 8px;
}

.settings-group--vip-divider .settings-group__title {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-group__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 4px;
}

.settings-group__desc {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.settings-group__msg {
  margin-top: 8px;
  font-size: 12px;
}

.settings-group__msg--error {
  color: var(--danger, #ff4d4d);
}

.settings-group__msg--success {
  color: #4caf50;
}

.settings-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.settings-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  padding: 9px 10px;
  font-size: 13px;
  font-family: "Sora", sans-serif;
}

.settings-input--readonly {
  font-size: 12px;
  cursor: default;
}

.settings-btn {
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  font-size: 12px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.settings-btn:hover {
  border-color: var(--border-hover);
}

.settings-btn--primary {
  border-color: rgba(var(--accent-rgb), 0.8);
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--text);
}

.settings-btn--primary:hover {
  background: rgba(var(--accent-rgb), 0.28);
}

.settings-referral-stats {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.settings-referral-stats i {
  margin-right: 4px;
  opacity: 0.6;
}

.invite-status__danger {
  background-color: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: rgba(220, 53, 69, 1) !important;
  border-radius: 8px;
  padding: 7px;
  margin-bottom: 12px;
}

body.profile-settings-open {
  overflow: hidden;
}

@media (max-width: 780px) {
  .profile-page {
    padding: 90px 10px 14px;
  }

  .profile-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .profile-pane {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(var(--bg2-rgb), 0.85) !important;
  }

  .profile-card__body {
    padding: 14px 14px 16px;
  }

  .profile-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
  }

  .profile-menu__item {
    margin-bottom: 4px;
  }

  .profile-overview__grid {
    grid-template-columns: 1fr;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-mal-block__grid {
    grid-template-columns: 1fr;
  }

  .profile-mal-update-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .profile-mal-update-item time {
    grid-column: 2;
  }

  .profile-insight-grid {
    grid-template-columns: 1fr;
  }

  .profile-goals-grid {
    grid-template-columns: 1fr;
  }

  .profile-year-chart__plot {
    min-height: 250px;
  }

  .profile-year-chart__bars {
    height: 190px;
  }

  .profile-year-chart__axis {
    flex-direction: column;
  }

  .profile-status-grid {
    grid-template-columns: 1fr;
  }

  .profile-continue-grid {
    grid-template-columns: 1fr;
  }

  .profile-favorite-row {
    grid-auto-columns: minmax(132px, 156px);
  }

  .profile-anime-layout {
    grid-template-columns: 1fr;
  }

  .profile-anime-filters {
    position: static;
  }

  .profile-anime-filters__status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .profile-page {
    padding: 90px 12px 10px;
  }

  .profile-card {
    border-radius: 14px;
  }

  .profile-card__cover {
    height: 160px;
  }

  .profile-avatar {
    border-radius: 14px;
  }

  .profile-pane {
    border-radius: 12px;
    padding: 11px;
  }

  .profile-settings-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .profile-year-chart__bars {
    height: 140px;
  }

  .profile-favorite-row {
    grid-auto-columns: minmax(126px, 146px);
  }

  .profile-pane--anime-list {
    padding: 12px;
  }

  .profile-anime-filters {
    padding: 10px;
  }

  .profile-anime-filters__status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-anime-status-btn {
    min-height: 34px;
    font-size: 9px;
  }

  .profile-anime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-settings-modal__dialog {
    width: 100%;
    max-height: 92vh;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    border-bottom: none;
  }

  .profile-settings-modal.is-open .profile-settings-modal__dialog {
    transform: translateY(0);
  }

  .profile-settings-modal__head {
    padding: 12px 14px 0;
  }

  .profile-settings-modal__head strong {
    font-size: 14px;
  }

  .profile-settings-modal__tabs {
    padding: 8px 14px;
    gap: 4px;
  }

  .profile-settings-modal__body {
    padding: 10px 14px 16px;
  }

  .profile-settings-tab {
    padding: 6px 10px;
    font-size: 11px;
  }

  .profile-settings-close {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .profile-settings-field input,
  .profile-settings-field select,
  .profile-settings-field textarea {
    font-size: 12px;
    padding: 8px 10px;
  }

  .profile-settings-form {
    gap: 8px;
  }
}

/* VIP Banner */
.profile-card__cover--vip {
  border-bottom: 3px solid rgba(var(--gold-rgb), 0.4);
}

/* Pinned Comment */
.profile-pinned-comment {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(var(--gold-rgb), 0.06);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  font-size: 13px;
  color: var(--text);
}

/* Settings Hints */
.profile-settings-hint {
  display: block;
  font-size: 11px;
  color: var(--muted, #888);
  margin-top: 4px;
}

/* Favorites Progress */
.profile-fav-progress {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface, #111);
  border: 1px solid var(--border, #222);
}

.profile-fav-progress__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text, #ccc);
}

.profile-fav-progress__warn {
  color: var(--warning);
  font-size: 12px;
}

.profile-fav-progress__bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(var(--white-rgb), 0.08);
  overflow: hidden;
}

.profile-fav-progress__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #0ff);
  transition: width 0.3s ease;
}

.profile-fav-progress__fill[style*="width: 100%"],
.profile-fav-progress__fill[style*="width:80"],
.profile-fav-progress__fill[style*="width: 9"] {
  background: linear-gradient(90deg, var(--danger), var(--warning));
}

/* VIP Favorites Variant */
.profile-fav-progress--vip {
  background: rgba(var(--gold-rgb), 0.06);
  border-color: rgba(var(--gold-rgb), 0.15);
}

.profile-fav-progress--vip .profile-fav-progress__info {
  margin-bottom: 0;
  color: var(--gold);
}

.profile-fav-progress--vip .profile-fav-progress__info strong {
  color: var(--gold);
}

/* Invite Code Delete Button */
.profile-vip-invite-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(var(--white-rgb), 0.03);
  border: 1px solid var(--border, #222);
  flex-wrap: wrap;
}

.profile-vip-invite-item code {
  font-family: monospace;
  font-size: 14px;
  color: var(--accent, #0ff);
  letter-spacing: 1px;
}

.profile-vip-invite-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.profile-vip-invite-delete:hover {
  opacity: 1;
  background: rgba(var(--danger-rgb), 0.1);
}

/* VIP Settings Panel Styling */
.settings-tab-panel .profile-settings-form {
  padding: 0;
}

.settings-tab-panel .profile-settings-field {
  display: block;
  margin-bottom: 16px;
}

.settings-tab-panel .profile-settings-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #ccc);
  margin-bottom: 6px;
}

.settings-tab-panel input[type="url"],
.settings-tab-panel input[type="text"],
.settings-input-row input[type="text"],
.settings-tab-panel select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #333) !important;
  background: var(--bg, #0a0a12);
  color: var(--text, #ccc);
  font-size: 14px;
}

.settings-tab-panel select {
  cursor: pointer;
}

.profile-vip-invite-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #222);
}

.profile-vip-invite-section h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text, #ccc);
}

.profile-vip-invite-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-vip-invite-item--used {
  opacity: 0.5;
}

.profile-vip-invite-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.profile-vip-invite-status--available {
  background: rgba(var(--success-rgb), 0.15);
  color: var(--success);
}

.profile-vip-invite-status--used {
  background: rgba(var(--white-rgb), 0.06);
  color: #888;
}


