/* ========== User Profile ========== */
.profile-page.container {
  max-width: 1600px;
    margin: 20px;
  padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #ddd;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.profile-data .username {
  margin: 0;
  font-size: 1.8rem;
  color: #333;
}
span.role-badge {
    font-size: 14px;
    color: #E91E63;
}
.profile-data .user-role {
  font-size: 0.95rem;
  color: #888;
}

.profile-data .user-bio {
  font-size: 1rem;
  color: #555;
  margin-top: 5px;
}

.profile-actions .settings-btn {
  background-color: #784ba0;
  color: #fff;
  padding: 10px 16px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.profile-actions .settings-btn:hover {
  background-color: #5e3b91;
}

/* ===== Profile Body ===== */
.profile-body {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.profile-sidebar {
  flex: 1 1 300px;
  max-width: 300px;
}

.profile-box {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px dashed #b8b8b8;
}

.profile-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: #784ba0;
  margin-bottom: 12px;
}

.profile-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #555;
}

.profile-box ul li {
  margin-bottom: 8px;
}

.profile-content {
  flex: 2 1 650px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 16px;
  background-color: #e7e7e7;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s;
}

.tab:hover {
  background-color: #d4d4d4;
}

.tab.active {
  background-color: #784ba0;
  color: #fff;
}
button.tab.active svg {
    fill: #fff;
}
.tab-content {
  background-color: #fff;
  padding: 0 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .profile-body {
    flex-direction: column;
  }

  .profile-sidebar, .profile-content {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .tabs {
    justify-content: center;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  padding: 10px 15px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.breadcrumbs a {
  color: #784ba0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumbs .breadcrumb-separator {
  color: #aaa;
}
.followers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.follower {
  display: flex;
  align-items: center;
  background-color: #f3f3f3;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.follower:hover {
  background-color: #eaeaea;
}

.follower-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
}

.follower-name {
  font-weight: 500;
  color: #333;
  text-decoration: none;
}
.show-all-btn {
  margin-top: 12px;
  padding: 8px 14px;
  background-color: #784ba0;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.show-all-btn:hover {
  background-color: #1b5dbf;
}

/* Modal Window */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 80px auto;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.close-btn {
  float: right;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.close-btn:hover {
  color: #e74c3c;
}

.all-followers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.all-followers-list .follower {
  flex: 1 1 45%;
  background-color: #f3f3f3;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.all-followers-list .follower-avatar {
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}
.online-offline.online {
display: inline-block;
    font-size: 14px;
    background: #4CAF50;
    padding: 4px 15px;
    border-radius: 6px;
    color: #fff;
    margin-top: 10px;
}
.online-offline.offline {
    display: inline-block;
    font-size: 14px;
    background: red;
    padding: 4px 15px;
    border-radius: 6px;
    color: #fff;
    margin-top: 10px;
}
.user-date {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f9f9f9;
    padding: 10px 16px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
    color: #333;
}

.user-date span {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.user-date span::before {
  content: "";
  width: 1px;
  height: 16px;
  background-color: #ccc;
}

.user-date span:first-child::before {
  content: none;
}
ul.user-stats li {
    padding: 5px 0;
    margin: 5px 0;
    border-bottom: 1px dashed #dadada;
}
.auth-form {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-family: Arial, sans-serif;
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 22px;
  color: #333;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #444;
}

.form-control {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  background-color: #fdfdfd;
  transition: border 0.2s;
}

.form-control:hover,
.form-control:focus-within {
  border-color: #888;
}

.form-control svg {
  width: 18px;
  height: 18px;
  color: #777;
  margin-right: 8px;
  flex-shrink: 0;
}

.form-control input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background-color: transparent;
  color: #333;
}

.checkbox-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
  color: #444;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkbox-group a {
  text-decoration: none;
  color: #5a4fcf;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.checkbox-group a:hover {
  color: #3e35a0;
}

.checkbox-group a svg {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.auth-button {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 6px;
  background-color: #784ba0;
  color: white;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.auth-button:hover {
  background-color: #473fb2;
}

.auth-button svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.register-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.register-link a {
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.register-link a:hover {
  color: #3e35a0;
}

.register-link svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}
.rnews-btn-follow {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  border:2px solid grey;
  background: #fff !important;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(107, 70, 193, 0.4);
}

.rnews-btn-follow:hover {
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.5);
}

.rnews-btn-follow:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
}

.rnews-btn-follow:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.user-settings {
    margin-bottom: 35px;
}
.news-card.user-news-card {
    margin: 10px;
}
.news-image-container.user-news-image-container img {
    height: 100%;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}
.topics-list {
width: 100%;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  color: #333;
}

.topics-list h2 {
  margin-bottom: 15px;
  font-size: 24px;
  border-bottom: 2px solid #007BFF;
  padding-bottom: 8px;
}

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

.topic-item {
padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: background-color 0.2s ease;
}

.topic-item:hover {
  background-color: #f0f8ff;
}

.topic-title {
    font-weight: 600;
    font-size: 18px;
    color: #464646;
    text-decoration: none;
    margin-bottom: 20px;
}

.topic-title:hover {
  text-decoration: underline;
}

.topic-info {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 20px;
}

.messages-count,
.topic-create-date, .topic-category {
  white-space: nowrap;
}
.comments-list.u {
    width: 100%;
}
.comment.u {
    width: 100%;
}
    .container {
      max-width: 900px;
      margin: 40px auto;
      padding: 30px;
      background-color: #fff;
    }

    h1 {
      text-align: center;
      margin-bottom: 30px;
      font-size: 28px;
    }

    h2 {
      margin-top: 40px;
      margin-bottom: 20px;
      font-size: 22px;
      color: #444;
    }

.form-group {
    margin: 20px;
}

    label {
      display: block;
      margin-bottom: 6px;
      font-weight: 500;
    }

    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    textarea,
    input[type="file"] {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 15px;
    }

    textarea {
      resize: vertical;
      min-height: 80px;
    }

    .grid-2 {
      gap: 20px;
    }

    .submit-btn {
      margin-top: 30px;
      display: block;
      width: 100%;
      padding: 12px;
      font-size: 16px;
      background-color: #28a745;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .submit-btn:hover {
      background-color: #218838;
    }
     .title {
            font-size: 2rem;
            font-weight: bold;
            color: #1f2937;
            margin-bottom: 8px;
        }

        .subtitle {
            color: #6b7280;
            margin-bottom: 32px;
        }

        .upload-area {
            position: relative;
            border: 2px dashed #d1d5db;
            border-radius: 16px;
            padding: 32px;
            background: white;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
        }

        .upload-area:hover {
            border-color: #8b5cf6;
            background: #faf5ff;
            transform: scale(1.02);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        .upload-area.drag-active {
            border-color: #8b5cf6;
            background: #f3e8ff;
            transform: scale(1.05);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        .upload-area.has-image {
            border-color: #10b981;
            background: #ecfdf5;
        }

        .file-input {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
        }

        .avatar-preview {
            width: 185px;
            height: 185px;
            background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden; 
            margin: 0 auto 16px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            position: relative;
        }

        .avatar-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .avatar-placeholder {
            width: 100%;
            height: 100%;
            background: #f3f4f6;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px dashed #d1d5db;
        }

        .avatar-placeholder svg {
            width: 32px;
            height: 32px;
            color: #9ca3af;
        }

        .upload-icon {
            width: 32px;
            height: 32px;
            color: #9ca3af;
            margin-bottom: 16px;
            transition: all 0.3s ease;
        }

        .upload-area:hover .upload-icon,
        .upload-area.drag-active .upload-icon {
            color: #8b5cf6;
            transform: translateY(-2px);
        }

        .upload-area.has-image .upload-icon {
            color: #10b981;
        }

        .upload-title {
            font-size: 1.125rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 4px;
            transition: color 0.3s ease;
        }

        .upload-area:hover .upload-title,
        .upload-area.drag-active .upload-title {
            color: #7c3aed;
        }

        .upload-area.has-image .upload-title {
            color: #059669;
        }

        .upload-subtitle {
            font-size: 0.875rem;
            color: #6b7280;
            transition: color 0.3s ease;
        }

        .upload-area:hover .upload-subtitle,
        .upload-area.drag-active .upload-subtitle {
            color: #8b5cf6;
        }

        .upload-area.has-image .upload-subtitle {
            color: #10b981;
        }

        .file-info {
            font-size: 0.75rem;
            color: #9ca3af;
            margin-top: 16px;
        }

        .success-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            width: 24px;
            height: 24px;
            background: #10b981;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s ease;
        }

        .success-badge.show {
            opacity: 1;
            transform: scale(1);
        }

        .success-badge svg {
            width: 12px;
            height: 12px;
            color: white;
        }

        .remove-btn {
            position: absolute;
            top: -8px;
            left: -8px;
            width: 24px;
            height: 24px;
            background: #ef4444;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transform: scale(0);
            transition: all 0.3s ease;
        }

        .avatar-preview:hover .remove-btn {
            opacity: 1;
            transform: scale(1);
        }

        .remove-btn:hover {
            background: #dc2626;
        }

        .remove-btn svg {
            width: 12px;
            height: 12px;
            color: white;
        }

        .action-buttons {
            margin-top: 24px;
            display: flex;
            gap: 12px;
            justify-content: center;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
        }

        .action-buttons.show {
            opacity: 1;
            transform: translateY(0);
        }

        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-primary {
            background: #8b5cf6;
            color: white;
        }

        .btn-primary:hover {
            background: #7c3aed;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        }

        .btn-secondary {
            background: #6b7280;
            color: white;
        }

        .btn-secondary:hover {
            background: #4b5563;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
        }

        @keyframes bounce {
            0%, 20%, 53%, 80%, 100% {
                transform: translate3d(0,0,0);
            }
            40%, 43% {
                transform: translate3d(0,-8px,0);
            }
            70% {
                transform: translate3d(0,-4px,0);
            }
            90% {
                transform: translate3d(0,-2px,0);
            }
        }

        .upload-area.drag-active .upload-icon {
            animation: bounce 1s ease-in-out;
        }
        .form-group.avatar {
    width: 100%;
    height: 100%;
    border:0;
}
    .messages-page {
      flex: 1;
      display: flex;
      height: calc(100vh - 60px);
      box-shadow: 0 0 15px rgb(120 75 160 / 0.1);
      background: #fff;
      border-radius: 8px;
      overflow: hidden;
      margin: 20px auto;
      width: 100%;
    }

    .dialogs-list {
      width: 320px;
      border-right: 1px solid #ddd;
      background: #f9f9f9;
      overflow-y: auto;
      position: relative;
    }

    .dialogs-list::-webkit-scrollbar {
      width: 8px;
    }
    .dialogs-list::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 4px;
    }

    .chat-item {
      display: flex;
      align-items: center;
      padding: 12px 15px;
      cursor: pointer;
      position: relative;
      border-bottom: 1px solid #e5e5e5;
      transition: background-color 0.2s ease;
    }
    .chat-item:hover {
      background-color: #eee6f7;
    }
    .chat-item.active {
      background-color: #d6b9e7;
      font-weight: 600;
      color: #4b2a6b;
    }

    .chat-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 12px;
      flex-shrink: 0;
      border: 2px solid transparent;
    }

    .chat-item.active .chat-avatar {
      border-color: #784ba0;
    }

    .chat-info {
      flex: 1;
      overflow: hidden;
    }

    .chat-name {
      font-size: 16px;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chat-last-message {
      font-size: 14px;
      color: #6a4f90;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chat-timestamp {
      font-size: 12px;
      color: #9e7ccf;
      margin-left: 10px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .chat-delete-btn {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: transparent;
      border: none;
      cursor: pointer;
      color: #784ba0;
      font-size: 20px;
      opacity: 0.6;
      transition: opacity 0.2s ease;
      padding: 0;
      line-height: 1;
      z-index: 2;
    }
    .chat-delete-btn:hover {
      opacity: 1;
    }

    .chat-section {
      flex: 1;
      display: flex;
      flex-direction: column;
      background: #fff;
      position: relative;
    }

    .chat-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 20px;
      border-bottom: 1px solid #ddd;
      background: #f5f0fa;
      font-weight: 700;
      font-size: 18px;
      color: #5a3a86;
      position: relative;
    }

    .chat-header .chat-header-title {
      display: flex;
      align-items: center;
    }

    .chat-header .chat-header-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 12px;
      border: 2px solid #784ba0;
    }

    .chat-delete-chat-btn {
      background: transparent;
      border: none;
      cursor: pointer;
      color: #784ba0;
      font-size: 22px;
      opacity: 0.6;
      transition: opacity 0.2s ease;
      padding: 0;
      line-height: 1;
    }
    .chat-delete-chat-btn:hover {
      opacity: 1;
    }

    /* Messages */
    .chat-messages {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
      background-color: #fff;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .chat-messages::-webkit-scrollbar {
      width: 8px;
    }
    .chat-messages::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 4px;
    }

    /* Sent and received message are different styles */
    .message {
      display: flex;
      align-items: flex-start;
      max-width: 70%;
      gap: 12px;
    }

    /* Another user's message is on the left */
    .message.incoming {
      flex-direction: row;
      align-self: flex-start;
    }
    /* Your message is on the right */
    .message.outgoing {
      flex-direction: row-reverse;
      align-self: flex-end;
    }

    .message img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .message-content {
      background-color: #f1e9f9;
      padding: 10px 16px;
      border-radius: 18px;
      font-size: 14px;
      position: relative;
      word-wrap: break-word;
      color: #4b2a6b;
    }

    .message.outgoing .message-content {
      background-color: #d5b9ef;
      color: #3a1e59;
    }

    /* Scroll bar for messages */
    .chat-messages {
      scrollbar-width: thin;
      scrollbar-color: #b19cd9 transparent;
    }

    /* Input field */
    .message-input {
      display: flex;
      padding: 15px 20px;
      border-top: 1px solid #ddd;
      background: #f5f0fa;
      gap: 12px;
    }

    .message-input input {
      flex: 1;
      padding: 12px 18px;
      border: 1px solid #b39dda;
      border-radius: 25px;
      outline: none;
      font-size: 14px;
      color: #4b2a6b;
      background: #fff;
      transition: border-color 0.3s ease;
    }

    .message-input input:focus {
      border-color: #784ba0;
      box-shadow: 0 0 8px #a084d6;
    }

    .message-input button {
      background-color: #784ba0;
      border: none;
      color: #fff;
      font-weight: 600;
      font-size: 14px;
      padding: 0 20px;
      border-radius: 25px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    .message-input button:hover {
      background-color: #5d3680;
    }

    /* Basement */
    footer.footer {
      text-align: center;
      padding: 15px 10px;
      background: #f5f0fa;
      font-size: 14px;
      color: #784ba0;
      box-shadow: inset 0 1px 0 #c9b9e3;
    }
      .modal-msg {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-content {
    background: white;
    border-radius: 6px;
    max-width: 400px;
    width: 90%;
    padding: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  .close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
  }
  label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
  }
  input[type="text"], textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
  }
  button.btn {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    border-radius: 4px;
    border: none;
  }
  .btn-primary {
    background-color: #9054c5;
    color: white;
    max-width: 150px;
  }
  .btn-success {
    background-color: #28a745;
    color: white;
  }
  .error-message {
    color: red;
    margin-top: 10px;
  }

  /* Autocomplete styles */
  .autocomplete-list {
    list-style: none;
    padding-left: 0;
    margin-top: 2px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: white;
    position: absolute;
    width: calc(100% - 22px);
    z-index: 10000;
  }
  .autocomplete-list li {
    padding: 7px 10px;
    cursor: pointer;
  }
  .autocomplete-list li:hover, .autocomplete-list li.active {
    background-color: #007bff;
    color: white;
  }

  /* Wrapper for position relative around the innput and the list */
  #receiver_nickname {
    position: relative;
    z-index: 10001;
  }
  #nicknameList {
    position: absolute;
    left: 0;
    top: 100%;
    box-sizing: border-box;
  }
  p.no-msg {
    background: #f4f4f4;
    padding: 20px;
    margin: 50px;
    border-radius: 50px;
    text-align: center;
}
.profile-social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: 500px;
}

.profile-social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9f9f9;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.profile-icon-wrapper {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.profile-social-item a {
  font-weight: bold;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.profile-social-item a:hover {
  color: #1a73e8;
}

/* Platform-specific colors */
.profile-icon-wrapper.youtube { background: #ff0000; }
.profile-icon-wrapper.tiktok { background: #000000; }
.profile-icon-wrapper.instagram { background: #e1306c; }
.profile-icon-wrapper.patreon { background: #ff424d; }

.profile-icon-wrapper svg {
  color: white;
}
  .profile-comment-text {
  position: relative;
  padding-top: 15px;
  background: #f3f3f3;
  border-radius:10px;
  padding:15px;
}

.profile-comment-text::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #f0f0f0;
    box-sizing: content-box;
}

  .comment {
  display: flex;
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.comment:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.comment:hover .avatar {
  border-color: 3px solid #784ba0;
}

.comment-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.username {
  font-weight: 700;
  font-size: 1.1rem;
  color: #784ba0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reply-icon {
  fill: #4a90e2;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.username:hover .reply-icon {
  opacity: 1;
}

.date {
  font-size: 0.9rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-post-ref {
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
  margin-bottom: 12px;
  border-left: 3px solid #784ba0;
  padding-left: 10px;
}

.comment-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}
.profile-user-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 2em 0em;
  background: #fdfdfd;
}

.profile-post {
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 1.2em 1.5em;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.profile-post-meta {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 0.7em;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  align-items: center;
}
.profile-post-content {
    border-top: 1px solid #e2e2e2;
    padding: 20px 10px;
    margin-top: 5px;
}
.profile-post-author,
.profile-post-date,
.profile-post-topic-wrapper {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
span.profile-post-author {
    color: #784ba0;
}
.profile-post-topic {
  text-decoration: none;
  font-weight: 500;
}

.profile-post-topic:hover {
  text-decoration: underline;
}

.profile-post-content p {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.6;
  color: #333;
}

.profile-icon {
  width: 1em;
  height: 1em;
  fill: #777;
}