:root {
  --purple-950: #1a0a2e;
  --purple-900: #2d1b4e;
  --purple-800: #3d2a6b;
  --purple-700: #5b3d8f;
  --purple-600: #7c4dcc;
  --purple-500: #9b6dff;
  --purple-400: #b794f6;
  --purple-300: #d4b8ff;
  --purple-100: #f3ebff;
  --text: #f5f0ff;
  --text-muted: #c4b5e8;
  --accent: #e879f9;
  --danger: #f87171;
  --success: #86efac;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, var(--purple-950) 0%, var(--purple-900) 40%, var(--purple-800) 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--purple-300);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.site-header {
  background: rgba(26, 10, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--purple-700);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  flex-shrink: 0;
  display: block;
}

.logo-text {
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links .user-name {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: var(--purple-800);
}

.user-name {
  color: var(--text-muted);
  font-size: 0.9rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.message {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--purple-800);
  border-left: 4px solid var(--purple-500);
}

.message.success {
  border-left-color: var(--success);
}

.message.error {
  border-left-color: var(--danger);
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.page-subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-bar input[type='text'] {
  flex: 1;
  min-width: 200px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 77, 204, 0.4);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 77, 204, 0.55);
}

.btn-secondary {
  background: var(--purple-800);
  color: var(--text);
  border: 1px solid var(--purple-600);
}

.btn-secondary:hover {
  color: var(--text);
  background: var(--purple-700);
}

.btn-danger {
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid var(--danger);
}

.btn-danger:hover {
  color: #fff;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.album-card {
  background: rgba(45, 27, 78, 0.7);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.album-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-500);
}

.album-card a {
  color: inherit;
  text-decoration: none;
}

.album-cover {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--purple-900);
}

.album-cover-placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-800);
  color: var(--text-muted);
  font-size: 3rem;
}

.album-card-body {
  padding: 1rem;
}

.album-card-rank {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-400);
  letter-spacing: 0.02em;
}

.album-card-body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--text);
}

.album-card-body .artist {
  margin: 0;
  color: var(--purple-400);
  font-size: 0.9rem;
}

.album-file-count {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(45, 27, 78, 0.5);
  border-radius: var(--radius);
  border: 1px dashed var(--purple-600);
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.album-detail {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .album-detail {
    grid-template-columns: 1fr;
  }
}

.album-detail-cover {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--purple-600);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.gallery-thumb {
  position: relative;
  padding: 0;
  border: 2px solid var(--purple-700);
  border-radius: var(--radius);
  background: var(--purple-900);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-thumb:hover {
  border-color: var(--purple-500);
  transform: scale(1.02);
}

.gallery-thumb.is-primary {
  border-color: var(--accent);
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-thumb.single {
  width: 100%;
  border: none;
  cursor: zoom-in;
}

.gallery-thumb.single img {
  aspect-ratio: auto;
  max-height: 480px;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem;
  font-size: 0.7rem;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--purple-300);
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-thumb:hover .gallery-zoom-hint {
  opacity: 1;
}

.photo-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--purple-600);
  color: #fff;
  border-radius: 6px;
  z-index: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 5, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-content {
  max-width: min(95vw, 1100px);
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox-caption {
  margin-top: 0.75rem;
  color: var(--purple-300);
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
}

.lightbox-close:hover {
  opacity: 1;
  color: var(--accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(45, 27, 78, 0.8);
  border: 1px solid var(--purple-600);
  color: var(--text);
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--purple-600);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* Edit page */
.section-title {
  margin: 2rem 0 1rem;
  font-size: 1.15rem;
  color: var(--purple-300);
}

.photo-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.photo-edit-item {
  background: var(--purple-900);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  padding: 0.5rem;
}

.photo-edit-item.is-primary {
  border-color: var(--accent);
}

.photo-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}

.photo-thumb-btn img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.photo-edit-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.photo-rotate-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.photo-rotate-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 0.15rem;
}

.photo-rotate-group form {
  margin: 0;
  flex: 1;
  min-width: 2.5rem;
}

.btn-rotate {
  min-width: 2.75rem;
  padding: 0.3rem 0.4rem;
}

.photo-move-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--purple-700);
}

.photo-move-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.photo-move-select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--purple-600);
  border-radius: 6px;
  background: var(--purple-950);
  color: var(--text);
  font-size: 0.8rem;
  font-family: inherit;
}

.photo-move-select:focus {
  outline: none;
  border-color: var(--purple-500);
}

.photo-move-or {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.photo-move-input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--purple-600);
  border-radius: 6px;
  background: var(--purple-950);
  color: var(--text);
  font-size: 0.8rem;
  font-family: inherit;
}

.photo-move-input:focus {
  outline: none;
  border-color: var(--purple-500);
}

.photo-move-input::placeholder {
  color: var(--text-muted);
}

.photo-edit-actions form {
  margin: 0;
}

.btn-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  width: 100%;
}

.album-card-footer {
  padding: 0 1rem 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.album-detail-meta h1 {
  margin: 0 0 0.25rem;
  font-size: 1.85rem;
}

.album-detail-meta .artist {
  font-size: 1.2rem;
  color: var(--purple-400);
  margin: 0 0 1rem;
}

.album-description {
  background: rgba(45, 27, 78, 0.6);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--purple-700);
  white-space: pre-wrap;
}

.album-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.meta-small {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.card,
.form-card {
  background: rgba(45, 27, 78, 0.75);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.form-card.wide {
  max-width: 560px;
}

.form-card.edit-card {
  max-width: 720px;
}

.album-danger-zone {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--purple-700);
}

.album-danger-zone .section-title {
  color: #f0a8a8;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--purple-300);
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='password'],
.form-group input[type='file'],
.form-group textarea,
.search-bar input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--purple-600);
  border-radius: 8px;
  background: var(--purple-950);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.search-bar input:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(124, 77, 204, 0.25);
}

.form-group .helptext,
.form-group .errorlist {
  font-size: 0.85rem;
  margin-top: 0.35rem;
  list-style: none;
  padding: 0;
}

.form-group .errorlist {
  color: var(--danger);
}

.form-group .helptext {
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--purple-800);
}

/* Groups */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--purple-300);
}

.breadcrumb-sep {
  margin: 0 0.35rem;
}

.artist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.artist-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(45, 27, 78, 0.7);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.artist-list-link:hover {
  border-color: var(--purple-500);
  background: rgba(91, 61, 143, 0.35);
  transform: translateX(4px);
  color: var(--text);
}

.artist-list-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--purple-300);
}

.artist-list-link:hover .artist-list-name {
  color: var(--accent);
}

.artist-list-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Wishlist */
.wishlist-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--purple-700);
  background: rgba(45, 27, 78, 0.6);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--purple-700);
}

.data-table th {
  background: rgba(26, 10, 46, 0.6);
  color: var(--purple-300);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: rgba(91, 61, 143, 0.2);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.col-artist {
  font-weight: 600;
  color: var(--purple-400);
  min-width: 120px;
}

.col-title {
  min-width: 140px;
}

.col-note {
  max-width: 280px;
  white-space: pre-wrap;
  color: var(--text-muted);
}

.col-photo {
  width: 100px;
}

.col-actions {
  white-space: nowrap;
  width: 1%;
}

.col-actions .btn {
  margin-right: 0.35rem;
  margin-bottom: 0.25rem;
}

.wishlist-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--purple-600);
  display: block;
}

.wishlist-photo-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
}

.wishlist-photo-btn:hover .wishlist-thumb {
  border-color: var(--accent);
}

.wishlist-form-preview {
  max-width: 160px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.5rem;
  border: 1px solid var(--purple-600);
}

.no-photo,
.text-muted {
  color: var(--text-muted);
}

.user-badge {
  font-size: 0.7rem;
  color: var(--purple-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-activation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-activation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(45, 27, 78, 0.7);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
}

@media (max-width: 700px) {
  .data-table th,
  .data-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
  }

  .col-actions .btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .user-activation-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .feed-layout {
    grid-template-columns: 1fr;
  }

  .feed-sidebar {
    order: 2;
  }
}

/* Social network */
.feed-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5rem;
}

.sidebar-card {
  background: rgba(45, 27, 78, 0.75);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sidebar-title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--purple-300);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.sidebar-profile:hover {
  color: var(--accent);
}

.sidebar-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.sidebar-stats a {
  display: flex;
  flex-direction: column;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sidebar-stats strong {
  font-size: 1.1rem;
  color: var(--text);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--purple-300);
}

.sidebar-nav a:hover {
  background: var(--purple-800);
  color: var(--accent);
}

.wide-card {
  max-width: none;
}

.card {
  background: rgba(45, 27, 78, 0.75);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.post-composer textarea,
.post-composer select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--purple-600);
  border-radius: 8px;
  background: var(--purple-950);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  margin-top: 0.75rem;
}

.composer-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.composer-footer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feed-item {
  background: rgba(45, 27, 78, 0.75);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.feed-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.feed-item-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.feed-item-author:hover strong {
  color: var(--accent);
}

.feed-item-author time {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: normal;
}

.feed-post-text {
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
}

.feed-action-label {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feed-album-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(26, 10, 46, 0.5);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s;
}

.feed-album-preview:hover {
  border-color: var(--purple-500);
  color: var(--text);
}

.feed-album-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.feed-album-preview-large img,
.feed-album-preview-large .album-cover-placeholder {
  width: 120px;
  height: 120px;
}

.feed-album-preview .artist {
  display: block;
  font-size: 0.85rem;
  color: var(--purple-400);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--purple-700);
  border: 2px solid var(--purple-500);
  font-weight: 700;
  color: var(--purple-100);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.avatar-md {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 1.75rem;
}

.nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
}

.nav-profile:hover {
  background: var(--purple-800);
  color: var(--text);
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.user-card {
  background: rgba(45, 27, 78, 0.75);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.user-card:hover {
  border-color: var(--purple-500);
  transform: translateY(-2px);
}

.user-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  gap: 0.5rem;
}

.user-card-link h2 {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
}

.user-card-city,
.user-card-genre {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.user-card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--purple-400);
}

.profile-header {
  margin-bottom: 2rem;
}

.profile-header-main {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-header-info {
  flex: 1;
  min-width: 200px;
}

.profile-meta {
  color: var(--text-muted);
  margin: 0.5rem 0;
}

.profile-bio {
  margin: 1rem 0;
  white-space: pre-wrap;
  max-width: 600px;
}

.profile-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  color: var(--text-muted);
}

.profile-stats strong {
  color: var(--text);
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.profile-section {
  margin-bottom: 2.5rem;
}

.social-actions {
  margin: 1.25rem 0;
}

.like-btn {
  font-size: 1rem;
}

.comments-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--purple-700);
}

.comment-form {
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.comment-body {
  flex: 1;
  background: rgba(45, 27, 78, 0.5);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.comment-header time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-header p {
  margin: 0;
}

.comment-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.25rem;
}

.comment-delete:hover {
  color: var(--danger);
}

.form-card.wide {
  max-width: 560px;
}

/* Notifications, messages, ratings */
.nav-badge-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--purple-950);
  font-size: 0.7rem;
  font-weight: 700;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.notification-form {
  margin: 0;
}

.notification-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  background: rgba(45, 27, 78, 0.6);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.notification-btn:hover {
  border-color: var(--purple-500);
  background: rgba(91, 61, 143, 0.35);
}

.notification-unread .notification-btn {
  border-color: var(--purple-500);
  background: rgba(91, 61, 143, 0.25);
}

.notification-body {
  flex: 1;
}

.notification-body p {
  margin: 0 0 0.25rem;
}

.notification-body time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.conversation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.conversation-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(45, 27, 78, 0.75);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s;
}

.conversation-link:hover {
  border-color: var(--purple-500);
  color: var(--text);
}

.conversation-unread {
  border-color: var(--purple-500);
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-info strong {
  display: block;
}

.conversation-preview {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-info time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--purple-950);
  font-size: 0.75rem;
  font-weight: 700;
}

.chat-container {
  max-width: 720px;
  padding: 0;
  overflow: hidden;
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--purple-700);
}

.chat-header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.chat-header-user:hover {
  color: var(--accent);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  max-height: 480px;
  overflow-y: auto;
  min-height: 200px;
}

.chat-empty {
  text-align: center;
  margin: auto;
}

.chat-bubble {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--purple-700);
}

.chat-bubble p {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
}

.chat-bubble time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-bubble-own {
  align-self: flex-end;
  background: rgba(124, 77, 204, 0.35);
  border-color: var(--purple-500);
}

.chat-bubble-other {
  align-self: flex-start;
  background: rgba(26, 10, 46, 0.5);
}

.chat-compose {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--purple-700);
  align-items: flex-end;
}

.chat-compose textarea,
.message-input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--purple-600);
  border-radius: 8px;
  background: var(--purple-950);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.rating-section {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(45, 27, 78, 0.5);
  border: 1px solid var(--purple-700);
  border-radius: var(--radius);
}

.rating-summary {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rating-stars-display {
  color: #fbbf24;
  letter-spacing: 0.05em;
}

.rating-form {
  margin-bottom: 1.25rem;
}

.rating-form-label {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--purple-300);
}

.rating-stars-input {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.star-label {
  cursor: pointer;
}

.star-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.star-label span {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--purple-600);
  border-radius: 8px;
  background: var(--purple-950);
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.star-label input:checked + span,
.star-label:hover span {
  border-color: #fbbf24;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.rating-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rating-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  background: rgba(26, 10, 46, 0.4);
  border-radius: var(--radius);
}

.rating-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.rating-item-header time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating-review {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.user-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
