.profile-page {
  width: 100%;
  min-height: 900px;
  background: #f7f7f2;
  color: #333333;
  padding: 18px 20px 40px;
}

/* ================= Header ================= */

.profile-header-card {
  width: 100%;
  min-height: 190px;
  border: 1px solid #005331;
  border-radius: 12px;
  padding: 20px 28px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
}

.profile-user-box {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-direction: row;
  /* margin-right: auto; */
}

.profile-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 130px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-user-info {
  text-align: right;
}

.profile-user-info h1 {
  color: #333333;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.8;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row;
}

.profile-verified-icon {
  color: #1da1f2;
  font-size: 32px;
}

.profile-user-info span {
  display: block;
  color: #333333;
  font-size: 20px;
  direction: ltr;
  text-align: right;
  margin-top: 2px;
}

.profile-user-info p {
  color: #999999;
  font-size: 14px;
  margin-top: 24px;
}

.profile-edit-btn {
  width: 135px;
  height: 48px;
  background: #005331;
  color: #ffffff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
}

/* ================= Tabs ================= */

.profile-tabs {
  width: calc(100% + 40px);
  margin-right: -20px;
  margin-left: -20px;
  border-bottom: 1px solid #005331;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-tab-btn {
  width: 20%;
  height: 58px;
  border: 0;
  background: transparent;
  color: #333333;
  font-size: 22px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}

.profile-tab-btn.active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -2px;
  height: 4px;
  background: #005331;
}

.profile-tab-btn.has-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #ff0000;
  border-radius: 50%;
  position: absolute;
  top: 26px;
  right: calc(50% - 45px);
}

/* ================= Panels ================= */

.profile-tabs-content {
  width: calc(100% + 40px);
  margin-right: -20px;
  margin-left: -20px;
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.active {
  display: block;
}

/* ================= Small User ================= */

.profile-small-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  order: 2;
}

.profile-small-user img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 54px;
}

.profile-small-user div {
  text-align: right;
}

.profile-small-user h3 {
  color: #333333;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: row;
}

.profile-small-user h3 i {
  color: #1da1f2;
  font-size: 13px;
}

.profile-small-user span {
  display: block;
  color: #333333;
  font-size: 10px;
  direction: ltr;
  text-align: right;
}

/* ================= Follow / Followers Rows ================= */

.profile-follow-row {
  min-height: 90px;
  border-bottom: 1px solid #9bb8a9;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
}

.profile-follow-btn {
  width: 132px;
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: #a67c00;
  color: #ffffff;
  font-size: 17px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  order: 1;
}

.profile-follow-btn.following {
  background: #d0aa44;
}

.profile-follow-btn.unfollow {
  background: #a67c00;
}

/* ================= Notifications ================= */

.profile-notification-row {
  min-height: 82px;
  border-bottom: 1px solid #9bb8a9;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
}

.profile-notification-row p {
  color: #333333;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.profile-notification-row.text-only {
  justify-content: flex-start;
}

/* ================= Post Cards ================= */

.profile-post-card {
  position: relative;
  border-bottom: 1px solid #005331;
  padding: 28px 38px 26px;
}

.profile-post-menu {
  position: absolute;
  left: 18px;
  top: 28px;
  border: 0;
  background: transparent;
  color: #999999;
  font-size: 26px;
  cursor: pointer;
}

.profile-post-author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-post-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 64px;
}

.profile-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-post-author div {
  text-align: right;
}

.profile-post-author h3 {
  color: #333333;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-post-author h3 i {
  color: #1da1f2;
  font-size: 16px;
}

.profile-post-author span {
  display: block;
  direction: ltr;
  text-align: right;
  color: #333333;
  font-size: 12px;
  margin-top: 2px;
}

.profile-post-body {
  text-align: right;
}

.profile-post-body h2 {
  color: #333333;
  font-size: 19px;
  font-weight: 600;
  line-height: 2;
  margin-bottom: 8px;
}

.profile-post-body p {
  color: #333333;
  font-size: 14px;
  line-height: 2.25;
  margin-bottom: 4px;
}

.profile-post-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-post-footer span {
  color: #999999;
  font-size: 13px;
}

.profile-post-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-post-actions button {
  border: 0;
  background: transparent;
  color: #999999;
  font-size: 22px;
  cursor: pointer;
}

.profile-post-actions button:hover {
  color: #005331;
}

/* ================= Responsive ================= */

@media (max-width: 1024px) {
  .profile-page {
    padding: 16px 16px 36px;
  }

  .profile-header-card {
    min-height: 170px;
    padding: 18px 22px 14px;
    margin-bottom: 34px;
  }

  .profile-avatar {
    width: 115px;
    height: 115px;
    flex-basis: 115px;
  }

  .profile-user-info h1 {
    font-size: 24px;
  }

  .profile-verified-icon {
    font-size: 28px;
  }

  .profile-user-info span {
    font-size: 18px;
  }

  .profile-tab-btn {
    font-size: 19px;
  }

  .profile-tabs,
  .profile-tabs-content {
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
  }

  .profile-post-card {
    padding: 24px 28px 24px;
  }
}

@media (max-width: 768px) {
  .profile-page {
    padding: 14px 12px 34px;
  }

  .profile-header-card {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 22px 16px;
    margin-bottom: 26px;
  }

  .profile-user-box {
    flex-direction: column;
    margin: 0;
    gap: 12px;
  }

  .profile-user-info {
    text-align: center;
  }

  .profile-user-info h1 {
    justify-content: center;
    font-size: 21px;
  }

  .profile-user-info span {
    text-align: center;
    font-size: 16px;
  }

  .profile-user-info p {
    margin-top: 12px;
  }

  .profile-edit-btn {
    width: 160px;
  }

  .profile-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-tab-btn {
    width: auto;
    min-width: 130px;
    font-size: 16px;
    flex: 0 0 auto;
  }

  .profile-tabs,
  .profile-tabs-content {
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-left: -12px;
  }

  .profile-follow-row,
  .profile-notification-row {
    padding: 14px 18px;
  }

  .profile-post-card {
    padding: 22px 18px 22px;
  }

  .profile-post-menu {
    left: 10px;
  }

  .profile-post-body h2 {
    font-size: 17px;
  }

  .profile-post-body p {
    font-size: 13px;
    line-height: 2.15;
  }
}

@media (max-width: 520px) {
  .profile-page {
    padding: 12px 10px 30px;
  }

  .profile-header-card {
    border-radius: 10px;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }

  .profile-user-info h1 {
    font-size: 18px;
  }

  .profile-verified-icon {
    font-size: 22px;
  }

  .profile-tab-btn {
    min-width: 115px;
    height: 52px;
    font-size: 15px;
  }

  .profile-follow-row,
  .profile-notification-row {
    min-height: auto;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 12px;
  }

  .profile-small-user {
    max-width: calc(100% - 120px);
  }

  .profile-follow-btn {
    width: 105px;
    height: 40px;
    font-size: 14px;
  }

  .profile-notification-row {
    flex-direction: column;
  }

  .profile-post-card {
    padding: 20px 12px;
  }

  .profile-post-author {
    padding-left: 28px;
  }

  .profile-post-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .profile-post-author h3 {
    font-size: 14px;
  }

  .profile-post-body h2 {
    font-size: 15px;
  }

  .profile-post-body p {
    font-size: 12px;
  }

  .profile-post-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 14px;
  }

  .profile-post-actions {
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .profile-tabs {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #005331;
  }

  .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-tab-btn {
    width: auto;
    min-width: 105px;
    height: 56px;
    flex: 0 0 auto;
    font-size: 15px;
    white-space: nowrap;
    padding: 0 12px;
  }

  .profile-tab-btn.has-dot::before {
    top: 27px;
    right: auto;
    left: 16px;
  }

  .profile-tabs-content {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .profile-tab-btn {
    min-width: 96px;
    font-size: 14px;
    padding: 0 10px;
  }
}
.profile-new-post-form {
  background: #fff;
  border: 1px solid rgba(18, 49, 37, 0.12);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.profile-new-post-form input,
.profile-new-post-form textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
}

.profile-new-post-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 2;
}

.profile-new-post-form input:focus,
.profile-new-post-form textarea:focus {
  border-color: #123125;
}

.profile-new-post-form button {
  background: #123125;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-new-post-form button:hover {
  opacity: 0.9;
}
.profile-edit-cancel {
  display: inline-block;
  margin-right: 12px;
  color: #123125;
  font-weight: 700;
  text-decoration: none;
}

.copy-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  background: #123125;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  z-index: 9999;
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
}